upctl account token create
Create an API token
Examples
upctl account token create --name test --expires-in 1h
upctl account token create --name test --expires-in 1h --allow-ip-range "0.0.0.0/0" --allow-ip-range "::/0"
Options
Option | Description |
---|---|
--name |
Name for the token. |
--expires-at |
Exact time when the token expires in RFC3339 format. e.g. 2025-01-01T00:00:00Z |
--expires-in |
Duration until the token expires. e.g. 24h Default: 0s |
--can-create-tokens |
Allow token to be used to create further tokens. Default: false |
--allow-ip-range |
Allowed IP ranges for the token. If not defined, the token can not be used from any IP. To allow access from all IPs, use 0.0.0.0/0 as the value.Default: [] |
--help , -h |
help for create Default: false |
Global options
Option | Description |
---|---|
--client-timeout , -t |
Client timeout to use in API calls. Default: 0s |
--config |
Configuration file path. |
--debug |
Print out more verbose debug logs. Default: false |
--force-colours |
Force coloured output despite detected terminal support. |
--no-colours |
Disable coloured output despite detected terminal support. Colours can also be disabled by setting NO_COLOR environment variable. |
--output , -o |
Output format (supported: json, yaml and human) Default: human |
Related commands
Command | Description |
---|---|
upctl account token | Manage tokens (EXPERIMENTAL) |