Skip to content

Installation

Install nem using the provided installation script:

curl -fsSL https://raw.githubusercontent.com/vi-dev/nem/main/install.sh | sh

By default, nem is installed to ~/.local/bin. Add this directory to your PATH if it isn’t already:

export PATH="$HOME/.local/bin:$PATH"

You can customize the installation directory and version with the NEM_INSTALL_DIR and NEM_VERSION environment variables:

# Install to a custom directory
curl -fsSL https://raw.githubusercontent.com/vi-dev/nem/main/install.sh | NEM_INSTALL_DIR=/usr/local/bin sh

# Install a specific version
curl -fsSL https://raw.githubusercontent.com/vi-dev/nem/main/install.sh | NEM_VERSION=v1.2.3 sh

Confirm the installation:

nem version

Unstable builds

To install the latest build from main instead of a release:

curl -fsSL https://raw.githubusercontent.com/vi-dev/nem/main/install.sh | NEM_VERSION=unstable sh

Unstable builds change on every merge and are not a released version, though they are checksum-verified like releases. Use a stable release unless you need a change that has not shipped yet.