Skip to content

nrepo login / logout / whoami

Terminal window
nrepo login [options]

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.

FlagTypeDefaultDescription
--api-keybooleanfalsePrompt for an API key instead of opening the browser.
Terminal window
# OAuth login (opens browser)
nrepo login
# API key login (interactive prompt)
nrepo login --api-key
# API key login from environment variable
echo "$NEURALREPO_API_KEY" | nrepo login --api-key

Credentials are stored at ~/.config/neuralrepo/config.json.


Terminal window
nrepo logout

Clears all stored credentials from the local configuration file. After logging out, you must run nrepo login again before using other commands.

Terminal window
nrepo logout
# Logged out. Credentials cleared.

Terminal window
nrepo whoami [options]

Displays information about the currently authenticated user, including email address, account plan, and total idea count.

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

Output:

Email: alice@example.com
Plan: Pro
Ideas: 42
Terminal window
nrepo whoami --json
{
"email": "alice@example.com",
"plan": "pro",
"idea_count": 42
}