Skip to content

Supported Commands

scd provides commands for building, running, testing, and packaging SPM projects across multiple platforms. All commands accept Global Options for configuring the tool environment, such as paths to compilers and SDKs. Commands that compile code additionally accept SPM Build Options for controlling the build configuration, compiler flags, and linked libraries.

CommandDescription
buildBuild an SPM project for a target platform
runRun an SPM project on a device or simulator
testRun SPM project tests
archiveArchive a built SPM project
cleanClean build artifacts
toolchainManage Swift toolchain installations