@docs.page/cli
v2.0.0
Published
The docs.page cli tool for managing your documentation.
Readme
@docs.page/cli
Command-line tool for docs.page — initialize projects, validate documentation, preview locally, and manage documentation agents.
Installation
Run without installing:
npx @docs.page/cli <command>Or install globally:
npm install -g @docs.page/cliThe docs and docs.page binaries are both available after install.
Commands
init
Scaffold a new docs.page project with docs.json and starter MDX files.
docs init
docs init ./my-project --name "My Project"
docs init --no-docs # docs.json only
docs init --overwrite # replace existing docs.page filescheck
Lint your documentation for broken links, missing assets, render errors, and metadata issues. Exits with code 1 when errors are found, so it works in CI.
docs check
docs check ./my-project
docs check --external-links warn --internal-links error --assets error
docs check --render error --metadata warnSeverity levels for checks: off, warn, error.
preview
Start a local live-reloading preview of your documentation site. Watches docs.json and docs/**/*.mdx, then streams rendered content to the docs.page preview UI in your browser.
docs preview
docs preview --port 4000
docs preview --no-browserRequires a valid docs.json (or docs.yaml) and at least one .mdx file under docs/.
agent
Manage docs.page documentation agents for a GitHub repository.
docs agent create --repo org/repo --provider openai --apikey sk-...
docs agent delete --repo org/repoSupported providers: openai, anthropic, google, xai.
Global options
docs --api-url https://your-api.example.com <command>Defaults to the DOCS_PAGE_API_BASE environment variable, or the production docs.page API.
Documentation
Learn more at docs.page.
