Integrating with CI/CD
Learn how to automate the update of your OpenAPI specification in GitBook.
Last updated
Was this helpful?
Learn how to automate the update of your OpenAPI specification in GitBook.
Last updated
Was this helpful?
GitBook can work with Git Sync or any CI/CD pipeline you already have for managing your OpenAPI specification. By using the GitBook CLI, you can automate updates to your API reference.
If your OpenAPI spec is generated during your CI process, you can upload it directly from your build environment:
If your OpenAPI specification is hosted at a URL, GitBook automatically checks for updates. To force an update (for example, after a release), run:
We’re currently improving how you build API documentation in GitBook. This page covers features that are being gradually rolled out. If you don’t see them yet, hang tight—they’re on the way!