checkly login
command authenticates with Checkly by signing up for a new account or logging in to your existing account.
This command opens a browser window or provides a URL for secure OAuth authentication.
Prerequisites
Prerequisites
Before using
checkly login
, ensure you have:- Checkly CLI installed
- A web browser available (for OAuth authentication)
- Internet connection for authentication flow
Usage
The basic command initiates the login process and authenticates with your Checkly account.Terminal
Use environment variables in environments without interactive prompts. See the Authentication section for more info.
Examples
Terminal
Authentication Flow
The login process is interactive and will:- Open your default browser to the Checkly authentication page
- Prompt for account selection if you have multiple accounts
- Store authentication tokens locally for future CLI usage
- Display confirmation with your account information
New Users
If you don’t have a Checkly account:- Click “Sign up” on the authentication page
- Complete account registration
- Return to the CLI - you’ll be automatically logged in
Existing Users
If you already have an account:- Enter your credentials on the authentication page
- Complete any two-factor authentication if enabled
- Return to the CLI - authentication will complete automatically
Authentication Storage
After successful login, the CLI stores authentication tokens locally in:- macOS:
~/Library/Preferences/@checkly/cli-nodejs/auth.json
- Linux:
~/.config/@checkly/cli-nodejs/auth.json
- Windows:
%APPDATA%\@checkly\cli-nodejs\auth.json
Troubleshooting
Browser doesn’t open automatically
If the authentication browser window doesn’t open:- Decline to open a new browser window in the CLI dialog
- Manually open the displayed URL in your preferred browser
- Complete authentication and return to the CLI
Multiple accounts
If you have access to multiple Checkly accounts, you’ll be prompted to select which account to use as the active account for CLI operations. You can also switch accounts later usingcheckly switch
.
Related Commands
checkly logout
- Sign out of your Checkly accountcheckly whoami
- Display current account informationcheckly switch
- Switch between multiple accounts