Export variable

sfy
sfy
Community Member

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

Comments

  • 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@example.com 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.

    Rick

  • cohix
    cohix
    1Password Alumni

    @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!

  • cohix
    cohix
    1Password Alumni

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

  • sfy
    sfy
    Community Member

    Awesome, thanks! ;)

  • cohix
    cohix
    1Password Alumni

    No problem :)

This discussion has been closed.