You can override the default configuration settings by using them as flags for some sdk-manager subcommands. For example, the install-dir configuration setting can be overridden using the --install-dir flag.
Note
Using flags with single commands does not overwrite the configuration setting in the configuration file.
Here are some examples for the --install-dir flag usage:
-
With
sdk-manager install: The flag will install the SDKs and toolchains to the specified directory instead of the default location for your operating system. For example,--install-dir C:/testwill install the toolchains and the SDK in subdirectories ofteston Windows:Similarly, you can usenrfutil sdk-manager install v2.8.0 --install-dir C:/test--install-dir ~/teston Linux. Modifying installation location on macOS is not possible. -
With
sdk-manager sdk install: The--install-dirwill install the SDK to the specified directory instead of the default location for your operating system. When usingsdk-manager sdk install, you can also use the--sdk-pathflag. When both flags are used, the--sdk-pathspecifies the final location of the SDK installation (also on a different drive). See Installing SDK to a custom path for more information and an example. -
With
sdk-manager search: The flag will display the SDKs and toolchains installed and available for installation at the specified directory:> nrfutil sdk-manager search --install-dir C:/ncs3 Version SDK Toolchain v2.9.0 Not available Installed v2.8.0 Available Available v2.8.0-rc2 Not available Available v2.8.0-rc1.1 Not available Available v2.8.0-rc1 Not available Available v2.8.0-preview1 Not available Available v2.7.99-cs2 Not available Available v2.7.99-cs1 Not available Available v2.7.0-rc3 Not available Available v2.7.0-rc2 Not available Available v2.7.0-rc1 Not available Available v2.6.99-cs2 Not available Available v2.6.2 Not available Available -
With
sdk-manager list: The flag will display only the SDKs and toolchains installed at the specified directory:> nrfutil sdk-manager search --install-dir C:/ncs3 Version SDK Toolchain v2.9.0 Not available Installed
You can use the same approach for sdk-index and toolchain-index options. If you want to install a specific bundle from a custom index you have added, you can use the --sdk-index or --toolchain-index flag to specify the index name. For example, the following command installs an SDK version from the SDK index called lcs2:
nrfutil sdk-manager install v2.7.0 --sdk-index lcs2