auth login
Authenticate with OpenCX via browser flow.
| Flag | Description |
|---|---|
--token <key> | Use API key directly (for CI) |
~/.opencx/credentials.
content init
Initialize a new content project.
opencx.toml, content directory, and lock file. Idempotent — safe to run multiple times.
content check
Validate content files locally. No API calls.
content diff
Show what would change without pushing. Same as push --dry-run.
content push
Push local content to your help center.
| Flag | Description |
|---|---|
--yes, -y | Skip confirmation prompts (CI mode) |
--dry-run | Show diff only, do not push |
content pull
Pull published content from your help center to disk.
content gate
CI gate command — validates content and checks for drift.
content dev
Start a local preview server.
| Flag | Description |
|---|---|
--port | Port number (default: 3333) |