The easiest way to install Starkli is to use
starkliup, a portable script that downloads prebuilt binaries and manages shell configuration for you. However, it might not be available depending on your device's platform and/or architecture.
Note that if you use any installation method other than
starkliup, you will need to manually set up shell completions.
If you're on Linux/macOS/WSL/Android, you can install
stakrliup by running the following command:
curl https://get.starkli.sh | sh
You might need to restart your shell session for the
starkliup command to become available. Once it's available, run the
Running the commands installs
starkli for you, and upgrades it to the latest release if it's already installed.
starkliup detects your device's platform and automatically downloads the right prebuilt binary. It also sets up shell completions. You might need to restart your shell session for the completions to start working.
starkliupitself may change and require upgrading. To upgrade
starkliupitself, run the
curlcommand above again.
Prebuilt binaries are available with GitHub releases for certain platforms.
Prebuilt binaries are best managed with
starkliup. However, if you're on a platform where
starkliup isn't available (e.g. using
starkli on Windows natively), you can manually download the prebuilt binaries and make them available from
If you have Rust installed, it's also possible to install
starkli directly from source. Installing from source might be necessary if you want to use an unreleased feature, for example.
Shell completions would not be configured when you install
starklifrom source. You need to manually set up shell completions for it to work.
To install from GitHub:
cargo install --locked --git https://github.com/xJonathanLEI/starkli
It's not recommended to install Starkli from crates.io, as Starkli is no longer published there there after v0.1.8.
This is because Starkli uses Git dependencies due to the need to bundle multiple SemVer-compatible versions of the Sierra compiler.