Subcommands
- account add: Add an account to sign in to for the first time
- account forget: Remove a 1Password account from this device
- account get: Get details about your account
- account list: List users and accounts set up on this device
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
- Bash, Zsh, sh, fish
- PowerShell
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:
- An account specified with the
--accountflag. - An account specified with the
OP_ACCOUNTenvironment variable. - The account most recently signed in to with
op signinin the current terminal window.
Examples
Add an account using flags to specify account details:- Bash, Zsh, sh, fish
- PowerShell
- Bash, Zsh, sh, fish
- PowerShell