login - OAuth Authentication
The login command authenticates you with nmbl using OAuth through your Google account. Authentication is required to use most nmbl commands. The authentication process opens your default web browser and securely stores credentials locally.
nmbl login
- Run
nmbl login - Your default browser opens to the Google OAuth page
- Sign in with your Google account
- Grant permissions to nmbl
- Authentication token is stored locally
- You’re ready to use nmbl commands
# Install nmbl
dotnet tool install --global nmbl
# Authenticate
nmbl login
# Verify authentication
nmbl whoami
# If you see authentication errors
nmbl login
# Try the command again
nmbl cc src/
# After installing nmbl on a new machine
nmbl login
# Complete setup process
dotnet tool install --global nmbl
nmbl login
nmbl --version
# New team member setup
dotnet tool install --global nmbl
nmbl login
# Now ready to use team commands
For CI/CD environments, you may need to use alternative authentication methods or license keys. See the Authentication documentation for details.
Authentication tokens are stored:
- Location: In your user profile directory
- Security: Encrypted and accessible only to your user account
- Persistence: Tokens persist across sessions until they expire or you log out
If the browser doesn’t open automatically:
- Copy the URL from the console output
- Manually paste it into your browser
- Complete the authentication flow
If authentication fails:
- Check your internet connection
- Ensure you have a Google account
- Try logging out and back in:
nmbl logout nmbl login
If you see permission errors:
- Ensure you have write access to your user profile directory
- On Linux/Mac, check file permissions
- Try running without sudo (don’t use sudo with login)
If behind a corporate firewall:
- Ensure OAuth URLs aren’t blocked
- Check with your IT department
- Consider using license key authentication instead
nmbl supports multiple authentication methods:
nmbl login
Best for individual developers.
See Authentication documentation for license key setup.
- Never share your authentication token
- Don’t commit tokens to version control
- Don’t share screenshots containing token information
# Periodically re-authenticate for security
nmbl logout
nmbl login
# Authenticate separately on each machine
# Don't copy tokens between machines
logout- Clear authentication tokenswhoami- Check authentication status- Authentication Guide - Detailed authentication documentation