Skip to main content

use

set your default project

🎯 Set your default project.

Commands scoped to a project (like service list and apply) use this default, so you don't have to pass --project each time. Stored locally.

Resolution order for any command: the --project flag, then this default, then the COMPUTESPHERE_PROJECT_ID environment variable.

See your current context with csph context.

Usage​

csph projects use <project-id> [flags]

Aliases​

projects use, projects set, project use, project 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 project
> csph project use <project-id>

# see your projects first
> csph project list

See also​