⚙️Developer Setup
This setup separates three trust boundaries: the Nexus CLI/SDK release, the Sui Testnet wallet, and the versioned Talus token/faucet object manifest. Do not substitute one artifact for another.
Prerequisites
Git and a POSIX-compatible shell.
curlandjq.Homebrew only if using the optional CLI installation below.
The Rust toolchain when adding the SDK or Toolkit to a Rust application, or using the source CLI fallback.
The Sui CLI with Testnet support.
Nexus CLI, SDK, and Toolkit
2.1.1. The SDK and Toolkit are published on crates.io; CLI binaries are available from the GitHub release.
Install Nexus CLI/SDK
The installable CLI/SDK release is v2.1.1. Install the SDK and Toolkit from crates.io and the CLI from the verified GitHub release below; building from source is optional. The Walrus commands, task input files/references, and selectable Move Tool modes require CLI 2.1.1.
Optional CLI installation with Homebrew
Use the verified GitHub binary below for CLI 2.1.1. If you install through Homebrew, verify that the formula provides 2.1.1 before continuing:
Preferred Rust integration from crates.io
For a Rust application, add the published Nexus SDK and Nexus Toolkit packages at 2.1.1 from the application directory:
Verified CLI installation from the GitHub release
The CLI workspace package is not published to crates.io. On Linux x86_64, download the 2.1.1 release archive and verify it against the pinned SHA-256 digest below before extraction; verify the binary before adding it to PATH:
The same GitHub release publishes x86_64 and arm64 macOS archives and an x86_64 Debian package. Select the archive for the host target from the 2.1.1 release, copy its reviewed SHA-256 digest into the verification step, and retain the same failed-download/checksum cleanup before extraction. Do not install nexus-cli with cargo install nexus-cli; that package is not available on crates.io.
CLI 2.1.1 installation from public SDK source
Building the CLI with native Walrus storage requires a C++ compiler and libclang in addition to Rust. On Debian or Ubuntu, install clang and libclang-dev using your system package manager before building. Verify the annotated source tag before Cargo runs:
Verify the fallback CLI
The explicit root isolates the source installation. The export applies to this shell; set NEXUS_CLI_ROOT in your shell startup file and export PATH="$NEXUS_CLI_ROOT/bin:$PATH" there only if you want the CLI to persist across new shells.
Release and reference scope
Use the selected CLI/SDK route above: the v2.1.1 source route verifies the annotated tag and exact checkout, while the v2.1.1 binary route verifies its pinned host archive digest before extraction. The Nexus object bundles and TGE manifests below are independently versioned deployment/discovery artifacts; validate each recorded URL and checksum separately.
Native Walrus storage
SDK and Toolkit 2.1.1 resolve from crates.io without a Git override or [patch.crates-io]. Wallet-funded Walrus uploads additionally require the Git-distributed nexus-walrus adapter, whose upstream dependencies are not published on crates.io. Add it to the application's existing dependency table and enable the SDK's nexus and walrus features when using the shared wallet and storage API:
Regenerate or update and review the consumer's Cargo.lock after dependency changes, then run cargo fetch --locked and the application's build and tests with --locked. Blob reading needs only the SDK; add the adapter when the application needs wallet-funded uploads or ownership management. See Walrus storage for build prerequisites, ownership, recovery, and data limits.
Verify deployment artifacts before use
Keep this shell open for all four artifact blocks below. Run this helper once before downloading; it removes an older destination, verifies the downloaded bytes in a same-directory temporary file, checks TGE JSON network metadata when supplied, and installs only a verified file. A failed download, digest, network, or move exits through the cleanup trap before configuration or object reads can consume the artifact.
The recorded TOML digests bind each object bundle to its network URL; the TGE JSON calls below additionally require metadata.network to match the selected network. Do not replace a URL, digest, or network-specific destination with a value from another environment.
Download and configure Nexus objects
Download the nexus objects for cli configurations:
Configure Sui Testnet
List configured environments before adding another alias:
If testnet is absent, add it, then select it and print the active environment:
The final command should print testnet. Stop on any other network; the object manifest below is Testnet-only.
Create and fund a Sui wallet
Create an Ed25519 address or select an existing Testnet address:
Do not export or paste the private key into shell history. Keep the Sui keystore protected and follow your provider's approved signer-import procedure before configuring Nexus mutations.
Request Testnet SUI for the active address, then verify at least two owned SUI coin objects are available: one for the $US exchange input and a different one for transaction gas.
Configure Nexus Testnet after confirming the Sui environment, address, and two owned SUI coins:
Do not download the TGE manifest or start the faucet flow until Nexus configuration succeeds.
The Sui faucet funds gas; it does not provide Talus $US.
Download the Testnet token and faucet objects
The versioned TGE manifest is public discovery data for the Talus token and faucet. It is not a Nexus network-object bundle, private capability, or signing authority, and it must not be passed to a Nexus CLI --objects option.
Load the three public IDs used below:
Do not use the manifest's treasury or upgrade capability IDs as user inputs. Object IDs are not capabilities, and the wallet created above does not own those privileged objects.
Exchange Testnet SUI for Talus $US
Choose two distinct owned SUI coin object IDs from sui client gas: a small payment coin for the exchange and a separate gas coin. The faucet's public mint function consumes part of the payment coin at the on-chain exchange rate, returns unused SUI, and transfers $US to the transaction sender.
Record the transaction digest, SUI spent, $US received, faucet object version, and final balances.
Nexus object and signer boundary
Nexus CLI commands require the configured release-matched Nexus package/object bindings in addition to the TGE manifest. Wallet and token readiness do not authorize Nexus mutations. Obtain the protected signer procedure from the network operator or wallet provider, confirm that its documented configuration path is present in nexus conf set --help, and follow that procedure before signing a Nexus mutation. Until then, stop at Sui reads, the Testnet faucet flow, and query-only SDK/Explorer/API inspection.
Nexus Mainnet
Configure Mainnet separately. The Mainnet Nexus bundle and token discovery manifest have their own URLs; do not reuse Testnet files or run the Testnet faucet flow on Mainnet.
The v1.1.2 Mainnet manifest publishes token discovery only. Its faucet package and faucet object fields are the literal string "null", so it does not publish a Mainnet faucet flow. Do not construct a faucet call from this file.
Add or select the Sui Mainnet environment, then select a funded Mainnet address before any wallet-backed action:
If mainnet is already listed, do not add it again. If you need a new address, run sui client new-address ed25519 after selecting Mainnet, record the resulting address, and fund it through an approved Mainnet wallet path. sui client active-env must print mainnet, and the gas read must show coins owned by the selected Mainnet address. Do not use the Testnet faucet command on Mainnet.
Configure the Nexus CLI with the Mainnet RPC and release-matched TOML:
After selecting Mainnet and configuring its objects, read the published Mainnet token package:
The pinned CLI has a Testnet-only --data-storage.testnet preset and no --data-storage.mainnet flag. The command above updates the default Nexus configuration with the Mainnet RPC and object bindings while retaining any storage settings that were already present. Do not treat retained Testnet storage settings as Mainnet values. Configure a Mainnet remote-storage backend only from operator-supplied values using the generic storage flags shown by nexus conf set --help.
nexus conf set updates one configuration file by default; it does not create named network profiles. Switching it to Mainnet replaces its RPC and Nexus object bindings. The Mainnet TGE JSON remains token discovery data only; do not pass it to Nexus CLI configuration or use privileged IDs from it as user inputs. Nexus mutations remain blocked until the protected signer procedure is complete and any required Mainnet storage values are supplied. Before returning to the Testnet faucet flow, restore the Testnet inputs:
Confirm that the displayed environment, address, and gas objects match Testnet before continuing.
Next
After the matching Nexus object bindings and protected signer path are supplied, continue with Build an Agent Package, Build an Off-Chain Tool, or the generated SDK reference.
Last updated

