Skip to content

Commit 2e095e5

Browse files
committed
cargo-credential-1password: Add configuration instructions
1 parent 9061a61 commit 2e095e5

File tree

1 file changed

+15
-0
lines changed
  • credential/cargo-credential-1password

1 file changed

+15
-0
lines changed

credential/cargo-credential-1password/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,25 @@
22

33
A Cargo [credential provider] for [1password].
44

5+
## Usage
6+
57
`cargo-credential-1password` uses the 1password `op` CLI to store the token. You
68
must install the `op` CLI from the [1password
79
website](https://1password.com/downloads/command-line/).
810

11+
Afterward you need to configure `cargo` to use `cargo-credential-1password` as
12+
the credential provider. You can do this by adding something like the following
13+
to your [cargo config file][credential provider]:
14+
15+
```toml
16+
[registry]
17+
global-credential-providers = ["cargo-credential-1password --account my.1password.com"]
18+
```
19+
20+
Finally, run `cargo login` to save your registry token in 1password.
21+
22+
## CLI Arguments
23+
924
`cargo-credential-1password` supports the following command-line arguments:
1025

1126
* `--account`: The account name to use. For a list of available accounts,

0 commit comments

Comments
 (0)