Adding and removing custom indexes

nRF Util

tags
nRF Util

You can add custom indexes to the configuration settings by using the config sdk-index add or config toolchain-index add subcommands.

For example:

nrfutil sdk-manager config sdk-index add lcs2 file://Users/random_user/sdk-lcs2

This command would add an lcs2 custom index to the sdk-indexes list in the configuration settings. Such an index can point to a web URL or to a local URL, as in the example above.

Running the nrfutil sdk-manager config show command would show the following entry in the settings:

sdk-indexes:
  lcs2: file://Users/random_user/sdk-lcs2
With such custom index, you could start using the --sdk-index flag for single commands.

Tip

You can add access tokens when adding the custom indexes.

To remove a custom index, use the config sdk-index remove or the config toolchain-index remove subcommand. For example, to remove the lcs2 custom index added in the command above, you would use the following command:

nrfutil sdk-manager config sdk-index remove lcs2

If the custom index you are removing has been set as the default index, this command unsets the related index (in this case, sdk-index becomes unset again).