1Password CLI

by Simon
Updated to 2.23.0 on
Developer tools
Download 1Password CLI

1Password CLI 2.23 is now available. 🎉

This release introduces a new way of editing items, brings fixes to the item creation and editing commands, and improves error messages.


What's new

1Password for Developers 2.22.0
  • You can now authenticate the following CLIs using Touch ID and other unlock options with 1Password Shell Plugins. Thanks to everyone who contributed!
  • We’ve updated help text for many commands to use simpler language. #3676, #3768
  • op read help text now includes an example of how to use the ssh-format query parameter to get an SSH key’s private key. #3795
  • op run help text now includes an explanation of how to use service accounts with op run. #3804
  • We’ve updated error messages for op item create to be more clear. #3766
  • We’ve updated error messages when provisioning actions fail to be more clear. #3263
  • op whoami for service accounts now authenticates automatically instead of asking to authenticate the service account token. #3744
  • The PostgreSQL shell plugin now supports pgcli as an alternative to psql. (Thanks, @szymon!) shell-plugins#384
  • The Cachix shell plugin now checks for the ~/.config/cachix/cachix.dhall file and attempts to import an auth token using the specified file. (Thanks @dethancosta!) shell-plugins#373
  • The Sentry CLI shell plugin now skips authentication when you use the --auth-token and --api-key flags. (Thanks @roy9495!). shell-plugins#370
  • The Homebrew shell plugin now provides authentication for the upgrade, update, install and reinstall commands. (Thanks @cullenmcdermott!). shell-plugins#369
  • The Sentry shell plugin now supports SENTRY_PROJECT & SENTRY_URL. (Thanks @JoeKarow!) shell-plugins#363
  • The PostgreSQL plugin now also supports the pg_dump and pg_restore CLI utilities. (Thanks @JoeKarow!) shell-plugins#353
  • The OpenAI shell plugin now has updated documentation and management URLs. (Thanks @arunsathiya!) shell-plugins#351
  • When generating the shell plugin template, you now only need to set the last word of the credential name as the default 1Password field name if the credential name is longer than seven characters. (Thanks @arunsathiya!) shell-plugins#263
  • The ngrok shell plugin now specifies the correct credential length. shell-plugins#250
  • The ngrok shell plugin now uses environment variables in ngrok version 3.2.1 and later. (Thanks @arunsathiya!) shell-plugins#222
  • We’ve restored deprecated JSON keys for op whoami output for service account for backwards-compatibility. #3754
  • op whoami now throws the appropriate error if an invalid service account token is set. #3744
  • When you search for an item by title and vault and the title is 26 characters long, 1Password CLI now returns the item. #3751
  • op vault list now only returns vaults you have read access to. #3688
1Password for Developers 2.23.0
  • op item edit now accepts JSON input via the --template flag. #1849
  • op item edit now supports piping items as JSON via stdin. #1849
  • If you’re not an owner and try to add the Team Members group to a vault when the limitedGroupVaultAccess feature flag is turned on, 1Password CLI now returns a helpful error. #3830
  • When 1Password CLI can’t connect to the 1Password desktop app, the error message now suggests restarting the app. #3835
  • We’ve improved the error message when op item edit finds duplicate fields to more clearly format field labels that aren’t in a section. #3849
  • Creating a vault with --icon=name now works again, using the updated icons. #3833
  • The error message for op item edit when duplicated fields are found by label no longer prints the field’s value. #3848