OS Manuals

/usr/bin/swift-package-registry

Swift is a high-performance system programming language. It has a clean and modern syntax, offers seamless access to existing C and Objective-C code and frameworks, and is memory-safe by default.

From swift-bootstrap-6-0-1 6.0.1-r6 (enterprise-packages), captured 2026-11-08 by running swift-package-registry --help (exit 0). permalink

OVERVIEW: Interact with package registry and manage related configuration

SEE ALSO: swift package

USAGE: swift package-registry <options> <subcommand>

OPTIONS:
  --package-path <package-path>
                          Specify the package path to operate on (default
                          current directory). This changes the working
                          directory before any other operation
  --cache-path <cache-path>
                          Specify the shared cache directory path
  --config-path <config-path>
                          Specify the shared configuration directory path
  --security-path <security-path>
                          Specify the shared security directory path
  --scratch-path <scratch-path>
                          Specify a custom scratch directory path (default
                          .build)
  --swift-sdks-path <swift-sdks-path>
                          Path to the directory containing installed Swift SDKs
  --pkg-config-path <pkg-config-path>
                          Specify alternative path to search for pkg-config
                          `.pc` files. Use the option multiple times to
                          specify more than one path.
  --enable-dependency-cache/--disable-dependency-cache
                          Use a shared cache when fetching dependencies
                          (default: --enable-dependency-cache)
  --enable-build-manifest-caching/--disable-build-manifest-caching
                          (default: --enable-build-manifest-caching)
  --manifest-cache <manifest-cache>
                          Caching mode of Package.swift manifests (shared:
                          shared cache, local: package's build directory, none:
                          disabled (default: shared)
  -v, --verbose           Increase verbosity to include informational output
  --very-verbose, --vv    Increase verbosity to include debug output
  -q, --quiet             Decrease verbosity to only include error output.
  --disable-sandbox       Disable using the sandbox when executing subprocesses
  --netrc                 Use netrc file even in cases where other credential
                          stores are preferred
  --enable-netrc/--disable-netrc
                          Load credentials from a netrc file (default:
                          --enable-netrc)
  --netrc-file <netrc-file>
                          Specify the netrc file path
  --resolver-fingerprint-checking <resolver-fingerprint-checking>
                          (default: strict)
  --resolver-signing-entity-checking <resolver-signing-entity-checking>
                          (default: warn)
  --enable-signature-validation/--disable-signature-validation
                          Validate signature of a signed package release
                          downloaded from registry (default:
                          --enable-signature-validation)
  --enable-prefetching/--disable-prefetching
                          (default: --enable-prefetching)
  --force-resolved-versions, --disable-automatic-resolution, --only-use-versions-from-resolved-file
                          Only use versions from the Package.resolved file and
                          fail resolution if it is out-of-date
  --skip-update           Skip updating dependencies from their remote during a
                          resolution
  --disable-scm-to-registry-transformation
                          disable source control to registry transformation
                          (default: --disable-scm-to-registry-transformation)
  --use-registry-identity-for-scm
                          look up source control dependencies in the registry
                          and use their registry identity when possible to help
                          deduplicate across the two origins
  --replace-scm-with-registry
                          look up source control dependencies in the registry
                          and use the registry to retrieve them instead of
                          source control when possible
  --default-registry-url <default-registry-url>
                          Default registry URL to use, instead of the
                          registries.json configuration file
  -c, --configuration <configuration>
                          Build with configuration
  -Xcc <Xcc>              Pass flag through to all C compiler invocations
  -Xswiftc <Xswiftc>      Pass flag through to all Swift compiler invocations
  -Xlinker <Xlinker>      Pass flag through to all linker invocations
  -Xcxx <Xcxx>            Pass flag through to all C++ compiler invocations
  --triple <triple>
  --sdk <sdk>
  --toolchain <toolchain>
  --swift-sdk <swift-sdk> Filter for selecting a specific Swift SDK to build
                          with
  --sanitize <sanitize>   Turn on runtime checks for erroneous behavior,
                          possible values: address, thread, undefined, scudo
  --auto-index-store/--enable-index-store/--disable-index-store
                          Enable or disable indexing-while-building feature
                          (default: --auto-index-store)
  --enable-parseable-module-interfaces
  -j, --jobs <jobs>       The number of jobs to spawn in parallel during the
                          build process
  --use-integrated-swift-driver
  --explicit-target-dependency-import-check <explicit-target-dependency-import-check>
                          (default: none)
  --experimental-explicit-module-build
  --build-system <build-system>
                          (default: native)
  -debug-info-format <debug-info-format>
                          (default: dwarf)
  --enable-dead-strip/--disable-dead-strip
                          Disable/enable dead code stripping by the linker
                          (default: --enable-dead-strip)
  --disable-local-rpath   Disable adding $ORIGIN/@loader_path to the rpath by
                          default
  --version               Show the version.
  -h, -help, --help       Show help information.

SUBCOMMANDS:
  set                     Set a custom registry
  unset                   Remove a configured registry
  login                   Log in to a registry
  logout                  Log out from a registry
  publish                 Publish to a registry

  See 'swift help package-registry <subcommand>' for detailed help.
Options (41)
OptionDescriptionSource
--package-path package-pathSpecify the package path to operate on (default current directory).help
--cache-path cache-pathSpecify the shared cache directory pathhelp
--config-path config-pathSpecify the shared configuration directory pathhelp
--security-path security-pathSpecify the shared security directory pathhelp
--scratch-path scratch-pathSpecify a custom scratch directory path (default .build)help
--swift-sdks-path swift-sdks-pathPath to the directory containing installed Swift SDKshelp
--pkg-config-path pkg-config-pathSpecify alternative path to search for pkg-config `.pc` files.help
--manifest-cache manifest-cacheCaching mode of Package.swift manifests (shared: shared cache, local: package's build directory, none: disabled (default: shared)help
-v, --verboseIncrease verbosity to include informational outputhelp
--very-verbose, --vvIncrease verbosity to include debug outputhelp
-q, --quietDecrease verbosity to only include error output.help
--disable-sandboxDisable using the sandbox when executing subprocesseshelp
--netrcUse netrc file even in cases where other credential stores are preferredhelp
--netrc-file netrc-fileSpecify the netrc file pathhelp
--resolver-fingerprint-checking resolver-fingerprint-checking(default: strict)help
--resolver-signing-entity-checking resolver-signing-entity-checking(default: warn)help
--force-resolved-versions, --disable-automatic-resolution, --only-use-versions-from-resolved-fileOnly use versions from the Package.resolved file and fail resolution if it is out-of-datehelp
--skip-updateSkip updating dependencies from their remote during a resolutionhelp
--disable-scm-to-registry-transformationdisable source control to registry transformation (default: --disable-scm-to-registry-transformation)help
--use-registry-identity-for-scmlook up source control dependencies in the registry and use their registry identity when possible to help deduplicate across the two originshelp
--replace-scm-with-registrylook up source control dependencies in the registry and use the registry to retrieve them instead of source control when possiblehelp
--default-registry-url default-registry-urlDefault registry URL to use, instead of the registries.json configuration filehelp
-c, --configuration configurationBuild with configurationhelp
-Xcc XccPass flag through to all C compiler invocationshelp
-Xswiftc XswiftcPass flag through to all Swift compiler invocationshelp
-Xlinker XlinkerPass flag through to all linker invocationshelp
-Xcxx XcxxPass flag through to all C++ compiler invocationshelp
--triple triplehelp
--sdk sdkhelp
--toolchain toolchainhelp
--sanitize sanitizeTurn on runtime checks for erroneous behavior, possible values: address, thread, undefined, scudohelp
--enable-parseable-module-interfaceshelp
-j, --jobs jobsThe number of jobs to spawn in parallel during the build processhelp
--use-integrated-swift-driverhelp
--explicit-target-dependency-import-check explicit-target-dependency-import-check(default: none)help
--experimental-explicit-module-buildhelp
--build-system build-system(default: native)help
-debug-info-format debug-info-format(default: dwarf)help
--disable-local-rpathDisable adding $ORIGIN/@loader_path to the rpath by defaulthelp
--versionShow the version.help
-h, -help, --helpShow help information.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.