Linux Install Script
Overview
The install script installs the Solo CLI on Linux as a single standalone binary, so you don’t need Node.js or npm. Every Solo release since v0.92.0 publishes it.
Note: The install script supports Linux only. On macOS or Windows, or on a Linux system the script doesn’t support yet, install Solo with npm as described in the Quickstart.
Supported Platforms
| Platform | Release binary | Available since |
|---|---|---|
| Linux x86_64 (amd64), glibc | solo-linux-x64 | v0.92.0 |
| Linux arm64 (aarch64), glibc | solo-linux-arm64 | v0.94.0 |
| Linux x86_64 (amd64), musl | solo-linux-x64-musl | v0.96.0 |
| Linux arm64 (aarch64), musl | solo-linux-arm64-musl | v0.96.0 |
On Alpine Linux and other musl-based distributions, the binary needs the C++ runtime libraries. Install them before you run the script:
apk add libstdc++
The script needs curl or wget, and sha256sum or shasum.
Install Solo
One-line install
curl -fsSL https://github.com/hiero-ledger/solo/releases/latest/download/install.sh | sh
To pass options to the script, add -s -- after sh:
curl -fsSL https://github.com/hiero-ledger/solo/releases/latest/download/install.sh | sh -s -- --with-image-cache
Download, inspect, then run
The one-line install runs the script before you can read it. To review it first, or if your organization blocks piping scripts into a shell, download it, inspect it, and then run it:
curl -fsSL https://github.com/hiero-ledger/solo/releases/latest/download/install.sh -o install.sh
less install.sh
sh install.sh
Each release also publishes a Sigstore signature for the script. If you have cosign 2.4.2 or later installed, you can verify the script before you run it:
curl -fsSL https://github.com/hiero-ledger/solo/releases/latest/download/install.sh.sigstore.json -o install.sh.sigstore.json
cosign verify-blob install.sh --bundle install.sh.sigstore.json \
--certificate-identity-regexp '^https://github.com/hiero-ledger/solo/\.github/workflows/' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
Verified OK means a GitHub Actions workflow in the hiero-ledger/solo
repository signed the script.
Verify the installation
Open a new terminal, or run export PATH="$PATH:$HOME/.solo/bin" in the current
one, and then check the version:
solo --version
Options
| Option | Description | Default |
|---|---|---|
--version <tag> | Release to install, for example v0.94.0. | latest |
--prefix <dir> | Directory to install the solo binary into. | ~/.solo/bin |
--with-image-cache | Download Solo’s container images after installing. | Images aren’t downloaded |
--base-url <url> | Base URL to download releases from, for example a mirror. | https://github.com/hiero-ledger/solo/releases |
-h, --help | Show the options and exit. |
You can also set the install directory with the SOLO_INSTALL_DIR environment
variable. --prefix takes precedence over it.
--version works for v0.92.0 and later, for v0.94.0 and later on arm64, and for
v0.96.0 and later on musl. Earlier releases don’t publish the standalone binary.
The script still accepts --skip-image-cache, which turned the image download
off before v0.95.0. It now has no effect, because the script downloads images
only with --with-image-cache.
A mirror passed to --base-url must use the same layout as GitHub Releases:
<url>/latest/download/<file> and <url>/download/<tag>/<file>.
What the Script Does
- Detects your CPU architecture and C library, and picks the matching binary.
- Downloads the release’s
SHA256SUMSfile. If cosign 2.4.1 or later is installed, it verifies the file’s signature and stops if the signature isn’t valid. Without cosign, or with an older version, it skips the signature check and tells you. - Downloads the binary and compares its SHA-256 checksum with
SHA256SUMS. If they don’t match, it stops without installing anything. - Runs the new binary with
--versionbefore installing it, so a binary that can’t run on your system leaves any existing install in place. - Installs the binary to
~/.solo/bin/solo, or to the--prefixdirectory. - Adds
~/.solo/binto yourPATH(see PATH setup). - Warns you if another
solo, for example one installed with npm, comes first on yourPATH. Remove it withnpm uninstall -g @hiero-ledger/soloso the new binary runs. - With
--with-image-cache, runssolo cache image pullto download the container images Solo deploys, which speeds up your first deployment. If this step fails, for example because Docker isn’t running, the install still succeeds; runsolo cache image pulllater to retry. When you install withsudo, the script skips this step, so run the command as your own user afterwards. Without the option, the script only reminds you to runsolo cache image pullbefore your first deployment.
PATH Setup
When the script installs to the default directory and ~/.solo/bin isn’t on
your PATH yet, it adds the directory to your shell’s startup file. It picks
the file from your SHELL environment variable:
| Shell | Startup file | What the script adds |
|---|---|---|
| bash | ~/.bashrc | Lines between # >>> solo installer >>> and # <<< solo installer <<< |
| zsh | ~/.zshrc ($ZDOTDIR/.zshrc when ZDOTDIR is set) | The same lines |
| fish | ~/.config/fish/conf.d/solo.fish | A new file |
With any other shell, or when you install to another directory with --prefix
or SOLO_INSTALL_DIR, the script doesn’t change any startup file. It prints the
export PATH=... line for you to add yourself.
Upgrade Solo
Run the install command again. It installs the latest release over the existing
binary and leaves your PATH setup and Solo configuration as they are. To
install a specific release, pass --version:
curl -fsSL https://github.com/hiero-ledger/solo/releases/latest/download/install.sh | sh -s -- --version v0.94.0
Uninstall Solo
Solo doesn’t have an uninstall command yet. To remove a script install by hand:
Delete the binary and the files it unpacks on its first run:
rm ~/.solo/bin/solo rm -rf ~/.solo/sea-resourcesIf you installed with
--prefixorSOLO_INSTALL_DIR, deletesolofrom that directory instead of~/.solo/bin.Remove the
PATHentry the script added:bash or zsh: delete the lines from
# >>> solo installer >>>to# <<< solo installer <<<in~/.bashrcor~/.zshrc.fish: delete the file the script created:
rm ~/.config/fish/conf.d/solo.fish
This leaves your running networks and Solo’s configuration in ~/.solo in
place. To remove those as well, see Cleanup.