Usage
Description
View and edit OCX configuration files. Operates on local project config by default; use--global or --profile to target other scopes.
Subcommands
ocx config show— Show configuration from current scopeocx config edit— Edit configuration in$EDITOR
Config Show
Show the merged configuration from the current directory and profile.Usage
Flags
| Flag | Shorthand | Default | Description |
|---|---|---|---|
--origin | false | Show the source of each configuration setting | |
--profile <name> | -p | Use specific profile for resolution | |
--json | false | Output as JSON |
Examples
Output
Config Edit
Edit a configuration file in your$EDITOR.
Usage
Flags
| Flag | Shorthand | Default | Description |
|---|---|---|---|
--global | false | Edit global config | |
--profile <name> | -p | Edit specific profile’s config (implies --global) |
Environment
$EDITOR: Text editor to use (e.g.,vim,nano,code).$VISUAL: Fallback editor if$EDITORis not set.- Falls back to
viif neither is set.
Examples
File Paths
| Scope | File Path |
|---|---|
| Local | .opencode/ocx.jsonc |
| Global | ~/.config/opencode/ocx.jsonc |
| Profile | ~/.config/opencode/profiles/<name>/ocx.jsonc |
See Also
- Profiles Configuration — Profile configuration reference.
- CLI Reference — All commands.