package
CLI to build and publish integrations on GitBook.com
npm install @gitbook/cliGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
@gitbook/cliThe GitBook Development CLI requires Node v18 or later. It can be installed from NPM using:
npm install @gitbook/cli -gThe quickest way to sign in is through your browser:
gitbook loginThis opens GitBook in your browser, asks you to authorize the CLI, and stores the resulting token locally. Sessions are refreshed automatically.
Alternatively, authenticate with a personal API token. Create one at app.gitbook.com/account/developer, then run:
gitbook auth --token <token>Note: Publishing integrations (
gitbook integration publish/unpublish) requires a personal API token — the browser (OAuth) session cannot perform those operations. Usegitbook authfor publishing workflows.
To sign out, run gitbook logout.
Bootstrap your first app by running:
gitbook integration newsamypesse
samypesse@gmail.com
Estimated unpacked size across 63 packages.
48.6 MB+
Includes dependencies.
^9.2.0
15.1.0
^1.0.1
1.0.1
^4.20250525.0
4.20260730.0
0.209.1
^0.1.13
0.1.13
^4.2.1
4.2.1