Complete reference for the occo CLI commands.
| Option | Description |
|---|---|
--help |
Show help |
--version |
Show version |
--color |
Color output mode: auto, always, never (default: always) |
The CLI supports styled output with accessible color + icon scheme:
| Message Type | Style |
|---|---|
| Errors | Red + ✗ |
| Warnings | Yellow + ⚠ |
| Success | Green + ✓ |
| Info | Blue + ℹ |
| Interactive prompts | Purple |
Color Modes:
# Force colored output (default)
occo --color=always <command>
# Detect terminal capability
occo --color=auto <command>
# Disable colored output (for CI/CD pipelines)
occo --color=never <command>Use --color=never when running in CI/CD environments or when piping output.
Manage registered config sources (GitHub repositories).
Register a new config source.
oc source add <source> --name <name>Arguments:
source— GitHub repo (owner/repo), full URL, or release URL
Options:
--name— Local name for the source (required)
Examples:
# Register a repo (uses latest release)
oc source add qbicsoftware/opencode-config-bundle --name qbic
# Register a specific release
oc source add https://github.com/qbicsoftware/opencode-config-bundle/releases/tag/v1.2.3 --name qbic-v123List all registered sources.
oc source list [--with-presets]Options:
--with-presets— Show all presets from all registered sources in a flat table
Examples:
# List all registered sources
oc source list
# List all sources with their available presets
oc source list --with-presetsRemove a registered source.
oc source remove <name>Install and manage config bundles.
Install a preset from a registered source to your project.
oc bundle install <source-ref> [--preset <preset>] [--auto] --project-root <path>Options:
--preset— Preset name to install (required in non-interactive mode)--auto— Run in non-interactive mode (disables prompts)--project-root— Target directory (default:.)--force— Overwrite existing files--dry-run— Show what would be done without doing it
Examples:
# Install a preset from a source
oc bundle install qbic --preset mixed --project-root ./myproject
# Install with interactive preset selection
oc bundle install qbic --project-root ./myproject
# Force overwrite existing config
oc bundle install qbic --preset mixed --forceShow provenance of installed bundles.
oc bundle status --project-root <path>Example:
oc bundle status --project-root ./myprojectCheck for and apply updates from update-capable sources.
oc bundle update <source-id>Example:
oc bundle update qbicGenerate shell completions.
oc completion bash
oc completion zsh
oc completion fishMigrate a V1 legacy project to V2.
oc migrate legacy-config --project-root <path>Example:
oc migrate legacy-config --project-root ./myprojectThis migrates projects using the old .opencode/opencode-helper-manifest.tsv format to the new V2 format.
Show CLI version.
oc versionUpdate the CLI to the latest version.
oc updateNote: This only works if you installed via the installer script.