Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
sourcecube
4 years agoNew Contributor
[57] Account shorthands not being recognised
Just updated from beta 8 to beta 11 via the download on the release page (I hadn't noticed the built-in op update command) and now it isn't recognising my account shorthands when running op account list. Checked the config file and I can see the account shorthands in there okay and when I run op signin it asks me to choose from the 2 accounts defined in the config so not sure what's happened there.
Is there an easy way to debug this before I nuke the config and re-add the accounts?
1Password Version: 1Password 80500115 & CLI 2.0.0-beta.11
Extension Version: Not Provided
OS Version: MacOS 12.1
4 Replies
- sourcecubeNew Contributor
Ah awesome, thanks! I totally missed that page in the documentation... That should solve it perfectly :)
- Former Member
Thanks for the quick answer. You can use the
--accountflag, or the$OP_ACCOUNTenvironment variable, setting them to your sign-in address. Let me know if this section from our documentation helps you: https://developer.1password.com/docs/cli/use-biometric-unlock#sign-in-to-a-specific-account. - sourcecubeNew Contributor
Ah, that would make sense... I hadn't thought about the biometric authentication link. If I'm using the 1Password CLI integration with 1Password 8 for biometric authentication then how do I choose the account I want to use? Currently in a few of my scripts I'm doing
eval $(op signin work)before callingop item getetc... How would I specify which account I want to use with biometrics enabled?It could be that I've missed something in the documentation and just need to update the commands in my script (I was about to update them to use
--otpwhen I discovered this issue). - Former Member
Hey sourcecube, and thank you for trying our beta of the 1Password CLI 2.0.
What I think is happening here is that you have enabledIntegrate with 1Password CLIoption in 1Password 8 (1Password > Preferences > Developers). If this is the case, the accounts that you see when runningop account listare not, in fact, the accounts that you have added in the CLI's config file, but those that you have signed in with in 1Password 8.
From the looks of your question, it seems that you have configured the same 2 accounts in 1Password 8 that you also have configured in the 1Password CLI, is this correct? If so, disabling theIntegrate with 1Password CLIoption should make the shorthands appear back.
When the CLI integration is enabled in the 1Password 8 app,op account listwill not show any shorthands for the accounts, since shorthands are no longer used to uniquely identify accounts, using this integration.
Can you tell us more about your use case? Is it important for you to have shorthands in the output ofop account listwhen the biometric integration is enabled as well?
Thank you once again for your question, and for trying out our beta. We're looking forward to more of your questions and feedback!Horia