---
title: "Lean CLI"
description: "Cross-platform CLI which makes it easier to develop with the LEAN engine locally and in the cloud"
canonical: https://www.quantconnect.com/docs/v2/lean-cli
markdown: https://www.quantconnect.com/docs/v2/lean-cli.md
language: python
source: https://github.com/QuantConnect/Documentation/tree/master/05%20Lean%20CLI
modified: 2026-11-01
index: https://www.quantconnect.com/llms.txt
---

# Lean CLI

[Documentation](https://www.quantconnect.com/docs/v2.md) > Lean CLI

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

![](https://cdn.quantconnect.com/i/tu/docs-cli-icon.svg)

### LEAN CLI

### An easy to use, python shell wrapper on LEAN

### Automate, Scale, and Systemize

LEAN CLI provides notebooks, backtesting, optimization and live trading with a simple to use API, deploying to the cloud or on-premises.

[Get Started](https://www.quantconnect.com/docs/v2/lean-cli/key-concepts/getting-started.md) [Download PDF](https://cdn.quantconnect.com/docs/i/Quantconnect-Lean-Cli-Python.pdf) [Download Cheat Sheet](https://cdn.quantconnect.com/i/tu/cli-cheat-sheet.pdf)

![LEAN CLI](https://cdn.quantconnect.com/i/tu/header-img-cli.webp)

#### IN THIS SECTION

[Getting Started](https://www.quantconnect.com/docs/v2/lean-cli/key-concepts/getting-started.md) [Installation](https://www.quantconnect.com/docs/v2/lean-cli/installation/installing-pip.md) [Initialization](https://www.quantconnect.com/docs/v2/lean-cli/initialization/authentication.md) [API Reference](https://www.quantconnect.com/docs/v2/lean-cli/api-reference/lean-init.md)

---

- [Key Concepts](https://www.quantconnect.com/docs/v2/lean-cli/key-concepts/getting-started.md): Learn the key concepts before using the CLI
- [Installation](https://www.quantconnect.com/docs/v2/lean-cli/installation/installing-pip.md): Install the CLI on your local machine
- [Initialization](https://www.quantconnect.com/docs/v2/lean-cli/initialization/authentication.md): Initialize the CLI
- [Datasets](https://www.quantconnect.com/docs/v2/lean-cli/datasets/format-and-storage.md): Learn to use data from QC and custom files
- [Projects](https://www.quantconnect.com/docs/v2/lean-cli/projects/project-management.md): Manage and deploy your algorithms
- [Research](https://www.quantconnect.com/docs/v2/lean-cli/research.md): Test your hypothesis on historical data in interactive Jupyter notebooks
- [Backtesting](https://www.quantconnect.com/docs/v2/lean-cli/backtesting/deployment.md): Simulate a trading algorithm on historical data
- [Live Trading](https://www.quantconnect.com/docs/v2/lean-cli/live-trading/brokerages.md): Deploy your algorithms in live mode with real-time data
- [Reports](https://www.quantconnect.com/docs/v2/lean-cli/reports.md): Generate polished, professional-grade reports for your algorithms
- [Optimization](https://www.quantconnect.com/docs/v2/lean-cli/optimization/parameters.md): Find the optimal algorithm parameters to maximize or minimize an objective function
- [Object Store](https://www.quantconnect.com/docs/v2/lean-cli/object-store.md): File system that you can use in your algorithms to save, read, and delete data
- [API Reference](https://www.quantconnect.com/docs/v2/lean-cli/api-reference/lean-backtest.md): LEAN CLI commands

## Pages in This Section

- [Key Concepts](https://www.quantconnect.com/docs/v2/lean-cli/key-concepts/getting-started.md): This page provide general understanding of the Lean CLI.
- [Installation](https://www.quantconnect.com/docs/v2/lean-cli/installation/installing-pip.md): Lean how to install Lean CLI.
- [Initialization](https://www.quantconnect.com/docs/v2/lean-cli/initialization/authentication.md): Lean how to authenticate and configure Lean CLI.
- [Datasets](https://www.quantconnect.com/docs/v2/lean-cli/datasets/format-and-storage.md): Learn how to obtain and access data to run algorithm in Lean CLI.
- [Projects](https://www.quantconnect.com/docs/v2/lean-cli/projects/project-management.md): Learn the management, structure, workflow and configuration of projects via Lean CLI.
- [Research](https://www.quantconnect.com/docs/v2/lean-cli/research.md): Learn how to run local research in different editors supported by Lean CLI.
- [Backtesting](https://www.quantconnect.com/docs/v2/lean-cli/backtesting/deployment.md): Learn how to run and debug a backtest in Lean CLI.
- [Live Trading](https://www.quantconnect.com/docs/v2/lean-cli/live-trading/brokerages.md): Learn how to run local and cloud live algorithms via Lean CLI.
- [Reports](https://www.quantconnect.com/docs/v2/lean-cli/reports.md): Learn how to generate and read algorithm report through Lean CLI.
- [Optimization](https://www.quantconnect.com/docs/v2/lean-cli/optimization/parameters.md): Learn how to run algorithm optimization in Lean CLI.
- [Object Store](https://www.quantconnect.com/docs/v2/lean-cli/object-store.md): Learn how to use Object Store in Lean CLI.
- [API Reference](https://www.quantconnect.com/docs/v2/lean-cli/api-reference.md): API reference for command lines supported by Lean CLI.
