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
-
→
Updates the active environment tracking
-
→
Creates environment-specific directory if needed
-
→
Updates symlinks (Unix) or files (Windows) for environment tracking
-
→
Shows confirmation of the switch
Output
🔄 Switching to environment 'production'...
✅ Switched to environment 'production'
💡 Current environment: production
💡 Sync secrets with: initiat env sync