src envs activate
Set the default environment to use for all commands.
The environment will be saved to the config file and used for all subsequent
commands unless overridden with the --env flag.
Usage
src envs activate <environment> [flags]
Examples
src envs activate ExtProd
src envs activate Preprod
Inherited flags
| Flag | Description |
|---|---|
--env string |
Override Sourcecraft environment (use 'src envs' to list available) |
--json string |
Output JSON, optionally filtered (--json or --json=field1,field2) |
--json-compact string |
Output compact JSON, optionally filtered |
--plain |
Output without colors/styling (for LLM consumption) |
-R, --repo string |
Select another repository using OWNER/REPO format |
-V, --verbose |
Enable debug logging output |
Learn more
Use src envs activate <subcommand> --help for more information about a command.