› Documentation › Command line (CLI) › CLI command reference This is the complete reference for the dxb CLI (@doxbrix/cli), organized by task. Every command supports --help for inline usage and the global --json flag where output is structured.
Global flags These flags work on every command:
Flag Alias Description `--project <slug\ id>` -p--profile <name>Use a specific auth profile . --token <token>Authenticate with a token . --api-url <url>Override the API base URL. --cwd <dir>Run as if started in this directory. --jsonOutput machine-readable JSON. --yes-ySkip confirmation prompts. --quiet-qSuppress non-essential output. --verbose-vVerbose output (request ids, stacks). --help-hShow help for a command. --versionPrint the CLI version.
Setup Command Description Reference dxb init [dir]Scaffold a new docs-as-code project (--from to convert). Initialize a project dxb doctorCheck your environment and configuration. Install the CLI dxb completion <shell>Print a shell completion script. Install the CLI `dxb open [app\ editor]` Open the app or editor in your browser.
Authoring structure Preview, validate & publish Command Description Reference dxb devLocal live-reload preview (--port, --open). Local preview dxb lintValidate structure, links, and blocks (--strict). Lint & validate dxb statusShow how local files compare to the cloud. Push & status dxb diff [path]Show what would change vs. the cloud. Diff changes dxb pushSend local changes up (--publish, --dry-run, --strict, --media, --allow-orphans). Push & status
Inspect Import, keys & Git Command Description Reference dxb import file <path>Import a single document (--into, --title). Import content dxb import repo [dir]Import a folder of docs (--out). Import content dxb keys listList assistant API keys. Settings dxb keys create <label>Create a key (--origin, --allow-private). Settings dxb keys revoke <id>Revoke a key. Settings dxb git connectConnect a Git repository (--provider, --repo, --branch). Connect GitHub / GitLab dxb git statusShow Git sync status. Sync & conflicts
Getting help dxb --help
dxb new page --help
dxb nav --help Next steps