nrepo key
Synopsis
Section titled “Synopsis”nrepo key list [options]nrepo key create <label> [options]nrepo key revoke <key-id> [options]Description
Section titled “Description”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...).
Subcommands
Section titled “Subcommands”| Subcommand | Description |
|---|---|
list | Display all API keys with their labels, creation dates, and last-used timestamps. |
create | Generate a new API key with a descriptive label. |
revoke | Permanently revoke an API key so it can no longer be used. |
Options
Section titled “Options”All subcommands support:
| Flag | Type | Default | Description |
|---|---|---|---|
--json | boolean | (see auth) | Output as JSON. |
--human | boolean | (see auth) | Output as human-readable text. |
Examples
Section titled “Examples”List existing keys
Section titled “List existing keys”nrepo key listOutput:
ID Label Created Last used1 ci-pipeline 2026-01-15 2026-03-232 local-dev 2026-02-20 2026-03-10Create a new key
Section titled “Create a new key”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.
Revoke a key
Section titled “Revoke a key”nrepo key revoke 2# Revoked API key #2 "local-dev"Related commands
Section titled “Related commands”- Authentication — overview of auth methods
- nrepo login / logout / whoami — manage sessions