| Crates.io | cargo-credential-bitwarden |
| lib.rs | cargo-credential-bitwarden |
| version | 0.1.0 |
| created_at | 2024-05-19 20:19:35.654058+00 |
| updated_at | 2024-05-19 20:19:35.654058+00 |
| description | A Cargo credential process that stores tokens in a Bitwarden vault. |
| homepage | https://github.com/Jantje19/cargo-credential-bitwarden#readme |
| repository | https://github.com/Jantje19/cargo-credential-bitwarden |
| max_upload_size | |
| id | 1245194 |
| size | 36,452 |
A Cargo credential provider for Bitwarden.
This crate borrows heavily from the cargo-credential-1password crate.
cargo-credential-bitwarden uses the Bitwarden bw CLI to store the token. You
must install the bw CLI from the Bitwarden
website.
Afterward you need to configure cargo to use cargo-credential-bitwarden as
the credential provider. You can do this by adding something like the following
to your cargo config file:
[registry]
global-credential-providers = ["cargo-credential-bitwarden --sync"]
Finally, run cargo login to save your registry token in Bitwarden.
cargo-credential-bitwarden supports the following command-line arguments:
--email: The email address used to login.--sync: Automatically sync the local vault before getting the credential and automatically sync when the credential gets updated.