Early Access - The Dcycle CLI is currently available for enterprise customers.
Contact us to learn more about access.
Version & Updates
Check Version
Check for Updates
Update
JSON Output
Configuration
The CLI stores configuration in a YAML file. View the file location with:View Configuration
config list:
Get / Set Values
config set validates values before saving:
- host must be a URL (
http://orhttps://) or a known alias (production,staging,dev,local) - organization_id must be a valid UUID
Clear a Value
Remove a single config value without resetting everything:Reset Configuration
Remove all stored credentials and settings:Import from Legacy CLI
If you previously used the Python-baseddc CLI, import your existing settings:
Environment Management
The CLI supports multiple environments. Switch between them withconfig host:
List Environments
Switch Environment
Environment Variables
Override config values without modifying the config file. Useful for CI/CD pipelines:
Command-line flags always take precedence over environment variables.
Use
dcy config list to see which environment variables are currently active:
Automatic Retry
The CLI automatically retries failed requests caused by transient server issues:
Retry behavior:
- Up to 3 retries with exponential backoff (1s, 2s, 4s)
- Transient connection errors (DNS, dial failures) are retried — but timeouts are not
- Retry attempts are logged to stderr when
--verboseis enabled
Since retries are built-in, you don’t need to wrap
dcy commands in shell retry loops for transient failures. Shell-level retry is only useful for restarting after non-retryable errors like timeouts.Health Check
Rundcy doctor to verify your CLI setup is working correctly:
What it checks
JSON Output
Shell Completions
Enable tab completion for commands, flags, and values.Bash
Zsh
Fish
PowerShell
Troubleshooting
Error Format
When a command fails, the CLI prints an error message and a recovery hint:--json (or --format json), errors are output as structured JSON to stderr:
This lets scripts parse errors consistently:
Token Expired
Wrong Organization
Missing Configuration
Connection Issues
--verbose flag shows the full HTTP request and response on stderr, which helps diagnose API issues without interfering with JSON output.
Exit Codes
The CLI returns typed exit codes so scripts can distinguish between error categories:Reset Everything
Next Steps
Authentication
Set up OAuth login or API key authentication
Organizations
Manage organizations and members