logout - Clear Authentication Tokens
The logout command clears all stored authentication tokens from your local machine. This signs you out of nmbl and removes your credentials. You’ll need to run nmbl login again to use authenticated commands.
nmbl logout
The logout command removes:
- OAuth authentication tokens
- Cached credentials
- Session information
It does NOT remove:
- nmbl tool installation
- Your command history
- Configuration files (other than credentials)
nmbl logout
Removes all authentication tokens.
# Sign out
nmbl logout
# Sign back in
nmbl login
# Verify new authentication
nmbl whoami
# End of day on shared/public machine
nmbl logout
# Before leaving a shared workstation
nmbl logout
Remove your credentials from shared machines.
# If having authentication issues
nmbl logout
nmbl login
Fresh authentication can resolve token corruption or expiry issues.
# Log out of current account
nmbl logout
# Log in with different Google account
nmbl login
# Before decommissioning a development machine
nmbl logout
dotnet tool uninstall --global nmbl
# If credentials might be compromised
nmbl logout
# Then re-authenticate
nmbl login
After logout, verify by checking authentication status:
# Logout
nmbl logout
# Check status (should show not authenticated)
nmbl whoami
# Try a command (should fail with auth error)
nmbl cc src/
After logging out:
- Most nmbl commands will require re-authentication
- Commands that don’t require auth (like
help,version) still work - You can re-authenticate anytime with
nmbl login
These commands work without authentication:
nmbl help
nmbl --version
nmbl -v
nmbl login
nmbl logout
nmbl whoami
If logout fails:
# Check if tool is installed correctly
nmbl --version
# Try again
nmbl logout
If you think tokens weren’t removed:
# Verify by checking auth status
nmbl whoami
# Should show "Not authenticated" or similar
If you have trouble logging back in:
# Ensure clean state
nmbl logout
# Wait a moment
sleep 5
# Try logging in again
nmbl login
# Always logout on shared machines
nmbl logout
# Periodically refresh credentials
nmbl logout
nmbl login
# Logout before vacation or extended time away
nmbl logout
# In CI/CD, use environment-specific authentication
# Don't rely on persistent login tokens
login- Authenticate with OAuthwhoami- Check authentication status- Authentication Guide - Detailed authentication documentation