cybros keys

Create, list, and revoke org API keys from the terminal. See Authentication for the full key lifecycle.

Synopsis

cybros keys create NAME [--role ROLE]
cybros keys list
cybros keys revoke KEY_ID

cybros keys create

Arguments & options

Argument / flagDefaultDescription
NAMErequiredHuman-readable name for the key.
--rolememberRole granted to the key.

The raw token is shown once — copy it immediately.

cybros keys create "ci-token" --role member
╭─ API key created ────────────────────────────╮
│ ci-token                                      │
│                                               │
│ cybros_sk_live_3f9c8a1b2c3d4e5f6a7b8c9d0e1f   │
│                                               │
│ This is the only time the key is shown.       │
╰───────────────────────────────────────────────╯
# Capture it in a script:
cybros --json keys create "ci-token" | jq -r '.token'

cybros keys list

cybros keys list
                    API keys
┏━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━┓
┃ Name     ┃ Prefix     ┃ Role   ┃ Active ┃ ID       ┃
┡━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━┩
│ ci-token │ cybros_sk…3f1a │ member │ yes │ key_1a2b…│
└──────────┴────────────┴────────┴────────┴──────────┘

The full secret is never listed — only the display prefix…last4.

cybros keys revoke

cybros keys revoke key_1a2b...
Revoked key key_1a2b….

Revocation is immediate and permanent; the key stops working at once.

Exit codes

CodeWhen
0Created / listed / revoked.
1Unknown key or API error.
2Not authenticated.

See also