List LCS contents

To list the contents currently included in local content storage, use this command:

$HOME/ModusToolbox/tools_3.4/lcs-manager-cli/lcs-manager-cli --list

This will display all versions of the BSPs and libraries in local content storage in case (all caps first) and alphabetical order.

List BSPs

To list only the included in local content storage in the

watchlist.json

file, use this command:

$HOME/ModusToolbox/tools_3.4/lcs-manager-cli/lcs-manager-cli --list-bsps

This will display only the BSPs names without versions.

Remove all local content

To remove all content from local content storage, use this command:

$HOME/ModusToolbox/tools_3.4/lcs-manager-cli/lcs-manager-cli --clear-all

This will delete all files from the

lcs/git

directory, and remove the list of BSPs from the

watchlist.json

file.

Note:

If you want to recreate local content storage after using this command, you should first delete the entire lcs directory.

Remove BSP

To remove only a specified BSP and its dependencies from local content storage, use this command:

$HOME/ModusToolbox/tools_3.4/lcs-manager-cli/lcs-manager-cli --clear-bsp <BSPName>;

Where

<BSPName>

is a valid name of a BSP included in local content storage.

Check for updates

To check for updates to existing content in local storage, you must be connected to the internet. Then, use this command:

$HOME/ModusToolbox/tools_3.4/lcs-manager-cli --check-for-updates

Update existing content

If the check for updates option indicates there are updates to your local content, run this command while connected to the internet:

$HOME/ModusToolbox/tools_3.4/lcs-manager-cli/lcs-manager-cli --update-existing 

Note:

The

--update-existing

command only brings down new versions of existing assets. It does NOT bring in new assets that have not already been downlaoded unless those assets are related to a BSP in the watchlist (see

Create partial database

for information about setting up a watchlist). If you want to get all the latest content, including new assets and new versions of existing assets, then use the

--add-all

command.

Update repo

If you only want to update a repo and its dependencies rather than everything, run this command while connected to the internet:

$HOME/ModusToolbox/tools_3.4/lcs-manager-cli/lcs-manager-cli --update <name>

Where

<name>

is a valid name a repo included in local content storage.