Pushing Content
1 min read
Pushing Content
Use opencx content push to validate, diff, and sync your local content to the remote help center.
Usage
bash
opencx content push
Workflow
The push command runs through these steps:
- Validate -- runs the same checks as
opencx content check. Aborts on failure. - Diff -- compares local content against the remote to determine changes.
- Confirm -- displays a summary of changes and asks for confirmation. Deletions are confirmed interactively to prevent accidental data loss.
- Sync -- streams changes to the server via SSE, showing real-time progress.
Flags
| Flag | Description |
|---|---|
--yes, -y | Skip confirmation prompts |
--dry-run | Show what would change without applying anything |
--json | Output results as JSON |
Examples
Push with automatic confirmation:
bash
opencx content push --yes
Preview changes without applying them:
bash
opencx content push --dry-run
Deletion Safety
When articles or categories are removed locally, the CLI asks for explicit confirmation before deleting them from the remote. Use --yes to skip this prompt in automated environments.