Authentication
Authenticate with your Teenode account to access the CLI and manage your infrastructure.
Login
Interactive login (recommended):
teenode auth loginLogin with email and password:
teenode auth login --email [email protected] --password yourpasswordCheck Status
Check if you’re authenticated:
teenode auth statusGet Current User Info
teenode auth whoamiLogout
Logout from your account:
teenode auth logoutLogout without confirmation:
teenode auth logout --yesConfiguration Storage
Your API key is stored in
~/.teenode/config.json. Keep this file secure!Environment Variables
You can override the API URL for development or staging:
# Use local development API
export TEENODE_API_URL=http://localhost:3001
# Use staging API
export TEENODE_API_URL=https://staging-api.teenode.com
# Use production (default)
unset TEENODE_API_URLMock Mode
Test authentication without API calls:
export TEENODE_MOCK=true