osmo token#
usage: osmo token [-h] {set,delete,list} ...
Positional Arguments#
- command#
Possible choices: set, delete, list
Sub-commands#
set#
Set a token for the current user.
osmo token set [-h] [--expires-at EXPIRES_AT] [--description DESCRIPTION]
[--service] [--roles ROLES [ROLES ...]]
[--format-type {json,text}]
name
Positional Arguments#
- name#
Name of the token.
Named Arguments#
- --expires-at, -e#
Expiration date of the token. The date is based on UTC time. Format: YYYY-MM-DD
Default:
2026-01-15- --description, -d#
Description of the token.
- --service, -s#
Create a service token.
Default:
False- --roles, -r#
Roles for the token. Only applicable for service tokens.
- --format-type, -t#
Possible choices: json, text
Specify the output format type (Default text).
Default:
'text'
Ex. osmo token set my-token –expires-at 2026-05-01 –description “My token description”
delete#
Delete a token for the current user.
osmo token delete [-h] [--service] name
Positional Arguments#
- name#
Name of the token.
Named Arguments#
- --service, -s#
Delete a service token.
Default:
False
Ex. osmo token delete my-token
list#
List all tokens for the current user.
osmo token list [-h] [--service] [--format-type {json,text}]
Named Arguments#
Ex. osmo token list