GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - GitbookIO/gitbook-cli: GitBook's command line interface

This repository was archived by the owner on Nov 6, 2026. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

117 Commits
117 Commits

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
lib
lib
 
 
test
test
 
 
.eslintrc
.eslintrc
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
README.md
README.md
 
 
appveyor.yml
appveyor.yml
 
 
package.json
package.json
 
 

Repository files navigation

⚠️ Deprecation warning:

As the efforts of the GitBook team are focused on the GitBook.com platform, the CLI is no longer under active development.
All content supported by the CLI are mostly supported by our GitBook.com / GitHub integration.

Content hosted on the legacy.gitbook.com will continue working until further notice. For differences with the new version, > check out our documentation.

Join our GitHub community to stay up to date with the latest news at GitBook.

gitbook-cli

NPM version Linux Build Status Windows Build status

The GitBook command line interface.

Install this globally and you'll have access to the gitbook command anywhere on your system.

$ npm install -g gitbook-cli

Note: The purpose of the gitbook command is to load and run the version of GitBook you have specified in your book (or the latest one), irrespective of its version. The GitBook CLI only support versions >=2.0.0 of GitBook.

gitbook-cli store GitBook's versions into ~/.gitbook, you can set the GITBOOK_DIR environment variable to use another directory.

How to install it?

$ npm install -g gitbook-cli

How to use it?

Run GitBook

Run command gitbook build, gitbook serve (read GitBook documentation for details).

List all available commands using:

$ gitbook help

Specify a specific version

By default, GitBook CLI will read the gitbook version to use from the book configuration, but you can force a specific version using --gitbook option:

$ gitbook build ./mybook --gitbook=2.0.1

and list available commands in this version using:

$ gitbook help --gitbook=2.0.1

Manage versions

List installed versions:

$ gitbook ls

List available versions on NPM:

$ gitbook ls-remote

Install a specific version:

$ gitbook fetch 2.1.0

# or a pre-release

$ gitbook fetch beta

Update to the latest version

$ gitbook update

Uninstall a specific version

$ gitbook uninstall 2.0.1

Use a local folder as a GitBook version (for developement)

$ gitbook alias ./mygitbook latest

About

GitBook's command line interface

Resources

Readme
Activity
Custom properties

Stars

727 stars

Watchers

12 watching

Forks

207 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.