Quickstart

Get started developing in GitBook by setting up the GitBook CLI in your local environment.

1

Install the GitBook CLI

The GitBook Development CLI requires Node v18 or later. It can be installed from NPM using:

npm install @gitbook/cli -g
2

Authenticate with your account

Create an API token in your GitBook.com at app.gitbook.com/account/developer.

Then run the following command to authenticate locally:

gitbook auth
3

Bootstrap your app

Bootstrap your first app by running:

gitbook new

Last updated