Skip to content

Installation

Cargo Lambda uses Zig to link your functions for Linux systems. The installers below also install Zig for you if it's not in your system.

With Homebrew (macOS and Linux)

You can use Homebrew to install Cargo Lambda on macOS and Linux. Run the following commands on your terminal to add our tap, and install it:

sh
brew tap cargo-lambda/cargo-lambda
brew install cargo-lambda
brew tap cargo-lambda/cargo-lambda
brew install cargo-lambda

With Scoop (Windows)

You can use Scoop to install Cargo Lambda on Windows. Run the following commands to add our bucket, and install it:

sh
scoop bucket add cargo-lambda https://github.com/cargo-lambda/scoop-cargo-lambda
scoop install cargo-lambda/cargo-lambda
scoop bucket add cargo-lambda https://github.com/cargo-lambda/scoop-cargo-lambda
scoop install cargo-lambda/cargo-lambda

With PyPI

You can also use PyPI to install Cargo Lambda on any system that has Python 3 installed:

sh
pip3 install cargo-lambda
pip3 install cargo-lambda

With Docker

You can run Cargo Lambda directly from our official Docker image:

sh
docker pull ghcr.io/cargo-lambda/cargo-lambda
docker pull ghcr.io/cargo-lambda/cargo-lambda

With Nix

You can also use Nix to install Cargo Lambda on any system that supports it:

sh
nix-env -iA nixpkgs.cargo-lambda
nix-env -iA nixpkgs.cargo-lambda

Binary releases

You can also download any Cargo Lambda binary from the Release page.

WARNING

When you download a binary directly, Zig won't be installed for you.

You can use a tool like Cargo Binstall to automatically download a binary package from GitHub:

sh
cargo binstall cargo-lambda
cargo binstall cargo-lambda

Building from source

You can install cargo-lambda on your host machine with Cargo itself. This method is not recommended because the binary will be compiled in your system, which we cannot always guarantee. Using a package manager, or pre-built binaries is always more encouraged to have a functional service and avoid installation issues.

sh
cargo install --locked cargo-lambda
cargo install --locked cargo-lambda

WARNING

cargo-install compiles the binary in your system, which usually takes more than 10 minutes. This method doesn't install Zig either, which is a requirement if you want to cross compile packages from macOS or Windows to Lambda Linux environments.

Released under the MIT License.