Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
Anonymous
4 years agoReuse a session token from environment, not from command line
The op signin command has an immensely useful functionality:
You can use the `--session` option with the `signin` command to reuse an
active token or to test whether a session has expired. ...
1P_Simon
1Password Team
4 years agozcutlip is right.
All op signin does is print this:
bash
export OP_SESSION_<account shorthand>=<session token>
When evaluated, it stores that environment variable for you for next invocations of 1Password CLI commands.
You can find the shorthand of your account using op signin --list.
PS: You're also right about there being a Windows equivalent, it's Invoke-Expression $(op signin)