Skip to main content

list

list accounts

🗃️ List your accounts. The list can be filtered by name or country, and printed in different output formats. Note that the default account is always included in the list.

Usage​

csph accounts list [flags]

Aliases​

accounts list, accounts ls, account list, account ls

Options​

Command Specific​

--country <string>
country
--currency <string>
currency
--name <string>
name

--order <string> (default "desc")

order to sort by: [asc|desc]

-p, --page <int> (default 1)

page number
--search <string>
search term

-s, --size <int> (default 0)

max items to return (0 = all / server default)
--sort <string>
field to sort by
--subscription <string>
subscription ID

Formatting​

For more information about formatting options, see Formatting.

--fields <strings>
output JSON with the specified fields
--jq <string>
filter JSON output with jq expression

-o, --output <string>

output format: [table|plain|csv|json|yaml]
--template <string>
format JSON using a Go template

Available Fields​

activation_at, active, available_spherestor, country, created_at, currency, delete_at, feature_access, frozen_at, id, name, object, role, spherestor_count, state, status, subscription, subscription_id, trial_end_at, trial_min_days, trial_start_at, trial_status, updated_at, user_id

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​

# start an interactive session to list accounts
> csph account list

# list accounts as JSON (non-interactive)
> csph account list --output json

# list accounts with a specific name
> csph account list --name my-account

# list accounts in a specific country
> csph account list --country "US"

See also​