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

# lean decrypt

[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 decrypt

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

## Introduction

Decrypt your local project using the specified decryption key.

```
$ lean decrypt [OPTIONS] PROJECT
```

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

Decrypts the files of the given local project using the specified decryption key. Use the `--key` option to provide the path to the key file. If you don't provide a key, the CLI uses the key stored in the project's [Lean configuration file](https://www.quantconnect.com/docs/v2/lean-cli/initialization/configuration.md#03-Lean-Configuration).

To encrypt a project, use [`lean encrypt`](https://www.quantconnect.com/docs/v2/lean-cli/api-reference/lean-encrypt.md).

## Options

The `lean decrypt` command supports the following options:

| Option | Description |
| --- | --- |
| `--key <file>` | Path to the decryption key to use |
| `--verbose` | Enable debug logging |
| `--help` | Display the help text of the `lean decrypt` command and exit |
