File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
credential/cargo-credential-1password Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
A Cargo [ credential provider] for [ 1password] .
4
4
5
+ ## Usage
6
+
5
7
` cargo-credential-1password ` uses the 1password ` op ` CLI to store the token. You
6
8
must install the ` op ` CLI from the [ 1password
7
9
website] ( https://1password.com/downloads/command-line/ ) .
8
10
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
+
9
24
` cargo-credential-1password ` supports the following command-line arguments:
10
25
11
26
* ` --account ` : The account name to use. For a list of available accounts,
You can’t perform that action at this time.
0 commit comments