skip to content
ccdocs
Commandscc project

cc project module

Update the module list for your active environment. Your selection is saved to the environment and written to .vscode/settings.json as cc.modules (and cc.initMode for the launch mode), which launch.json picks up via ${config:cc.modules} and ${config:cc.initMode}.

Usage

cc project module [names...] [flags]

Arguments

ArgumentDescription
namesModule names to set. Omit for an interactive checkbox picker.

Flags

FlagDescription
-r, --replaceReplace the full module list instead of adding to it
-i, --installSet launch mode to install (cc.initMode=-i)
-u, --updateSet launch mode to update (cc.initMode=-u, default)
-l, --listList the active modules for the current environment

-i/-u may be combined with module names or the picker. Passed alone (no names, no --replace), they just flip the launch mode for the already-active modules. Omitting both leaves the current cc.initMode unchanged on an add.

Examples

cc project module               # add modules, keep current launch mode
cc project module -l            # list active modules
cc project module -r            # replace the full module list (picker)
cc project module -i            # set launch mode to -i for the active modules
cc project module -u sale       # add 'sale', set launch mode to -u
cc project module -i purchase   # add 'purchase', set launch mode to -i

After saving, launch.json picks up the new module list and init mode automatically — no manual edit needed.

On this page