nrepo login / logout / whoami
nrepo login
Section titled “nrepo login”Synopsis
Section titled “Synopsis”nrepo login [options]Description
Section titled “Description”Authenticates the CLI with your NeuralRepo account. By default, nrepo login opens your browser for OAuth authentication. Use --api-key to authenticate with an API key instead.
Options
Section titled “Options”| Flag | Type | Default | Description |
|---|---|---|---|
--api-key | boolean | false | Prompt for an API key instead of opening the browser. |
Examples
Section titled “Examples”# OAuth login (opens browser)nrepo login
# API key login (interactive prompt)nrepo login --api-key
# API key login from environment variableecho "$NEURALREPO_API_KEY" | nrepo login --api-keyCredentials are stored at ~/.config/neuralrepo/config.json.
nrepo logout
Section titled “nrepo logout”Synopsis
Section titled “Synopsis”nrepo logoutDescription
Section titled “Description”Clears all stored credentials from the local configuration file. After logging out, you must run nrepo login again before using other commands.
Example
Section titled “Example”nrepo logout# Logged out. Credentials cleared.nrepo whoami
Section titled “nrepo whoami”Synopsis
Section titled “Synopsis”nrepo whoami [options]Description
Section titled “Description”Displays information about the currently authenticated user, including display name, email address, plan, and user ID.
Options
Section titled “Options”| Flag | Type | Default | Description |
|---|---|---|---|
--json | boolean | false | Output as JSON. |
--human | boolean | true | Output as human-readable text (default). |
Examples
Section titled “Examples”nrepo whoamiOutput:
AliceEmail: alice@example.comPlan: ProID: usr_abc123nrepo whoami --json{ "id": "usr_abc123", "email": "alice@example.com", "display_name": "Alice", "plan": "pro"}Related commands
Section titled “Related commands”- Authentication — overview of auth methods
- nrepo key — manage API keys
- Installation — install the CLI