Upload the local package to the configured registry.

Section: Publish to crates.io

Publish the crate

bash
bash
cargo publish
Explanation

The default registry is crates.io unless another registry is specified.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Publish to crates.io
Save a crates.io API token
Authenticate Cargo for publishing.
OpenIn sheetbashsame section
Manage crate owners
Add a user or team as a crate owner.
OpenIn sheetbashsame section
Search crates.io from the CLI
Find crate names and summaries.
OpenIn sheetbashsame section
Yank a published version
Prevent new dependency resolution to a release.
OpenIn sheetbashsame section
Validate publish without uploading
Run all publish checks without actually publishing.
OpenIn sheetbash2 tag match
Create a package tarball
Build the package as it would be published.
OpenIn sheetbash1 tag match