Environment Variables
Setting Environment Variables
Command Line
dcd cloud -e API_URL=https://api.example.com -e API_KEY=secretMultiple Variables
dcd cloud -e DB_HOST=localhost \
-e DB_USER=test \
-e DB_PASS=password \
-e ENVIRONMENT=stagingUse Cases
Configuration Management
# Development
dcd cloud -e API_URL=https://dev-api.example.com
# Staging
dcd cloud -e API_URL=https://staging-api.example.com
# Production
dcd cloud -e API_URL=https://api.example.comSecure Credentials
Best Practices
Last updated