Connect to a Specific Swift Repository

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

To connect directly to a specific Swift repository in Aritfactory and bypass any project-specific or global configurations, run this command:

swift package-registry login https://[JFrogPlatformURL]/artifactory/api/swift/<REPO_NAME> \
    --username <USERNAME> \
    --password <AUTH>

Where:

  • [JFrogPlatformURL]: The URL of your JPD

  • <REPO_NAME>: The name of the target Artifactory repository

  • <USERNAME>: Your Artifactory username

  • <AUTH>: Your Artifactory identity token or password. For more information about using a password securely, see Centrally Secure PasswordsCentrally Secure Passwords

For example:

swift package-registry login https://company.jfrog.io/artifactory/api/swift/swift-virtual \
    --username jeffry \
    --password B7r9P2tLqGvXzWcM5jN3yHkF6sD8aA1vS4uK0eI2oZp7xTqWcE5rVbN1mKjHgF