Command · Knowledge & Docs
GitBook
Import pages from GitBook spaces into your projects.
How it works
GitBook is a token-based import connector. Command calls the GitBook API with a personal access token, pulls the pages of the spaces you select, converts them to Markdown, and indexes them into your project's vector store.
Before you start
- A GitBook organization you are a member of
- Permission to create a personal access token in GitBook
- A raia Command project with a destination folder
What you need to make the connection
| Field | Where to get it |
|---|---|
| Personal access token | GitBook → click your avatar → Settings → Developer → Access tokens → Create token. Starts with gb_api_. Copy it immediately — GitBook shows it once. |
| Organization / space | Selected from a dropdown in raia Command after the token validates — no manual ID needed. |
Credentials are stored encrypted in raia Command and are never shown again after saving. Rotate them at the provider if they are exposed.
Setup steps
- 01
Create the personal access token in GitBook and copy it.
- 02
In raia Command, open Settings → Connectors, find the connector, and click Connect.
- 03
Paste the token and save. Command validates it and lists your organizations.
- 04
Pick the spaces to import and the destination project folder.
- 05
Choose the destination project folder, run the first import, then set a sync schedule. Every run is recorded in Sync History.
Good to know
- The token inherits your GitBook permissions — it can only read spaces your account can read.
- Rotate the token in GitBook and re-paste it in Command if it is ever exposed.