Skip to main content

context

show your active account, project, and environment

🧭 Show your active context.

Prints the account, project, and environment every command resolves by default, and where each value came from — an environment variable (env), a saved default (default), or nothing yet (unset).

Resolution order for any command is: the per-command flag (--account / --project / --environment), then the environment variable, then the saved default. Set defaults with csph account use, csph project use, and csph environment use.

Usage​

csph context [flags]

Aliases​

context, ctx

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​

# show the active context
> csph context

# set defaults, then check
> csph account use <account-id>
> csph project use <project-id>
> csph context

See also​