Project
The project command manages projects defined in a CFS workspace (.cfsworkspace file). It can be used to regenerate projects from the command line.
Create project
cfsutil project create -w <path/.cfsworkspace> -p <project-name> [-s <plugin/search/directory>]
Regenerates a project defined within an existing .cfsworkspace file.
Important
The workspace and its .cfsworkspace file must already exist before using this command. This command regenerates projects that are already defined in the Projects array. It cannot create new projects or add projects to an existing workspace—it only rebuilds existing projects, typically after a plugin upgrade or workspace update. The command overwrites the project structure based on the latest plugin templates.
Known limitation: Workspaces created from templates may have an empty Projects array. Because this command only regenerates existing projects, it will fail if the Projects array is empty. To use cfsutil project create, ensure your workspace has a populated Projects array by using the Manually configure the workspace option in the Workspace Creation Wizard or by running cfsutil workspace configure followed by cfsutil workspace create -i. See Known issues for details.
Refer to the example below. The -p flag must match the Name value of the project you want to generate.
{
"Copyright": "(C) Analog Devices, Inc 2026. Generated by CodeFusion Studio CLI",
"Timestamp": "2026-04-09T10:58:19.956Z",
"Soc": "MAX32690",
"Package": "WLP",
"Board": "AD-APARD32690-SL",
"WorkspaceName": "Apard_ws", // Ensure that the workspace already exists
"Location": "C:\\Users\\<username>\\cfs\\2.3.0",
"WorkspacePluginId": "",
"WorkspacePluginVersion": "",
"Projects": [
{
"Core": "CM4",
"Project": "",
"Path": "",
"Soc": "MAX32690",
"Package": "WLP",
"CoreId": "CM4",
"Id": "corepart_01jrdgezrce69rsqvja125h3v2",
"Name": "Arm Cortex-M4F", // Use as `-p` flag (wrap in quotes if it contains spaces)
"FirmwarePlatform": "MSDK",
"IsPrimary": true,
"IsEnabled": true,
"PluginId": "com.analog.project.msdk.plugin",
"PluginVersion": "1.2.0",
"PlatformConfig": {
"ProjectName": "CM4",
"MsdkBoardName": "APARD",
"Cflags": "-fdump-rtl-expand\n-fdump-rtl-dfinish\n-fdump-ipa-cgraph\n-fstack-usage\n-gdwarf-4\n"
}
}
],
"DataModelVersion": "1.3.893",
"DataModelSchemaVersion": "1.5.0"
}
| Flag | Description |
|---|---|
-p=<name> |
Required. Name of the project to generate. Must match a Name field in the JSON. If the name contains spaces or special characters (for example, ARM Cortex-M4F), wrap it in quotes. |
-s=<path> |
(Optional) Additional directory paths to search for plugins and data models. Can be used multiple times. |
-w=<path> |
Required. Path and filename of the .cfsworkspace file |
Example
cfsutil project create -w /path/to/workspace/Apard_ws/.cfs/.cfsworkspace -p "Arm Cortex-M4F"