Publish Crates

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

Once your Cargo client is connected to Artifactory, you can publish crates natively using the Cargo command line. You can also publish crates using the Artifactory web UI or using the Artifactory API.Deploying Artifacts

To publish a crate:

Run this command:

cargo publish --registry artifactory

Tip

You can override the configured credentials by adding the --token flag in the format --token "<AUTH>", where <AUTH> is your Artifactory identity token or Base64-encoded username:password.

For example:

cargo publish --registry artifactory --token "x7rT4hL9bA2vW1pZ5sE8dR6gK3jCqV0nU7fM9yB4iO1uF2oP5tS8eG7wZ"