API Reference
lean build
Description
Builds local Docker images of a local version of LEAN and sets them up for local usage with the CLI. After running this command, all commands that run the LEAN engine or the research environment use your custom images. This command performs the following actions:
- The
lean-cli/foundation:latest
image is built from Lean / DockerfileLeanFoundation (if you're using an AMD64-based system) or Lean / DockerfileLeanFoundationARM (if you're using an ARM64-based system). - LEAN is compiled in a Docker container using the
lean-cli/foundation:latest
image. - The
lean-cli/engine:latest
image is built from Lean / Dockerfile usinglean-cli/foundation:latest
as the base image. - The
lean-cli/research:latest
image is built from Lean / DockerfileJupyter usinglean-cli/engine:latest
as the base image. - The default engine image is set to
lean-cli/engine:latest
. - The default research image is set to
lean-cli/research:latest
.
When the foundation Dockerfile is the same as the one used for the official foundation image, step 1 is skipped and quantconnect/lean:foundation
is used instead of lean-cli/foundation:latest
.
Arguments
The lean build
command expects the following arguments:
Argument | Description |
---|---|
<lean> | The path to the directory containing the LEAN repository. Defaults to the current working directory. |