nb user
nb user provides user account management commands. Currently supports API key rotation for the local authentication adapter.
nb user <action> [args]Actions
Section titled “Actions”| Action | Description |
|---|---|
rotate-key <email> | Rotate the API key for a user, revoking all existing keys |
Rotating an API key
Section titled “Rotating an API key”Generate a new API key for a user and revoke all previous keys:
nb user rotate-key alice@example.comKey rotated for alice@example.com (user_abc123).
New API key: nb_sk_a1b2c3d4e5f6...
Warning: all previous keys for this user are now invalid.Requirements
Section titled “Requirements”- The instance must be configured with the
localauth adapter (see Authentication) - The user must exist (identified by email address)