src envs
List, activate, and import custom Sourcecraft environments.
By default, only ExtProd (external production) is available. Internal users can
import additional environments from a YAML file using 'src envs import'.
Usage
src envs [flags]
Available commands
| Command | Description |
|---|---|
| activate | Set default environment |
| import | Import environments from a YAML file |
| list | List all available environments |
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 <subcommand> --help for more information about a command.