$ initiat commands
$ initiat env switch
Switch to a specific environment and update the active environment tracking
Back to Docs

Usage

      initiat env switch <environment>
      
    

Arguments

environment required

Name of the environment to switch to

Examples

Switch to production environment

      initiat env switch production
      
    

Switch to staging environment

      initiat env switch staging
      
    

Switch to development environment

      initiat env switch development
      
    

How it works

  1. Updates the active environment tracking

  2. Creates environment-specific directory if needed

  3. Updates symlinks (Unix) or files (Windows) for environment tracking

  4. Shows confirmation of the switch

Output

      🔄 Switching to environment 'production'...
✅ Switched to environment 'production'

💡 Current environment: production
💡 Sync secrets with: initiat env sync

      
    
© 2025 Initiat Technologies. All rights reserved.