tenderly login command authenticates you with your Tenderly account, allowing you to use CLI features that require authentication.
Usage
Authentication Methods
Tenderly CLI supports two authentication methods:- Email/Password - Interactive login with your Tenderly credentials
- Access Key - Token-based authentication using a key from your dashboard
Interactive Login
Run the command without flags for an interactive authentication flow:- Select authentication method (Email or Access key)
- Enter your credentials
Non-Interactive Login
Flags
The email address associated with your Tenderly account.Used when
--authentication-method is set to email.The password for your Tenderly account.Used when
--authentication-method is set to email.The access key generated in your Tenderly dashboard.Generate an access key at: https://dashboard.tenderly.co/account/authorization
Specify the authentication method to use.Possible values:
email- Authenticate using email and passwordaccess-key- Authenticate using an access key
Force login even if already authenticated.Use this flag to switch between different Tenderly accounts.
Examples
Interactive Login Flow
Login with Email (Non-Interactive)
Login with Access Key
Force Re-Login
If you’re already logged in and want to switch accounts:Behavior
Check Existing Session
The CLI first checks if you’re already logged in. If authenticated, it displays:
Authentication
Based on the selected method:
- Email: Makes a login request with your credentials (3 attempts allowed)
- Access Key: Validates the provided access key
Store Credentials
Upon successful authentication, the CLI:
- Stores the access key in the global configuration
- Fetches and stores your principal information (user or organization)
- Saves account ID, email/organization name, and username
After successful login, the CLI suggests running
tenderly init if a project is detected in the current directory.Error Handling
Invalid Credentials
If email/password authentication fails:Invalid Access Key
If the access key is invalid:Unsupported Authentication Method
Next Steps
After logging in:- Initialize a project: Run
tenderly initin your project directory - Verify authentication: Run
tenderly whoamito check your login status - Start using CLI features: Export transactions, push contracts, run simulations, etc.