cirron env
Manage environment variables for your Cirron project environments (development, staging, production, etc.) via the Cirron API.Usage
Options
| Option | Description | Default |
|---|---|---|
--env, -e | Target environment | production |
Subcommands
list
List all environment variables for an environment. Sensitive values (keys containingpassword, secret, or key) are automatically masked.
set
Set or update an environment variable.delete
Delete an environment variable. Prompts for confirmation before deletion.Security
- Values for keys containing
password,secret, orkeyare masked in all output. - Variables are transmitted encrypted and stored securely on the Cirron platform with per-project, per-environment access control.
- Never log secrets in CI; pass them via your CI’s secret store. Regularly audit with
env listand remove unused variables withenv delete.
Requirements
Requires acirron.yaml with declared environments and an authenticated CLI session.
Examples
CI/CD Integration
Troubleshooting
| Error | Resolution |
|---|---|
No cirron.yaml found | Run cirron init my-project |
Not authenticated | Run cirron auth login; verify with cirron auth status |
Failed to fetch environment variables | Check connectivity, re-authenticate, verify cirron config --get apiUrl |
Invalid environment | Ensure the name matches an entry under environments in cirron.yaml |
Related Commands
- cirron auth - Manage authentication
- cirron config - Manage CLI configuration
- cirron deploy - Deploy applications
- cirron status - Check system status