Synopsis
config command operates on the global configuration file at ~/.config/dorgu/config.yaml. Use dorgu init to create or re-initialize configuration files.
Subcommands
| Subcommand | Usage | Description |
|---|---|---|
list | dorgu config list | List all configuration values and their current sources |
get | dorgu config get <key> | Get the current value of a specific configuration key |
set | dorgu config set <key> <value> | Set a configuration value |
path | dorgu config path | Show the resolved path to the active configuration file |
reset | dorgu config reset | Reset all configuration values to built-in defaults |
Configuration keys
| Key | Description | Example |
|---|---|---|
llm.provider | LLM provider to use for analysis | openai, anthropic, gemini, ollama |
llm.api_key | API key for the configured LLM provider | sk-... |
llm.model | Specific model to use (provider-dependent) | gpt-4o, claude-sonnet-4-20250514 |
defaults.namespace | Default Kubernetes namespace for generated manifests | production |
defaults.registry | Default container image registry | ghcr.io |
defaults.org_name | Organization or username for image paths | my-org |
Config merge order
Config merge order (highest priority first):
CLI flags > App
.dorgu.yaml > Workspace .dorgu.yaml > Global ~/.config/dorgu/config.yaml > Environment variables > Built-in defaultsconfig list and config get reflect the global config file. App-level overrides (from .dorgu.yaml) and CLI flags take effect at runtime but are not displayed by these subcommands.
LLM API key resolution
The LLM API key is resolved in the following order:- Environment variable —
DORGU_LLM_API_KEY(or provider-specific variables likeOPENAI_API_KEY) - Global config —
llm.api_keyin~/.config/dorgu/config.yaml - Interactive prompt — If neither is set, dorgu prompts you at runtime
Storing your API key in an environment variable is recommended over saving it in the config file, especially in shared or CI environments.
Examples
config list
Display all configuration keys with their current values:config get
Retrieve a single value by key:config set
Set a configuration value:config path
Show the resolved path to the configuration file:config reset
Reset all values in the global config file to built-in defaults:Related
- dorgu init — Create initial configuration files (app-level or global)
- dorgu generate — Generate Kubernetes manifests using the configured settings
- Command Overview — All CLI commands at a glance