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

# lean private-cloud add-compute

[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 private-cloud add-compute

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

## Introduction

Add private cloud compute

```
$ lean private-cloud add-compute [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

Adds a compute node to a running private cloud cluster. Use the `--token`, `--master-domain`, and `--master-port` options to connect the node to an existing master server. Use `--slave-domain` to specify the domain of the node being added. Use `--compute` to select a compute configuration, and `--extra-docker-config` to pass additional Docker configuration as a JSON string.

Pass `--update` to pull the latest Docker image before starting, or `--stop` to stop any existing deployment on this node first.

## Options

The `lean private-cloud add-compute` command supports the following options:

| Option | Description |
| --- | --- |
| `--token <string>` | The master server token |
| `--master-domain, --master-ip <string>` | The master server domain |
| `--master-port <integer>` | The master server port |
| `--slave-domain, --slave-ip <string>` | The slave server domain |
| `--update` | Pull the latest image before starting |
| `--no-update` | Do not update to the latest version |
| `--compute <string>` | Compute configuration to use |
| `--extra-docker-config <string>` | Extra docker configuration as a JSON string |
| `--stop` | Stop any existing deployment |
| `--lean-config <file>` | The Lean configuration file that should be used (defaults to the nearest lean.json) |
| `--verbose` | Enable debug logging |
| `--help` | Display the help text of the `lean private-cloud add-compute` command and exit |
