Skip to content

CDA Environment Manager Utility #206

Description

@msweier

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"   

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions