osmo token#
usage: osmo token [-h] {set,delete,list} ...
Positional Arguments#
commandPossible 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#
nameName of the token.
Named Arguments#
--expires-at, -eExpiration date of the token. The date is based on UTC time. Format: YYYY-MM-DD
Default:
2026-07-26--description, -dDescription of the token.
--service, -sCreate a service token.
Default:
False--roles, -rRoles for the token. Only applicable for service tokens.
--format-type, -tPossible 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#
nameName of the token.
Named Arguments#
--service, -sDelete 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#
--service, -sList all service tokens.
Default:
False--format-type, -tPossible choices: json, text
Specify the output format type (Default text).
Default:
'text'
Ex. osmo token list