Install the Toolchain - XboxDev/nxdk GitHub Wiki
This is part of the Getting Started guide. Please read the full guide if you have trouble.
Run the following commands in your shell to download and install nxdk:
git clone --depth 1 --recurse-submodules --shallow-submodules https://github.com/XboxDev/nxdk.git
cd nxdk
Next
Continue here