> ## Documentation Index
> Fetch the complete documentation index at: https://www.checklyhq.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.

```bash Terminal theme={null}
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

**--force, -f** `boolean`

Skip confirmation dialogs and proceed with the operation.

Usage:

```bash Terminal theme={null}
npx checkly logout --force
npx checkly logout -f
```

**Examples:**

```bash Terminal theme={null}
# 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/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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.