CLI (odx)Command reference
odx context
Manage contexts (named API tokens)
odx context active
Print the name of the active context
Usage:
odx context active [flags]
Flags:
-h, --help help for activeodx context create
Create a context and make it active.
The project API token is read from a hidden prompt (or one line on stdin when stdin is not a terminal). Create tokens in the console under Projects > (your project) > API tokens.
Usage:
odx context create [--endpoint <url>] <name> [flags]
Flags:
--endpoint string API endpoint for this context (default https://api.odinex.cloud/v1)
-h, --help help for create
--token-from-env use the token in ODX_TOKEN instead of promptingodx context delete
Delete a context
Usage:
odx context delete <name> [flags]
Flags:
-h, --help help for deleteodx context list
List contexts
Usage:
odx context list [flags]
Aliases:
list, ls
Flags:
-h, --help help for list
-o, --output stringArray output format: json, yaml, noheader, columns=a,b,c (repeatable)odx context use
Make a context the active one
Usage:
odx context use <name> [flags]
Flags:
-h, --help help for use