oz0 token create
Create a join token; nodes that use it are accepted without approval, into its tenant only.
For: Operators and developers looking up a command.
Create a join token; nodes that use it are accepted without approval, into its tenant only.
A token is bounded: by default it admits one node and lasts 24 hours. --max-uses takes 1 to 1000 and --ttl at most 720h (30 days); 0 is refused, since a token is never unlimited and never lasts forever.
Usage
oz0 token create [flags]
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--description | string | what the token is for | |
--json | bool | print JSON instead of a table | |
--label | stringArray | label for joining nodes, key=value; repeatable | |
--max-uses | uint32 | 1 | how many nodes may join with it, 1 to 1000; a token is never unlimited |
--tenant | string | default | tenant the nodes join |
--ttl | duration | 24h0m0s | how long the token is valid, at most 720h (30 days); a token never lasts forever |
Inherited flags
| Flag | Type | Default | Description |
|---|---|---|---|
--context | string | $OZ0_CONTEXT or <config dir>/orchestrator-zero/context.json | CLI context file written by server init |
--log-level | string | info | log level: debug, info, warn or error |
See all oz0 commands and the global flags.