Export variable

I have trouble setting the environment variable because I have a "-" in my account name and that can not be part of env vars as I understand: "not a valid identifier"

1Password Version: 0.0.5
Extension Version: Not Provided
OS Version: OSX 10.12.6
Sync Type: Not Provided


  • rickfillionrickfillion Junior Member

    Team Member

    Hi @sfy,

    Thanks for reporting this. We'll try to get a fix in place to work around this problem.

    In the mean time, I think this should get you up and running:

    op signin https://blah.1password.com [email protected] A3-XXXXX.....

    Then once you've signed in that way, edit ~/.op/config and change the "shorthand" of your account as I assume that's where the - is living. Once that's done:

    eval $(op signin shorthand)

    Let us know how that works for you.


  • cohixcohix

    Team Member

    @sfy @rickfillion You can even use the new --shorthand flag on the signin command, for example:

    op signin agilebits-inc.1password.com ... doesn't work, so...

    op signin agilebits-inc.1password.com ... --shorthand=agilebits should do the trick!

    Hope that helps!

  • cohixcohix

    Team Member

    @sfy We've pushed v0.1.1 with a fix for this issue :)https://app-updates.agilebits.com/product_history/CLI

  • Awesome, thanks! ;)

  • cohixcohix

    Team Member

    No problem :)

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file