Skip to main content

Built upon the OpenCLI specification

CLI documentation from the source

Generate a CLI document from yargs, Commander.js, or oclif, then publish it with Docusaurus or VitePress.

Built for your CLI framework

Use built-in adapters for yargs, Commander.js, and oclif to generate an OpenCLI document from the command definitions you already maintain.

Explore the adapters →

Publish where your docs live

Publishing plugins generate command pages for Docusaurus and VitePress. You can also render Markdown for other documentation sites.

Explore publishing plugins →

Generate from your own CLI

Give your CLI a docgen command with an adapter, then validate its OpenCLI document with clidoc.

Read the CLI guide →
$ npm install -g @clidoc/cli
$ mycli docgen --output cli.json
$ clidoc validate cli.json

Describe

Turn real command definitions into an OpenCLI document with a framework adapter.

Learn more →

Check

Validate a JSON or YAML document against the OpenCLI specification.

Learn more →

Publish

Generate command pages for Docusaurus, VitePress, or Markdown.

Learn more →