Shortest command
SHA256SUMS, and copies the binary into /usr/local/bin.
Options
Pass options aftersh -s --:
| Option | Default | Effect |
|---|---|---|
--version <TAG> | latest | Pin a specific release. |
--dir <PATH> | /usr/local/bin | Install location. Use $HOME/.local/bin for a rootless install. |
--help | — | Print usage. |
Supported targets
| OS | CPU | Tarball |
|---|---|---|
| Linux | x86_64 | mxnode-<TAG>-x86_64-unknown-linux-musl.tar.gz |
| Linux | aarch64 | mxnode-<TAG>-aarch64-unknown-linux-musl.tar.gz |
| macOS | x86_64 | mxnode-<TAG>-x86_64-apple-darwin.tar.gz |
| macOS | arm64 | mxnode-<TAG>-aarch64-apple-darwin.tar.gz |
Required tools
| Tool | Why |
|---|---|
curl | Download the tarball + SHA256SUMS |
tar | Extract the binary |
sha256sum or shasum | Verify the download. The installer refuses to run without one. |
sudo | Only when the install dir isn’t operator-writable |
Rootless install
$HOME/.local/bin isn’t on your PATH:
Update
Re-run the installer. The new binary overwrites the old in place. Existing nodes (elrond-node-{i}.service) are untouched — the upgrade is to the CLI, not to the node binaries.
Uninstall
mxnode places exactly one file: the binary at the install dir.cleanup before removing the binary.
Under the hood
- Detect OS (Linux/Darwin) and CPU (x86_64/aarch64).
- Resolve the release tag — explicit
--versionorlatestfrom the GitHub API. - Download
mxnode-<TAG>-<TARGET>.tar.gzandSHA256SUMS. - Compute the local sha256 and compare. Refuse on mismatch.
- Extract to a tempdir, then
install -m 0755the binary into--dir(withsudoif needed). - Print the version.
github.com.
