Skip to content

nrepo key

Terminal window
nrepo key list [options]
nrepo key create <label> [options]
nrepo key revoke <key-id> [options]

nrepo key manages API keys for your NeuralRepo account. API keys allow authentication in headless or CI environments where browser-based OAuth is not available.

API keys use the format nrp_ followed by 64 hexadecimal characters (e.g., nrp_a1b2c3...).

SubcommandDescription
listDisplay all API keys with their labels, creation dates, and last-used timestamps.
createGenerate a new API key with a descriptive label.
revokePermanently revoke an API key so it can no longer be used.

All subcommands support:

FlagTypeDefaultDescription
--jsonboolean(see auth)Output as JSON.
--humanboolean(see auth)Output as human-readable text.
Terminal window
nrepo key list

Output:

ID Label Created Last used
1 ci-pipeline 2026-01-15 2026-03-23
2 local-dev 2026-02-20 2026-03-10
Terminal window
nrepo key create "github-actions"

Output:

Created API key "github-actions"
Key: nrp_4f8a2b... (save this — it will not be shown again)

The full key is displayed only at creation time. Store it securely.

Terminal window
nrepo key revoke 2
# Revoked API key #2 "local-dev"