# checkly logout - Checkly Docs

> Log out of your Checkly account.

Source: https://www.checklyhq.com/docs/cli/checkly-logout/

---

Back to top
- Usage
- Command Options
- What Happens During Logout Session Invalidation
- Token Removal

- After Logout
- Related Commands

CLI Commands

# checkly logout

Log out of your Checkly account.

The `checkly logout` command signs out of your current Checkly account and removes stored authentication tokens from your local machine.

Prerequisites

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]
```

In a terminal, the CLI asks you to confirm first. When there’s no terminal to answer in, for example in CI, a script or an AI agent, it logs out without asking.
Option Required Description

`--force, -f` - Force mode. Skips the confirmation dialog.

## Command Options

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:

- **Remove local tokens** from your machine

- **Require re-authentication** for future CLI usage

### Token Removal

The command removes authentication tokens stored locally in:

- **macOS**: `~/Library/Preferences/@checkly/cli/auth.json`

- **Linux**: `~/.config/@checkly/cli/auth.json`

- **Windows**: `%APPDATA%\@checkly\cli\Config\auth.json`

The same directory holds a `config.json` with the selected account ID and name, which is cleared as well.

## After Logout

Once logged out, you’ll need to run [`checkly login`](https://www.checklyhq.com/docs/cli/checkly-login) before using other CLI commands that require authentication.

## Related Commands

- [`checkly login`](https://www.checklyhq.com/docs/cli/checkly-login) - Authenticate with your Checkly account

- [`checkly whoami`](https://www.checklyhq.com/docs/cli/checkly-whoami) - Display current account information

- [`checkly switch`](https://www.checklyhq.com/docs/cli/checkly-switch) - Switch between multiple accounts

Was this page helpful?

[Suggest edits](https://github.com/checkly/docs/edit/main/cli/checkly-logout.mdx)[Raise issue](https://github.com/checkly/docs/issues/new?title=Issue%20on%20docs&body=Path:%20/cli/checkly-logout)

[checkly login Previous](https://www.checklyhq.com/docs/cli/checkly-login)[checkly members Next](https://www.checklyhq.com/docs/cli/checkly-members)

[x](https://x.com/checklyhq)[github](https://github.com/checkly)[linkedin](https://linkedin.com/company/checkly)

[Powered by This documentation is built and hosted on Mintlify, a developer documentation platform](https://www.mintlify.com/?utm_campaign=poweredBy&utm_medium=referral&utm_source=checkly-422f444a)
