Skip to content

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

ArgumentRequired
nameyes
FlagTypeDefaultDescription
--contextstringOverride the active context for this invocation (also: NYX_CONTEXT env var)
--expiresstringOptional RFC3339 expiry timestamp
--jsonboolfalseEmit one JSON envelope per invocation (stdout for success, stderr for errors)

Generated from tree.json @ fallbac.