Create and publish your first site from the command line
Create a space, write your first page and publish a docs site — all from your terminal with the GitBook CLI
Let an agent do it
Create and publish a new docs site from the terminal.
npx skills add GitbookIO/gitbook-skillsOr do it yourself
4
Add your first page
gitbook spaces change-requests create <spaceId> --subject "Add homepage"gitbook spaces change-requests content update <spaceId> <changeRequestId> --changes '[
{
"operation": "insert_page",
"title": "Welcome",
"document": {
"markdown": "# Welcome\n\nThis page was published from the command line.\n"
}
}
]'gitbook spaces change-requests merge <spaceId> <changeRequestId>Where to go next
Related reading
Last updated
Was this helpful?