cargo/credential/cargo-credential-1password
Ed Page c6c1df4758 chore: Make N-2 the default MSRV
We likely don't want to release these packages every 6 months just for
an MSRV bump.
By moving the MSRV out of the package, `cargo bump-check` will ignore
the MSRV bump.

Inspired by #13266
2024-01-18 15:30:41 -06:00
..
src Auto merge of #12985 - Turbo87:fix-1password-account-usage, r=ehuss 2023-11-16 20:22:53 +00:00
Cargo.toml chore: Make N-2 the default MSRV 2024-01-18 15:30:41 -06:00
LICENSE-APACHE credential: include license files in all published crates 2023-11-10 17:12:40 +01:00
LICENSE-MIT credential: include license files in all published crates 2023-11-10 17:12:40 +01:00
README.md cargo-credential-1password: Add configuration instructions 2023-11-16 18:00:49 +01:00

cargo-credential-1password

A Cargo credential provider for 1password.

Usage

cargo-credential-1password uses the 1password op CLI to store the token. You must install the op CLI from the 1password website.

Afterward you need to configure cargo to use cargo-credential-1password 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-1password --account my.1password.com"]

Finally, run cargo login to save your registry token in 1password.

CLI Arguments

cargo-credential-1password supports the following command-line arguments:

  • --account: The account name to use. For a list of available accounts, run op account list.
  • --vault: The vault name to use. For a list of available vaults, run op vault list.