Skip to main content

use

set your default account

🎯 Set your default account.

Every command that needs an account uses this default, so you don't have to pass --account each time. The choice is saved on the server (so it follows you across machines) and cached locally.

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

csph auth login already sets this for you when your account has a server-side default or when you have only one account. Use this command to change it.

Usage​

csph accounts use <account-id> [flags]

Aliases​

accounts use, accounts set, account use, account 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 account
> csph account use <account-id>

# `set` is an alias
> csph account set <account-id>

# see your accounts first
> csph account list

See also​