cirron config
Unified configuration management for the Cirron CLI. The config command manages three scopes: CLI settings (API URL, timeout, retries), global user preferences, and project-level settings. It also provides ahardware subcommand for ML hardware profiles.
Usage
Options
| Option | Description | Default |
|---|---|---|
--scope <scope> | Configuration scope (cli, global, project) | Auto |
--list, -l | List configuration settings | false |
--get, -g <key> | Get a specific configuration value | - |
--set, -s <key=value> | Set a configuration value | - |
--delete, -d <key> | Delete a configuration value | - |
--reset | Reset configuration to defaults | false |
--edit, -e | Interactive configuration editor | false |
--explain <key> | Show setting resolution chain across scopes | - |
--export <file> | Export configuration to file | - |
--import <file> | Import configuration from file | - |
--template, -t <name> | Apply a settings template | - |
--verbose | Verbose output | false |
--json | Output in JSON format | false |
--list shows all scopes; --get walks the resolution chain (project > global > cli); --set defaults to project; --edit prompts for scope; --export, --import, --reset, --delete require an explicit --scope.
Scopes
| Scope | Description | Storage |
|---|---|---|
cli | API URL, timeout, retries, auth token | ~/.cirron/config.json |
global | User preferences shared across projects | ~/.cirron/settings.json |
project | Project-specific behavior settings | cirron.yaml in project root |
CLI scope keys
| Key | Description | Default | Valid Values |
|---|---|---|---|
apiUrl | Cirron API URL | https://app.cirron.com | Valid URL |
defaultEnv | Default environment for commands | production | development, staging, production |
timeout | Request timeout in milliseconds | 30000 | 1000-300000 |
retries | Retry attempts for failed requests | 3 | 0-10 |
Interactive Mode
Runningcirron config with no options prompts for scope selection:
Hardware Subcommand
Manage hardware profiles used during compilation and build.| Option | Description | Default |
|---|---|---|
--detect | Detect current device hardware | false |
--configure | Configure hardware interactively | false |
--list | List available hardware profiles | false |
--profile <name> | Use specific hardware profile | - |
--save [filename] | Save hardware configuration to file | - |
--from <path> | Load hardware configuration from file | - |
--current | Use current device specifications | false |
--json | Output in JSON format | false |
--verbose | Show detailed information | false |
cirron.yaml.
Security and Storage
- Token masking: tokens display as
abc12345********. - Restricted deletion: only
tokencan be deleted viaconfig --delete; for auth changes usecirron auth logout. - File locations:
~/.cirron/config.json(CLI),~/.cirron/settings.json(global),cirron.yaml(project),~/.cirron/hardware/(hardware profiles).
Environment Variables
Related Commands
- cirron auth - Manage authentication
- cirron info —hardware - Quick hardware detection (shortcut for
cirron config hardware --detect) - cirron info —diagnostics - Run diagnostic checks
- cirron status - Check system status