Install and Setup¶
Everything you need to go from a blank terminal to a working nsx
command — in about five minutes.
Required Tools¶
NSX generates CMake projects that cross-compile for Arm Cortex-M targets.
Make sure the following are available on your PATH:
| Tool | Version | Purpose |
|---|---|---|
| Python | 3.10+ | Runs the NSX CLI and module resolver |
| uv | latest | Fast Python dependency management |
| CMake | 3.24+ | Build-system generator |
| Ninja | any | Parallel build backend |
| Arm GNU Toolchain | 13.x+ | arm-none-eabi-gcc cross-compiler |
| SEGGER J-Link | 7.x+ | Flash firmware and stream SWO output |
Tip
On macOS you can install most of these with Homebrew:
Option A — Install with pipx (Recommended for App Developers)¶
If you just want the nsx CLI as a standalone tool:
This gives you:
- The
nsxCLI on yourPATH - All runtime Python dependencies in an isolated environment
Verify the install:
nsx doctor checks your local toolchain — it will flag anything that's
missing or misconfigured before you try to build.
Option B — Source Checkout (Recommended for Contributors)¶
Clone the repo and let uv handle the environment:
Activate the environment so nsx is available directly:
Or, if you prefer not to activate, prefix every command with uv run:
Verify the Installation¶
Regardless of install method, run the built-in environment check:
A clean run means Python, CMake, Ninja, the Arm toolchain, and J-Link are all reachable. Any missing tool is called out with a clear error message.
Docs Tooling (Optional)¶
Working on the documentation site? Install the docs dependencies:
Next Steps¶
Environment is ready — time to build your first app.