Skip to main content

Command Reference

🛠️ Command Reference

CommandDescriptionExample
initCreate new project/workspacecforge init --template lib
buildBuild the projectcforge build --config Release
cleanClean build artifactscforge clean
runRun built executablecforge run -- arg1 arg2
testExecute tests (CTest integration)cforge test --filter MyTest
installInstall project binariescforge install --prefix /usr/local
depsManage dependenciescforge deps --update
scriptExecute custom scriptscforge script format
startupManage workspace startup projectcforge startup my_app
ideGenerate IDE project filescforge ide vscode
packagePackage project binariescforge package --type zip
listList variants, configs, or targetscforge list variants

Command Options

All commands accept the following global options:

  • --verbosity: Set verbosity level (quiet, normal, verbose)

Many commands support these options:

  • --config: Build/run with specific configuration (e.g., Debug, Release)
  • --variant: Use a specific build variant
  • --target: Specify a cross-compilation target