Interactive
When running the CLI interactively from your dev environment, just use the built-inlogin command. If you have multiple
Checkly accounts, it will prompt which account you want to target.
Terminal
Terminal
Terminal
Terminal
From CI
You can also authenticate using environment variables, which is useful for CI/CD pipelines and automated environments. You will need to export two environment variables in the shell:CHECKLY_API_KEYCHECKLY_ACCOUNT_ID
Terminal
Terminal
Troubleshooting
`npx checkly login` doesn't open a browser window
`npx checkly login` doesn't open a browser window
If
npx checkly login doesn’t automatically open a browser window to authenticate, you can generate a direct link instead.When prompted with:Do you want to open a browser window to continue with login? (Y/n)Enter “n”. The CLI will provide a link that you can copy and paste into your browser to authenticate.