nyx_token_create
Issue a new token. The plaintext value is shown exactly once — copy it and store it somewhere safe. The server only stores a SHA-256 hash, so a token cannot be re-displayed later; if you lose it, delete it and create a new one.
Standard flow:
nyx token create ci-runner —json | jq -r ‘.data.token’ > ~/.config/ci.token nyx token create laptop-2
Arguments
Section titled “Arguments”| Argument | Required |
|---|---|
name | yes |
| Flag | Type | Default | Description |
|---|---|---|---|
--context | string | Override the active context for this invocation (also: NYX_CONTEXT env var) | |
--expires | string | Optional RFC3339 expiry timestamp | |
--json | bool | false | Emit one JSON envelope per invocation (stdout for success, stderr for errors) |
Generated from tree.json @ fallbac.