package
CLI to generate books and documentation using gitbook
npm install gitbook-cliGitHub-flavored package documentation.
Across all versions, last 30 days.
29,196 in 30 days
Runtime metadata.
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-cliNote: 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.
$ npm install -g gitbook-cliRun command gitbook build, gitbook serve (read GitBook documentation for details).
List all available commands using:
$ gitbook helpBy 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.1and list available commands in this version using:
$ gitbook help --gitbook=2.0.1List installed versions:
$ gitbook lsList available versions on NPM:
$ gitbook ls-remoteInstall a specific version:
$ gitbook fetch 2.1.0
# or a pre-release
$ gitbook fetch betaUpdate to the latest version
$ gitbook updateUninstall a specific version
$ gitbook uninstall 2.0.1Use a local folder as a GitBook version (for developement)
$ gitbook alias ./mygitbook latestsamypesse
samypesse@gmail.com
Estimated unpacked size across 64 packages.
22.6 MB+
Includes dependencies.
2.11.0
15.1.0
2.0.0
3.0.0
0.0.4
0.0.4