gitbook-cli

GitBook's command line interface

  • 所有者: GitbookIO/gitbook-cli
  • 平台:
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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

主要指标

概览
名称与所有者GitbookIO/gitbook-cli
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证
所有者活动
创建于2015-01-22 11:56:39
推送于2024-06-05 04:28:15
最后一次提交2023-03-02 13:30:46
发布数22
最新版本名称2.3.2 (发布于 )
第一版名称0.1.0 (发布于 )
用户参与
星数728
关注者数14
派生数213
提交数117
已启用问题?
问题数109
打开的问题数81
拉请求数9
打开的拉请求数5
关闭的拉请求数5
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?