# docsify-cli **Repository Path**: qiushunji/docsify-cli ## Basic Information - **Project Name**: docsify-cli - **Description**: 🖌 docsify cli tool - A magical documentation generator. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-27 - **Last Updated**: 2021-04-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

docsify

🖌 docsify cli - A magical documentation generator.

Backers on Open Collective Sponsors on Open Collective npm Github Actions Status Join Discord community and chat about Docsify license npm-total-download npm-monthly-download

Gold Sponsor via Open Collective

## 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 [--local false] [--theme vue] # docsify i [-l false] [-t vue] ``` `` 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`. - `--theme` option: - Shorthand: `-t` - Type: string - Default: `vue` - Description: Choose a theme, defaults to `vue`, other choices are `buble`, `dark` and `pure`. ### `serve` command Run a server on `localhost` with livereload. ```shell docsify serve [--open false] [--port 3000] # docsify s [-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`. ### `generate` command Docsify's generators. ```shell docsify generate [--sidebar _sidebar.md] # docsify g [-s _sidebar.md] ``` - `--sidebar` option: - Shorthand: `-s` - Type: string - Default: `_sidebar.md` - Description: Generate sidebar file, defaults to `_sidebar.md`. ## 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)