SSwift Registry.
Get started

Continuous integration

Resolve packages from the registry in CI — faster builds and no Git clones.

  1. Register the registry

    Add a step that points SwiftPM at the registry before resolving.

    bash
    swift package-registry set https://registry.swiftregistry.io
  2. Authenticate for private packages

    Read a registry token from a CI secret through stdin. It is stored in netrc (0600) and never printed — public packages skip this step.

    bash
    printf '%s' "$SWIFTREGISTRY_TOKEN" | swiftregistry login --token-stdin
  3. Resolve

    Resolve as usual. SwiftPM downloads cached, checksum-verified artifacts from the registry instead of cloning Git repositories.

    bash
    swift package resolve

Pass the token through stdin (or SWIFTREGISTRY_TOKEN), never as a command argument, so it never appears in CI logs or the process list.