Skip to main content

account

Subcommands

account add

Add a new 1Password account to 1Password CLI manually with your account password and Secret Key, instead of signing in using your 1Password app.

Flags

To sign in to manually-added accounts:

Learn more about signing in manually.

When you sign in manually, 1Password CLI creates a session token and sets the OP_SESSION environment variable to it. Session tokens expire after 30 minutes of inactivity, after which you’ll need to sign in again. If you add multiple 1Password accounts, 1Password CLI determines which to use in this order:

  1. An account specified with the --account flag.
  2. An account specified with the OP_ACCOUNT environment variable.
  3. The account most recently signed in to with op signin in the current terminal window.

Examples

Add an account using flags to specify account details:

Add an account and immediately sign in to it:

Sign in to a specific account:

account forget

Remove a 1Password account from this device.

Flags

account get

Get details about your account.

account list

List users and accounts set up on this device.

Was this page helpful?