config command provides utilities for validating and inspecting the CodexBar configuration file (~/.codexbar/config.json).
Subcommands
validate
Check config file for invalid fields
dump
Print normalized config JSON
validate
Validates the configuration file and reports any warnings or errors.Usage
Options
Output format:
text or jsonPretty-print JSON output (only applies when
--format json)Suppress non-JSON output; errors become JSON payloads
Exit Codes
- 0: Config is valid (warnings are allowed and don’t change exit code)
- Non-zero: Config has errors
Examples
Text Output
JSON Output
JSON Output Fields
Issue severity:
"warning" or "error"Provider ID the issue relates to, or
null for global config issuesSpecific config field with the issue, or
null for general issuesHuman-readable description of the issue
dump
Prints the normalized configuration as JSON. This shows how CodexBar interprets your config file after applying defaults.Usage
Options
Pretty-print JSON output
Examples
Output Example
Configuration File Location
- Path:
~/.codexbar/config.json - Permissions: Forced to
0600on macOS and Linux (readable/writable by owner only) - Format: JSON
Notes
- The directory
~/.codexbar/is created automatically if missing - Secrets (API keys, cookies, tokens) are stored in the config file; Keychain is not used
- Keep the config file private as it contains sensitive credentials
- Omitted providers in the config are appended with defaults during normalization
- The order of providers in the config controls display order in the app and CLI
- Fields not relevant to a provider are ignored
- Use
validatebefore committing config changes to catch errors early - Use
dumpto see the full normalized config including all defaults
