Sources/PackageManagerDocs/Documentation.docc/SDK/SDKInstall.md
@Metadata { @PageImage(purpose: icon, source: command-icon) @Available("Swift", introduced: "6.1") }
Installs a given Swift SDK bundle to a location discoverable by SwiftPM.
If the artifact bundle is at a remote location, it's downloaded to local filesystem first.
sdk install [--package-path=<package-path>]
[--cache-path=<cache-path>] [--config-path=<config-path>]
[--security-path=<security-path>]
[--scratch-path=<scratch-path>]
[--swift-sdks-path=<swift-sdks-path>]
[--toolset=<toolset>...]
[--pkg-config-path=<pkg-config-path>...]
<bundle-path-or-url> [--checksum=<checksum>]
[--color-diagnostics] [--no-color-diagnostics] [--version]
[--help]
Specify the package path to operate on (default current directory). This changes the working directory before any other operation.
Specify the shared cache directory path.
Specify the shared configuration directory path.
Specify the shared security directory path.
Specify a custom scratch directory path. (default .build)
Path to the directory containing installed Swift SDKs.
Specify a toolset JSON file to use when building for the target platform. Use the option multiple times to specify more than one toolset. Toolsets will be merged in the order they're specified into a single final toolset for the current build.
Specify alternative path to search for pkg-config .pc files. Use the option multiple times to
specify more than one path.
A local filesystem path or a URL of a Swift SDK bundle to install.
The checksum of the bundle generated with swift package compute-checksum.
Enables or disables color diagnostics when printing to a TTY. By default, color diagnostics are enabled when connected to a TTY and disabled otherwise.
Show the version.
Show help information.