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 display name, email address, plan, and user ID.

FlagTypeDefaultDescription
--jsonbooleanfalseOutput as JSON.
--humanbooleantrueOutput as human-readable text (default).
Terminal window
nrepo whoami

Output:

Alice
Email: alice@example.com
Plan: Pro
ID: usr_abc123
Terminal window
nrepo whoami --json
{
"id": "usr_abc123",
"email": "alice@example.com",
"display_name": "Alice",
"plan": "pro"
}