signin
Sign in to 1Password CLI using the 1Password desktop app.
Flags
To turn on the 1Password app integration:
- Open the 1Password app.
- Navigate to Settings > Security and turn on Touch ID, Windows Hello, or a Linux system authentication option.
- Navigate to Developer > Settings and select Integrate with 1Password CLI.
Learn more about the app integration.
If you add multiple 1Password accounts to the 1Password app, 1Password CLI determines which to use in this order:
- The account specified with the
--accountflag. - The account specified by the
OP_ACCOUNTenvironment variable. - The account you most recently signed in to with
op signinin any terminal window.
op signin is idempotent. It only prompts for authentication if you
aren't already authenticated.
Examples
Sign in and set the environment variable in one step: