Skip to content

Documate CLI Reference

create-documate

create-documate can let you create a new Documate project without installing CLI.

Usage

bash
npm create documate@latest
npm create documate@latest
bash
yarn create documate
yarn create documate
bash
pnpm create documate
pnpm create documate

Options

--template

Specify the template to use. For eaxample, to scaffold a VitePress project:

bash
npm create documate@latest --template vitepress
npm create documate@latest --template vitepress
bash
yarn create documate --template vitepress
yarn create documate --template vitepress
bash
pnpm create documate --template vitepress
pnpm create documate --template vitepress

Installing @documate/documate

The @documate/documate package will add a documate command for you. You can either install it globally or per project.

Install Globally

A global install of @documate/documate will allow you to run the documate command in any project.

bash
npm install @documate/documate --global
npm install @documate/documate --global
bash
yarn global add @documate/documate
yarn global add @documate/documate
bash
pnpm install @documate/documate --global
pnpm install @documate/documate --global

Install Per Project

You can pin the version of @documate/documate to your project by installing it as a dev dependency. This is useful if you are collaborating with other developers.

bash
npm install @documate/documate --save-dev
npm install @documate/documate --save-dev
bash
yarn add @documate/documate --dev
yarn add @documate/documate --dev
bash
pnpm install @documate/documate --save-dev
pnpm install @documate/documate --save-dev

documate init

Initialize your project with Documate. This command will add the neccessary packages and scripts to your project.

Usage

bash
documate init
documate init

Options

--framework

Specify the framework of your project. Can be either vue or react.

bash
documate init --framework vue
documate init --framework vue

documate upload

Upload your content to backend and generate the knowledge base.

Usage

bash
documate upload
documate upload

Options

The documate upload command will read the documate.json file in your project root. You can override any of the options in the file by passing the options as command line arguments.

bash
documate upload --exclude "**/README.md"
documate upload --exclude "**/README.md"

See documate.json for full list of options.

Made with ❤️ by AirCode