Before initializing, start the toolchain environment:
nrfutil sdk-manager toolchain launch --ncs-version v3.4.0 --shell
You can also run a single command within a specific nRF Connect SDK toolchain. For example:
nrfutil sdk-manager toolchain launch --ncs-version v3.4.0 -- <your command>
This form is useful for running, for instance, a single west command with a specific toolchain. You can create an alias or shell function for this command to avoid typing it in full every time.
In this document, the nrfutil sdk-manager toolchain launch --shell variant is used to launch the toolchain environment in the shell.
To initialize the workspace folder (asset-tracker-template) where the firmware project and all nRF Connect SDK modules will be cloned, run the following commands:
# Initialize asset-tracker-template workspace
west init -m https://github.com/nrfconnect/Asset-Tracker-Template.git --mr main asset-tracker-template
cd asset-tracker-template
# Update nRF Connect SDK modules. This may take a while.
west update
The template repository is now cloned into the asset-tracker-template folder, the west modules are downloaded, and you are ready to build the project.