Develop
Develop and test integrations locally on your machine
After bootstrapping your integration with the GitBook CLI, you can continue using the CLI to develop and test your app.
Publish your integration
Before you're able to develop your integration, you will first need to publish it. You can do this by running the following command in the root directory for your integration:
gitbook publishBy default (defined in the CLI-generated gitbook-manifest.yaml), your integration will be published privately, and owned by the organization specified in the manifest.
After publishing your integration, the CLI will give you a link to install your integration into the organization you’ve set.
You need to install your app into at least 1 space or site in order to develop it locally.
Develop your integration
If you use an AI coding assistant, add GitBook’s build-integration skill. It gives your assistant integration-specific guidance.
In your integration repository’s root directory, run:
npx skills add GitBookIO/gitbook-skillsStart a new agent session after the installation completes.
Ask your assistant to read the
build-integrationskill before building your integration.
It's recommended that you disable browser caching for the most optimal experience when developing your app.
Any logs sent to the console or made through your integration's RuntimeContext will be surfaced in your browser's console.
Any UI changes made to your integration will need a browser refresh in order to be visible.
FAQ
Last updated
Was this helpful?