NDK CLI
NDK ships a standalone command line interface for querying relays, managing identities, publishing events, and operating Lightning/Cashu wallets — without writing any Dart code. It is a prebuilt binary — no Dart or Flutter toolchain required.
Commands
Install
Single command (Linux / macOS)
curl -fsSL https://raw.githubusercontent.com/relaystr/ndk/refs/heads/master/install.sh | bash
By default this installs the ndk binary to ~/.local/bin/ndk and its shared libraries to ~/.local/lib (user mode).
Install options
# system-wide install (/usr/bin/ndk) — may require sudo
curl -fsSL https://raw.githubusercontent.com/relaystr/ndk/refs/heads/master/install.sh | bash -s -- --system
# pin a specific version
NDK_VERSION=v0.8.3 curl -fsSL https://raw.githubusercontent.com/relaystr/ndk/refs/heads/master/install.sh | bash
# latest pre-release
NDK_VERSION=latest-pre curl -fsSL https://raw.githubusercontent.com/relaystr/ndk/refs/heads/master/install.sh | bash
Environment variables
PATH
If ~/.local/bin is not in your PATH, add it to your shell profile:
export PATH="$PATH:$HOME/.local/bin"
Verify the installation:
ndk --version
See releases for available versions.
Usage
ndk [global options] <command> [args]
Global options (must come before the command name):
Run ndk with no arguments, or ndk --help, to list all commands.
Persistence & local state
The CLI stores the following files in your working directory (or the locations noted):