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

# lean config get

[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 config get

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

## Introduction

Get the current value of a configurable option.

```
$ lean config get [OPTIONS] KEY
```

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

Prints the value of the requested option or aborts if the value is not set.

This command doesn't print the values of credentials for security reasons. Open the `credentials` file in your [global configuration](https://www.quantconnect.com/docs/v2/lean-cli/initialization/configuration.md#02-Global-Configuration) directory to see your stored credentials.

## Arguments

The `lean config get` command expects the following arguments:

| Argument | Description |
| --- | --- |
| `<key>` | The key of the value to retrieve. Run `lean config list` to get a list of all available keys. |

## Options

The `lean config get` command supports the following options:

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