Step 1: Install 1Password CLI
Requirements
Requirements
- Mac
- Windows
- Linux
- 1Password subscription
- 1Password for Mac*
- macOS Big Sur 11.0.0 or later
- Mac
- Windows
- Linux
- homebrew
- Manual
-
To install 1Password CLI with homebrew:
-
Check that 1Password CLI installed successfully:
Step 2: Turn on the 1Password desktop app integration
- Mac
- Windows
- Linux
- Open and unlock the 1Password app.
- Select your account or collection at the top of the sidebar.
- Navigate to Settings > Developer.
- Select Integrate with 1Password CLI.
- If you want to authenticate 1Password CLI with your fingerprint, turn on Touch ID in the app.
Step 3: Enter any command to sign in
If you have multiple accounts
If you’ve added multiple 1Password accounts to your desktop app, you can useop signin to select an account to sign in to with 1Password CLI. Use the arrow keys to choose from the list of all accounts added to your 1Password app.
Learn more about using multiple accounts with 1Password CLI.
Next steps
- Get started with basic 1Password CLI commands.
- Set up 1Password Shell Plugins to handle authentication for your other command-line tools.
- Learn how to securely load secrets from your 1Password account without putting any plaintext secrets in code.