@nile-markets/cli
v0.3.3
Published
Nile Markets CLI (nile) — prebuilt binaries for the onchain FX forward protocol, zero-config for Sepolia
Maintainers
Readme
@nile-markets/cli
CLI for Nile Markets — onchain FX markets powered by the Open Nile Protocol, starting with non-deliverable forwards (NDFs).
This package ships prebuilt nile binaries for macOS and Linux (x64 + arm64) — no Rust toolchain required.
Install
npm install -g @nile-markets/cliOne-shot without installing:
npx -y @nile-markets/cli@latest pool stateOther install methods:
# Installer script (macOS / Linux)
curl -fsSL https://mcp.nilemarkets.com/install.sh | bash
# Cargo (builds from crates.io)
cargo install nile-markets-cliVerify:
nile --versionZero-config for Sepolia — the binary embeds Sepolia contract addresses, a free public RPC endpoint, and the subgraph URL. Read commands work immediately; writes only need a wallet.
Usage
# Pool state
nile pool state
# Forward prices
nile oracle state
# Simulate, then open a position
nile simulate open --side LONG --tenor 1M --notional 10000 --margin 500
nile position open --side LONG --tenor 1M --notional 10000 --margin 500
# List positions
nile position list --account 0x...All commands output JSON by default (--format table for human-readable output). Run nile <group> --help for details.
Signing
Write commands delegate signing to any OWS-compatible signer binary. The CLI never handles private keys — it builds unsigned transactions and calls the signer as a subprocess.
nile config set-wallet my-walletPlatform support
| Platform | Status |
|----------|--------|
| macOS x64 / arm64 | ✅ bundled |
| Linux x64 / arm64 (glibc) | ✅ bundled |
| Linux (musl / Alpine) | ❌ use cargo install nile-markets-cli |
| Windows | ❌ use WSL or cargo install nile-markets-cli |
Documentation
License
MIT
