Skip to main content

get

get tokens

🔑 Retrieve an API token by ID.

Usage​

csph auth token get [flags]

Aliases​

auth token get, auth token show, auth tokens get, auth tokens show, auth api-token get, auth api-token show, auth api-tokens get, auth api-tokens show

Options​

Command Specific​

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

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 get the token
> csph auth token get

# get the token by ID
> csph auth token get <token-id>

See also​