Socket
Socket
Sign inDemoInstall

gitbook-cli

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitbook-cli

CLI to generate books using gitbook


Version published
Weekly downloads
3.8K
decreased by-1.15%
Maintainers
1
Weekly downloads
 
Created
Source

gitbook-cli NPM version

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 job 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.

How to install it?

$ npm install -g gitbook-cli

How to use it?

Build and Serve

Build a book in the curent directory using:

$ gitbook build

Build a book in another directory:

$ gitbook build ./other_folder

Build and serve the book:

$ gitbook serve ./

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 versions

List available versions:

$ gitbook versions:available

Install a specific version:

$ gitbook versions:install 2.1.0

Uninstall a specific version

$ gitbook versions:uninstall 2.0.1

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

$ gitbook versions:link 2.0.1-alpha ./mygitbook

FAQs

Package last updated on 01 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc