Set account shorthand with 1password App

Options
MaRoGa
MaRoGa
Community Member
edited August 2023 in CLI

Hello, have a 1password account with a dash (-) in the name like a-b.1password.eu . When I added the account in the past with the cli a shorthand and of a_b was created (underscore instead of dash). With the 1password App cli integration the shorthand is not created anymore. Is there a config option to set a account shorhand that I missed?
I cannot set/export a environment variable with a dash (-) in the name like OP_SESSION_a-b. With the shorthand it was OP_SESSION_a_b which worked.

$ eval $(op signin)
No accounts configured for use with 1Password CLI.

You can either:
 - Connect 1Password CLI with the 1Password app to use the accounts you've added to the app and sign in using the 1Password app. Learn more: https://developer.1password.com/docs/cli/get-started/#sign-in for details.
 - Add an account manually with 'op account add' and sign in by entering your password on the command line. See 'op account add --help' for details.
 - Use 1Password CLI with a Connect instance by setting the 'OP_CONNECT_HOST' and 'OP_CONNECT_TOKEN' environment variables to your Connect host and token, respectively. Learn more: https://developer.1password.com/docs/connect
 - Authenticate using a 1Password service account by setting the 'OP_SERVICE_ACCOUNT_TOKEN' environment variable to your service account token. Learn more: https://developer.1password.com/docs/service-accounts/

Do you want to add an account manually now? [Y/n] y
Enter your sign-in address (example.1password.com): a-b.1password.eu
Enter the email address for your account on a-b.1password.eu: x@x.x
Enter the Secret Key for x@x.x on a-b.1password.eu: A3-...
Enter the password for x@x.x at a-b.1password.eu: 
$ op account list
SHORTHAND      URL                                 EMAIL                      USER ID
a-b            https://a-b.1password.eu            x@x.x                      XXXXX

App with Connect with 1Password CLI enabled

$ op account list
URL                         EMAIL                      USER ID
https://a-b.1password.eu    x@x.x                      XXXXX

1Password Version: 8.10.9
Extension Version: Not Provided
OS Version: linux ubuntu 22.04
Browser: Not Provided

Comments

  • MaRoGa
    MaRoGa
    Community Member
    Options

    I made a mistake. It is not a-b but a_b with the cli:

    $ op account list
    SHORTHAND      URL                                 EMAIL                      USER ID
    a_b            https://a-b.1password.eu            x@x.x                      XXXXX
    
This discussion has been closed.