config
Manage agent-cli configuration files.
Usage
Description
The config command helps you create, edit, and inspect your configuration file.
Commands
config init- Create a new config templateconfig edit- Open the config file in your editorconfig show- Print the config file path and contents
config init
Create a new config file with all options commented out.
Usage
Options
| Option | Default | Description |
|---|---|---|
--path, -p |
- | Where to create the config file (default: ~/.config/agent-cli/config.toml). |
--force, -f |
false |
Overwrite existing config without prompting for confirmation. |
Example
config edit
Open the config file in your default editor.
Usage
Options
| Option | Default | Description |
|---|---|---|
--path, -p |
- | Override auto-detection and use this config file path. |
Example
config show
Display the config file location and contents.
Usage
Options
| Option | Default | Description |
|---|---|---|
--path, -p |
- | Override auto-detection and use this config file path. |
--raw, -r |
false |
Print plain file contents without syntax highlighting or line numbers. |
--json |
false |
Output as JSON with path, exists, and content fields. |