Skip to main content

provision

provision tokens

🔑 Create a new token and store it in the local configuration file.

This command is combination of csph auth token create and csph auth token set commands. It will provision a new token and set it as the default token in the local configuration file.

Usage​

csph auth token provision [flags]

Options​

Command Specific​

--account <string>
account ID
--expiry <string>
expiry as date time '2025-01-02 15:04:05' (required)
--name <string>
token name, 1-50 characters: letters and numbers, with hyphens or underscores in the middle (required)
--restrictions <strings>
account or project IDs, depending on the scope, comma separated

--scope <string> (default "full")

scope of the token: [full|account|project] (required)

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 provision a new token
> csph auth token provision

# for other options and usage examples, please refer to `csph auth token create --help`

See also​