Skip to main content

list

list tokens

🔑 List all tokens for the current user.

Usage​

csph auth token list [flags]

Aliases​

auth token list, auth token ls, auth tokens list, auth tokens ls, auth api-token list, auth api-token ls, auth api-tokens list, auth api-tokens ls

Options​

Command Specific​

--account <string>
account ID
--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

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​

account_id, account_ids, created_at, expiry, id, name, object, project_ids, scope, 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 a prompt to list all tokens
> csph auth token list

# list all tokens without a prompt
> csph auth token list --no-input

# list all tokens with a specific name
> csph auth token list --name my-token

See also​