---
title: "lean logout"
description: "API reference for the command `lean logout` in command line console."
canonical: https://www.quantconnect.com/docs/v2/lean-cli/api-reference/lean-logout
markdown: https://www.quantconnect.com/docs/v2/lean-cli/api-reference/lean-logout.md
language: python
source: https://github.com/QuantConnect/Documentation/tree/master/05%20Lean%20CLI/99%20API%20Reference/43%20lean%20logout
modified: 2026-10-28
index: https://www.quantconnect.com/llms.txt
---

# lean logout

[Documentation](https://www.quantconnect.com/docs/v2.md) > [Lean CLI](https://www.quantconnect.com/docs/v2/lean-cli.md) > [API Reference](https://www.quantconnect.com/docs/v2/lean-cli/api-reference.md) > lean logout

> Code examples are shown in Python. Append `?lang=csharp` to this URL for the C# version of this page.

## Introduction

Log out and remove stored credentials.

```
$ lean logout [OPTIONS]
```

To use the CLI, you must be a member in an [organization](https://www.quantconnect.com/docs/v2/cloud-platform/organizations/tier-features.md) on a paid tier.

## Description

Removes the credentials stored in the `credentials` file in your [global configuration](https://www.quantconnect.com/docs/v2/lean-cli/initialization/configuration.md#02-Global-Configuration) directory.

## Options

The `lean logout` command supports the following options:

| Option | Description |
| --- | --- |
| `--verbose` | Enable debug logging |
| `--help` | Display the help text of the `lean logout` command and exit |
