1password
Master the 1Password CLI with this comprehensive cheat sheet. Learn commands to manage accounts, list and create items, and organize vaults efficiently.
1Password CLI Commands
This cheat sheet provides essential commands for managing your 1Password data directly from the command line. The 1Password CLI (op
) allows for efficient interaction with your vaults, items, and accounts, making it a powerful tool for developers and power users.
Account Management
Manage your 1Password sign-in sessions and view account details.
Command | Description |
---|---|
op signin <account> |
Sign in to a specific 1Password account. |
op signout |
Sign out of the currently active 1Password account. |
op list accounts |
List all signed-in 1Password accounts. |
op list accounts --all |
List all accounts, including those that are archived. |
op list accounts --vault <vault> |
List accounts associated with a specific vault. |
Item Management
Organize, create, and retrieve your password entries and other sensitive information.
Command | Description |
---|---|
op list items |
List all items across all accessible vaults. |
op list items --vault <vault> |
List items within a specified vault. |
op list items --tags <tag> |
Filter and list items that have a specific tag applied. |
op list items --category <category> |
Retrieve items belonging to a particular category (e.g., 'password', 'credit card'). |
op list items --favorite |
Display only your favorite items. |
op create item <type> |
Initiate the creation of a new item of a specified type. |
op delete item <item> |
Remove a specific item from your vault. |
op edit item <item> |
Modify the details of an existing item. |
op get item <item> |
Retrieve the full details of a specific item. |
op get item <item> --fields <field_1>,<field_2> |
Fetch only specified fields (e.g., 'username', 'password') for an item. |
Vault Management
Create, delete, and list your 1Password vaults.
Command | Description |
---|---|
op create vault <vault> |
Create a new vault with the specified name. |
op delete vault <vault> |
Permanently delete a vault and all its contents. |
op list vaults |
List all active vaults available to your account. |
op list vaults --all |
List all vaults, including those that have been archived. |
For more advanced usage and detailed explanations, refer to the official 1Password CLI documentation.