Early Access - The Dcycle CLI is currently available for enterprise customers.
Contact us to learn more about access.
Logging In
The CLI uses the same credentials as the Dcycle web application.Browser Login (Default)
Terminal Login
Use--no-browser to authenticate directly in the terminal:
Terminal mode is used automatically when
--email or --password flags are provided, or when stdin is not a TTY (e.g. in CI/CD pipelines).Non-Interactive Login
For automation and scripting:Login Flags
API Key Authentication
For CI/CD pipelines, scripts, and non-interactive environments, use API key authentication instead of browser login.Setting Up an API Key
Store an API key in your local config:--host:
Using Environment Variables
You can also authenticate entirely via environment variables — no config file needed:CI/CD Example (GitHub Actions)
Auth Method Priority
When both an API key and a login token are available, the API key takes precedence:- API key (
DCYCLE_API_KEYenv var orapi_keyin config) — usesx-api-keyheader - Login token (
dcy auth login) — usesAuthorization: Bearerheader
Config File with API Key
Checking Session Status
View your current authentication state:Auth method shows api_key instead of token.
When not authenticated:
Verifying Credentials
Use--check to verify your stored credentials are still valid by calling the API:
JSON Response
--check, the JSON response includes valid and check_error fields:
Logging Out
Configuring Environments
The CLI can connect to different Dcycle environments.List Available Hosts
yes if it’s the current host.
JSON Response
Switch Environment
Development and staging environments automatically disable SSL verification for self-signed certificates.
Configuration Management
Show Current Configuration
List Config Values
Quick summary of host, environment, user, and organization:JSON Response
Get / Set Individual Values
Print Config File Path
Reset Configuration
Remove all stored credentials, tokens, and settings:Import from Legacy CLI
If you previously used the Pythondc CLI, import your configuration:
Configuration File
The CLI stores configuration in~/.config/dcycle/v2/config.yaml:
Configuration Priority
- Command-line flags (highest priority)
- Environment variables (
DCYCLE_API_KEY,DCYCLE_HOST) - Configuration file (
~/.config/dcycle/v2/config.yaml) - Defaults (lowest priority)
Environment Variables
For CI/CD and automation:CLI Health Check
Rundcy doctor to verify your CLI setup:
✓ = ok, ! = warning, ✗ = failure. Use --format json for machine-readable output.
Troubleshooting
Permission Errors (403/404)
-
Verify your session is valid:
-
Check you’re in the correct organization:
-
Run the health check:
Token Expired
Check and re-authenticate:SSL Certificate Errors
For staging/development environments:Reset Everything
If the config is corrupted, start fresh:Next Steps
Organizations
Learn how to manage organization context
Configuration
Advanced configuration and environment setup
Examples
See common workflow examples
Overview
Full command reference