Manage packages from the command line (cfsutil)
You can use cfsutil to install, view, and remove packages in CodeFusion Studio as they become available.
To access cfsutil, open a new terminal (View > Terminal or `Ctrl+``). Then complete the following steps:
Note
To run cfsutil from a system terminal outside VS Code, see CFS command line utility
- In the terminal panel, click the dropdown arrow next to the + icon.
- Select CFS Terminal from the list.
- Run your command, for example:
cfsutil pkg --help
For additional information see CFS Terminal.
Find available packages
To see what packages you can install, run:
cfsutil pkg search "*"
Note
Wrap the pattern in quotes to avoid issues with wildcard expansion.
You can also view details about a package, whether or not it’s installed:
Example: View package details
cfsutil pkg info zephyr/4.2.0
Install a package
To install a package, run the following command with the package reference. The package reference is written in the format <name>/<version>.
cfsutil pkg install <package-reference>
Only one version of a package can be installed at a time. Installing a new version replaces the one currently installed.
See the following examples:
Example: Install CFS plugins for workspace creation, System Planner configuration, and code generation
cfsutil pkg install cfs_base_plugins/<version>
Note
Replace <version> with the latest version shown in the Package Manager.
Example: Install CFS data models for System Planner
cfsutil pkg install cfs_base_data_models/<version>
Example: Install Zephyr to develop Zephyr projects
cfsutil pkg install zephyr/<version>
Example: Install MSDK to develop MAX32xxx and MAX7800x projects
cfsutil pkg install msdk/<version>
Verify installation
To check what you’ve installed run:
cfsutil pkg list
To narrow the results, use a pattern with a wildcard:
Example: List all Zephyr versions installed
cfsutil pkg list "zephyr*"
Uninstall a package
To uninstall a package, first check if other packages depend on it:
cfsutil pkg local-consumers <name>
Example: Check for dependent packages before uninstalling
cfsutil pkg local-consumers msdk
If dependencies are listed, you must uninstall those dependent packages first. If no dependencies are listed, you can uninstall the package. Only include the package name (not the version) in the command:
cfsutil pkg uninstall <name>
Example: Uninstall the MSDK package
cfsutil pkg uninstall msdk
Clean up unused packages
After uninstalling packages, you can remove any unused cached packages from your local storage:
cfsutil pkg delete "*"
This command deletes all packages that are not actively installed. If some packages are still in use, the command reports which ones remain. You can then uninstall those with:
cfsutil pkg uninstall <name>
and run the delete command again to complete the cleanup.
Tip
To view the full list of commands, run cfsutil pkg --help or refer to cfsutil.
Each command also provides its own help. For example: cfsutil pkg install --help.

