Skip to main content

use

set your default environment

🎯 Set your default environment.

Commands that need an environment (like apply) use this default, so you don't have to pass --environment each time. Stored locally.

Resolution order: the --environment flag, then this default, then the COMPUTESPHERE_ENVIRONMENT environment variable.

See your current context with csph context.

Usage​

csph environments use <environment-id> [flags]

Aliases​

environments use, environments set, env use, env set, envs use, envs set, environment use, environment set

Options​

Inherited​

--config <string>
config file (default is $HOME/.config/computesphere/configuration.yaml)
--debug
enable debug logging

-h, --help

show this help message

-i, --interactive

run interactively (prompts, pickers, table browser)
--log-level <string>
log level: [trace|debug|info|warn|error|fatal|panic|disabled||api]
--no-color
disable color output
--no-input
disable interactive mode

Examples​

# set your default environment
> csph environment use <environment-id>

# see environments in a project first
> csph environment list --project <project-id>

See also​