# docsify-cli

> A magical documentation generator.

Latest version **5.0.0** (published 2026-07-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install docsify-cli
pnpm add docsify-cli
yarn add docsify-cli
bun add docsify-cli
```

Provides the command `docsify`.

## Health

**Score 50/100 (C)** — status: active.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 5.0.0 |
| Published | 2026-07-29 |
| First published | 2016-11-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=20.11.0 |
| Dependencies | 15 |
| Unpacked size | 29.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 778 |
| Author | https://github.com/docsifyjs/docsify-cli/graphs/contributors |
| Maintainers | trusktr, qingwei.li, jhildenbiddle, anixsaha, jamesgeorge007, sy-records, koooooo-7 |
| Keywords | docsify, doc, docs, documentation, creator, generator, cli |

## Links

- npm: https://www.npmjs.com/package/docsify-cli
- Repository: https://github.com/docsifyjs/docsify-cli
- Homepage: https://github.com/docsifyjs/docsify-cli#readme
- Issues: https://github.com/docsifyjs/docsify-cli/issues
- npm.io page: https://npm.io/package/docsify-cli

## Dependencies (15)

- [open](https://npm.io/package/open.md) ^6.4.0
- [chalk](https://npm.io/package/chalk.md) ^2.4.2
- [yargs](https://npm.io/package/yargs.md) ^15.3.0
- [connect](https://npm.io/package/connect.md) ^3.6.0
- [cp-file](https://npm.io/package/cp-file.md) ^7.0.0
- [docsify](https://npm.io/package/docsify.md) ^5.0.0
- [enquirer](https://npm.io/package/enquirer.md) ^2.3.6
- [fs-extra](https://npm.io/package/fs-extra.md) ^8.1.0
- [get-port](https://npm.io/package/get-port.md) ^5.0.0
- [lru-cache](https://npm.io/package/lru-cache.md) ^5.1.1
- [yargonaut](https://npm.io/package/yargonaut.md) ^1.1.2
- [livereload](https://npm.io/package/livereload.md) ^0.9.2
- [serve-static](https://npm.io/package/serve-static.md) ^1.12.1
- [connect-livereload](https://npm.io/package/connect-livereload.md) ^0.6.0
- [connect-history-api-fallback](https://npm.io/package/connect-history-api-fallback.md) ^1.6.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 5.0.0 (latest) — 2026-07-29
- 5.0.0-rc.4 (rc) — 2026-03-13
- 4.0.2 (next) — 2017-05-29
- 5.0.0-rc.3 — 2025-12-17
- 5.0.0-rc.1 — 2025-08-07
- 4.4.4 — 2022-03-12
- 4.4.3 — 2021-03-09
- 4.4.2 — 2020-11-17
- 4.4.1 — 2020-06-05
- 4.4.0 — 2019-11-20
- 4.3.0 — 2018-11-01
- 4.2.1 — 2018-03-08
- 4.2.0 — 2017-12-29
- 4.1.12 — 2017-11-03
- 4.1.11 — 2017-10-11
- … 41 more at https://npm.io/package/docsify-cli/versions

## README

<p align="center">
  <a href="https://docsify.js.org">
    <img alt="docsify" src="./media/icon.svg">
  </a>
</p>

<p align="center">
 🖌 docsify cli - A magical documentation generator.
</p>

<p align="center">
  <a href="#backers"><img alt="Backers on Open Collective" src="https://opencollective.com/docsify/backers/badge.svg?style=flat-square"></a>
  <a href="#sponsors"><img alt="Sponsors on Open Collective" src="https://opencollective.com/docsify/sponsors/badge.svg?style=flat-square"></a>
  <a href="https://www.npmjs.com/package/docsify"><img alt="npm" src="https://img.shields.io/npm/v/docsify-cli.svg?style=flat-square"></a>
  <a href="https://github.com/docsifyjs/docsify-cli/actions"><img alt="Github Actions Status" src="https://github.com/docsifyjs/docsify-cli/workflows/docsify-cli/badge.svg"></a>
<a href="https://discord.gg/3NwKFyR"><img alt="Join Discord community and chat about Docsify" src="https://img.shields.io/discord/713647066802421792.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2&cacheSeconds=60"></a>
<a href="https://github.com/docsifyjs/docsify-cli/blob/master/LICENSE"><img alt="license" src="https://img.shields.io/github/license/docsifyjs/docsify-cli.svg?style=flat-square"></a>
<a href="https://www.npmjs.com/package/docsify-cli"><img alt="npm-total-download" src="https://img.shields.io/npm/dt/docsify-cli.svg?style=flat-square"></a>
<a href="https://www.npmjs.com/package/docsify-cli"><img alt="npm-monthly-download" src="https://img.shields.io/npm/dm/docsify-cli.svg?style=flat-square"></a>

</p>

<p align="center">Gold Sponsor via <a href="https://opencollective.com/docsify">Open Collective</a></p>

<p align="center">
  <a href="https://opencollective.com/docsify/order/3254">
    <img src="https://opencollective.com/docsify/tiers/gold-sponsor.svg?avatarHeight=36">
  </a>
</p>

## Screencast

![Screencast](https://raw.githubusercontent.com/docsifyjs/docsify-cli/master/media/screencast.gif)

> Running a server on `localhost` with live-reload.

## Installation

Install `docsify-cli` via `npm` or `yarn` globally.

```shell
npm i docsify-cli -g
# yarn global add docsify-cli
```

## Usage

### `init` command

Use `init` to generate your docs.

```shell
docsify init [path] [--local false] [--rcMode] [--theme vue] [--plugins]

# docsify i [path] [-l false] [--rc] [-t vue] [-p]
```

`[path]` defaults to the current directory. Use relative paths like `./docs` (or `docs`).

- `--local` option:
  - Shorthand: `-l`
  - Type: boolean
  - Default: `false`
  - Description: Copy `docsify` files to the docs path, defaults to `false` using `cdn.jsdelivr.net` as the content delivery network (CDN). To explicitly set this option to `false` use `--no-local`.
- `--rcMode` option:
  - Shorthand: `--rc`
  - Type: boolean
  - Default: `false`
  - Description: Try `docsify` preview release version (`rc` resource).
- `--theme` option:
  - Shorthand: `-t`
  - Type: string
  - Default: `vue`
  - Description: Choose a theme, defaults to `vue`.
- `--plugins` option:
  - Shorthand: `-p`
  - Type: boolean
  - Default: `false`
  - Description: Provide a list of plugins to insert as `<script>` tags to `index.html`.

### `serve` command

Run a server on `localhost` with livereload.

```shell
docsify serve [path] [--open false] [--port 3000]

# docsify s [path] [-o false] [-p 3000]
```

- `--open` option:
  - Shorthand: `-o`
  - Type: boolean
  - Default: `false`
  - Description: Open the docs in the default browser, defaults to `false`. To explicitly set this option to `false` use `--no-open`.
- `--port` option:
  - Shorthand: `-p`
  - Type: number
  - Default: `3000`
  - Description: Choose a listen port, defaults to `3000`.
- `--host` option:
  - Shorthand: `-H`
  - Type: string
  - Default: `localhost`
  - Description: Choose a host to bind to, defaults to `localhost`.

### `generate` command

Docsify's generators.

```shell
docsify generate [path] [--sidebar _sidebar.md] [--overwrite]

# docsify g [path] [-s _sidebar.md] [-o]
```

- `--sidebar` option:
  - Shorthand: `-s`
  - Type: string
  - Default: `_sidebar.md`
  - Description: Generate sidebar file, defaults to `_sidebar.md`.

- `--overwrite` option:
  - Shorthand: `-o`
  - Type: boolean
  - Default: `false`
  - Description: Allow to overwrite generated files.

## Contributing

Please see the [Contributing Guidelines](CONTRIBUTING.md)

## Contribution

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/docsifyjs/docsify-cli)

## License

[MIT](LICENSE)

---
_Source: https://npm.io/package/docsify-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
