Install the CLI
Install ndn on macOS or Linux with the installer:
curl -fsSL https://nodana.io/cli | sh
The installer supports macOS on Apple silicon or Intel, and Linux on x86-64. It installs the binary in /usr/local/bin when that directory is writable, or in ~/.local/bin otherwise.
If ndn is not found after installation, add the directory printed by the installer to your PATH, then open a new terminal.
Upgrade
Run the same installer again to replace your installed binary with the latest release.
Connect your account
Run ndn login and complete sign-in in your browser. See Connect the CLI for the approval steps, permissions and expiry.
Build from source
With the Rust toolchain installed, clone the CLI repository and run cargo install --locked --path . from its directory. Windows users can build from source.