Introduction
The LCS feature provides a command-line tool called lcs-manager-cli that allows you to create your own local content on demand. You can decide whether to save the entire database (approximately 5 GB of data) or a subset of data for the BSPs that you specify.
Note:
To use LCS, you must first be able to connect to the Internet in order to download content. Then, you can access the local content when needed without the Internet.
After acquiring local content, you explicitly set whether to use local or online content. The rest of the ModusToolbox™ ecosystem will use what you select.
Running lcs-manager-cli
For Windows, we recommend using the modus-shell bash tool included with the tools package installation by typing "modus-shell" in the Windows search box. However, you can also use PowerShell or the CMD tool. Just make sure to use the proper protocols and commands for the terminal in use. The examples in this document use modus-shell.
For macOS and Linux, you can use the default terminal.
lcs-manager-cli options
The lcs-manager-cli tool is located in the <path>/ModusToolbox/tools_<version>/lcs-manager-cli/ directory. If you run it with the -h option, you will see the following output:
$ ./lcs-manager-cli -h
Usage: <path>\ModusToolbox\tools_3.2\lcs-manager-cli\lcs-manager-cli.exe [options]
Options:
-?, -h, --help Displays help on commandline options.
--help-all Displays help including Qt specific options.
-v, --version Displays version information.
--verbose Enable verbose output
--list List the content in local content storage
--add-all Add all content from remote manifest to local content
storage
--clear-all Remove all content from local content storage
--list-bsps List the BSPs on the watch list
--add-bsp <name> Add the BSP to the watch list and add its dependencies
to local content storage
--clear-bsp <name> Remove the BSP from the watch list and remove its
dependencies to local content storage
--check-for-updates Check for available updates
--update <name> Update a repository and its dependencies.
--update-existing Update local content repositories.
Note:
The usage shows the path using standard Windows back slashes. This is standard output from Qt. If you are running LCS commands using modus-shell, you must use forward slashes for the path.