Problem using CLI Secrets
I would like to be able to use a secret in a command like this:
vpn login --token op://personal/VPN-Token/TOKENS/Token1
But this fails ...
when i try the secret on its own I get a BASH error saying "no such file or directory"
I can access the item using op get item
Taking this information and constructing the secret in this format: op://<vault-name>/<item-name>[/<section-name>]/<field-name>
Using this information from the get item output
Vault-Name = Personal
Item-Name = VPN-Token
Section-Name = TOKENS
Field-Name = Token1
I believe that the secret should be:
op://personal/VPN-Token/TOKENS/Token1
I also thought that I could use one of these, but I get the same error:
op://personal/VPN-Token/Token
op://personal/VPN-Token/Password
what have I missed?
1Password Version: 8.10.3
Extension Version: 2.16.0
OS Version: Linux Mint 20.3
Browser:_ n/a
Comments
-
Hi @sailingbikeruk,
You're missing
op run --
at the beginning of the command. It's documented here: https://developer.1password.com/docs/cli/reference/commands/run/Please let me know if this works, or if you run/ran into anything else!
Amanda0