The checkly logout command signs out of your current Checkly account and removes stored authentication tokens from your local machine.
Before using checkly logout, ensure you have:
  • Checkly CLI installed
  • Currently authenticated with Checkly CLI
No internet connection is required as logout works locally.

Usage

The basic command logs out of your current Checkly account and removes stored authentication tokens.
Terminal
npx checkly logout [options]
OptionDescription
--force, -fForce mode. Skips the confirmation dialog.

Command Options

--force, -f
boolean
Skip confirmation dialogs and proceed with the operation.Usage:
Terminal
npx checkly logout --force
npx checkly logout -f
Examples:
Terminal
# Standard logout
npx checkly logout --force

# Output
See you soon! 👋

What Happens During Logout

Session Invalidation

The logout process will:
  1. Remove local tokens from your machine
  2. Require re-authentication for future CLI usage

Token Removal

The command removes authentication tokens stored locally in:
  • macOS: ~/Library/Preferences/@checkly/cli-nodejs/auth.json
  • Linux: ~/.config/@checkly/cli-nodejs/auth.json
  • Windows: %APPDATA%\@checkly\cli-nodejs\auth.json

After Logout

Once logged out, you’ll need to run checkly login before using other CLI commands that require authentication.