Authentication

Authenticate with your Teenode account to access the CLI and manage your infrastructure.

Login

Interactive login (recommended):

teenode auth login

Login with email and password:

teenode auth login --email [email protected] --password yourpassword

Check Status

Check if you’re authenticated:

teenode auth status

Get Current User Info

teenode auth whoami

Logout

Logout from your account:

teenode auth logout

Logout without confirmation:

teenode auth logout --yes

Configuration 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_URL

Mock Mode

Test authentication without API calls:

export TEENODE_MOCK=true
    CLI Authentication - Teenode Documentation