CLI Script
cwms-cli
Feature Proposal
Does it make sense to have utility to load or switch CDA environments in cwms-cli? It might take some discipline in setting up environment variables but if everyone did it the same it could make switching between dev, test, prod, local, and on-prem pretty quick. Something like:
# Set default environment
cwms-cli env set dev
# Set source and target for load commands
cwms-cli env set --source prod --target dev
# View current configuration
cwms-cli env get
# List available environments and their configured URLs
cwms-cli env list
# Clear environment configuration
cwms-cli env clear
# Configure environment-specific settings
cwms-cli env config dev --api-root "https://dev.example/cwms-data" --api-key "key"
CLI Script
cwms-cli
Feature Proposal
Does it make sense to have utility to load or switch CDA environments in cwms-cli? It might take some discipline in setting up environment variables but if everyone did it the same it could make switching between
dev,test,prod,local, andon-prempretty quick. Something like: