It’s Cybersecurity Awareness Month! Join our interactive training session, or learn about security and AI from 1Password experts.
Forum Discussion
daniels
3 months agoNew Contributor
Reference for Private vault copied from GUI doesn't work in CLI
I use the `op` cli with a personal/family account. When I right click a password/key in the GUI in my Private account and selects "Copy Secret Reference", the reference starts with "op://Private". If...
daniels
3 months agoNew Contributor
Thanks for the reply, Phil!
There is only one account. It was originally a personal account but I upgraded it to a family account a few years ago.
I’ve now tried `op signin` and the problem persists after this.
Which side (GUI/CLI) is it that handles this wrong? I.e. what is the actual name of my vault, and how can I tell? (I guess it may be a problem of two truths.)
Kind regards
/Daniel
1P_Phil
Moderator
2 months agoHi daniels ,
Sorry for the delay, this one fell through the cracks.
I think the best thing to do is in the CLI to grab the VaultID and make sure that the item you are trying to access is contained within that vault.
// Pick the account you want to use
op signin
// This will show your vault and vault IDs, you should see the Private one
op vault list
It will show a list of unique vault ID's followed by the human readable name like this
Let from here you can use the unique Vault ID in your call
op item get [unique item id] --vault=[unique vault id]
and you should be able to piece the correct info together to do create the op URI.
I hope this helps.
Phil