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 email address, account plan, and total idea count.
Options
Section titled “Options”| Flag | Type | Default | Description |
|---|---|---|---|
--json | boolean | (see auth) | Output as JSON. |
--human | boolean | (see auth) | Output as human-readable text. |
Examples
Section titled “Examples”nrepo whoamiOutput:
Email: alice@example.comPlan: ProIdeas: 42nrepo whoami --json{ "email": "alice@example.com", "plan": "pro", "idea_count": 42}Related commands
Section titled “Related commands”- Authentication — overview of auth methods
- nrepo key — manage API keys
- Installation — install the CLI