Skip to main content

signin

Sign in to 1Password CLI using the 1Password desktop app.

Flags

To turn on the 1Password app integration:

  1. Open the 1Password app.
  2. Navigate to Settings > Security and turn on Touch ID, Windows Hello, or a Linux system authentication option.
  3. 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:

  1. The account specified with the --account flag.
  2. The account specified by the OP_ACCOUNT environment variable.
  3. The account you most recently signed in to with op signin in 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:

Was this page helpful?