
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
gitbook-cli
Advanced tools
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.
$ npm install -g gitbook-cli
Run command gitbook build
, gitbook serve
(read GitBook documentation for details).
List all available commands using:
$ gitbook help
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
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
FAQs
CLI to generate books and documentation using gitbook
The npm package gitbook-cli receives a total of 2,862 weekly downloads. As such, gitbook-cli popularity was classified as popular.
We found that gitbook-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.