Skip to content

CLI

A usage error prints this summary. Each command’s page describes its arguments and flags.

Usage:
archidocs version [--format text|json]
archidocs init [--skill [--workspace <dir>]]
archidocs guide [topic]
archidocs check [--format text|json|github] [--strict]
archidocs build [--out <dir>] [--bundle-only] [--keep <n|all>]
archidocs build --preview [--base <branch>] [--out <dir>]
archidocs dev [--workspace <dir>] [--port <n>] [--host <host>]
archidocs export <view-id> [--format svg|png] [--out <file>] [--direction TB|BT|LR|RL] [--theme light|dark] [--label <text>]
archidocs export --all-saved --out <dir> [--format svg|png] [--direction TB|BT|LR|RL] [--theme light|dark] [--label <text>]
archidocs diff <from> [<to>] [--format text|json|markdown]
archidocs history build [--since <ref|date>]
archidocs mcp [--workspace <dir> | --bundle <url|path>] [--viewer-url <url>]
archidocs mcp --http [--host <loopback>] [--port <n>] [--allow-writes] [--workspace <dir> | --bundle <url|path>] [--viewer-url <url>]
Command What it does
archidocs version Print the CLI’s version and the Bundle schemaVersion it writes.
archidocs init Set up a Workspace in this repo and install the agent skill, or with --skill install only the skill in a code repo. Safe to re-run.
archidocs guide Print the authoring guide for agents, or one of its task topics.
archidocs check Validate the Workspace found from the current folder. Exits 1 on errors, 2 if it could not run.
archidocs build Write the static viewer site with the Workspace’s Bundle and past Revisions, or a PR preview site.
archidocs dev Serve the viewer locally and reload it as you edit the Workspace.
archidocs export Render a View, or every Saved View, to an SVG or PNG picture.
archidocs diff Show what changed in the Model between two points in the Workspace’s history.
archidocs history build Build and cache the Bundle of every past Revision, so later builds and diffs don’t have to. Safe to re-run.
archidocs mcp Serve the Model to AI agents over MCP, from a Workspace checkout or a published Bundle, on stdio or local HTTP.