nrfutil toolchain-manager env does not set ZEPHYR_BASE

I am trying to setup a NRF SDK development environment on the terminal on Ubuntu (I already successfully setup using VSCode), and I am trying to use nrfutil toolchain-manager env --as-script for that.

But when I try to build my project using west, it fails with unknown command "build".

Which I is due to missing ZEPHYR_BASE environment variable.

From  How can I enable west build in Git Bash? I supposed the command should have set this variable. If I open a "NRF Connect" terminal in VSCode, the env var is set correctly, and the command VSCode executes when building does not pass the ZEPHYR_BASE in `-z`.

It may be related that the toolchain was installed by VSCode, and I later installed nrfutil toolchain-manager, which made me run into  nrfutil: Error: Failed to find default toolchain , but I fixed it by running nrfutil toolchain-manager install --ncs-version v3.0.2. I tried installing another toolchain version (nrfutil toolchain-manager install --ncs-version v3.0.1), but it displayed the same problem.

Version information

  • nrfutil 8.1.0 (34e21a1 2025-07-29)
  • nrfutil-toolchain-manager 0.15.0 (30dc218 2024-06-12)
  • ncs version v3.0.2

PS: When I tried to post this ticket a error popup appeared in the top right saying only "Could not create ticked". Looking in chrome devtools, there was a request with a 403 response, including a page with "Sorry, you have been blocked" in big letter, but with "Please enable cookies" in small letters before it. Trying to enable cookies didn't solve it. I am now trying to delete parts of my post to see if anything here is triggering it.

Parents Reply Children
No Data
Related