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: '2025-11-06'

--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'

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

list#

List all tokens for the current user.

osmo token list [-h] [--service] [--format-type {json,text}]

Named Arguments#

--service, -s

List all service tokens.

Default: False

--format-type, -t

Possible choices: json, text

Specify the output format type (Default text).

Default: 'text'