src envs import

Import custom environments from a YAML file.

The file should contain environment definitions in the following format:

environments:
Preprod:
public_api: https://api.preprod.example.com
git: git.preprod.example.com
ssh: ssh.preprod.example.com
frontend: https://preprod.example.com
iam: auth.preprod.example.com
Prod:
public_api: https://api.example.com
git: git.example.com
ssh: ssh.example.com
frontend: https://example.com
iam: auth.example.com

Imported environments are saved to the config file and will be available
in all future CLI sessions.

Usage

src envs import <file> [flags]

Examples

src envs import ./env.yaml

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 import <subcommand> --help for more information about a command.

Предыдущая
Следующая