1Password CLI 2.1.0 is now available.
There have been 4 updates since you last updated.
2.0.0 (build #2000019)
This is the first release of the next generation of 1Password CLI! 🚀
It takes the usability and accessibility that you're used to from 1Password
to the terminal. Among others, it allows you to unlock the CLI using biometrics,
and has a new and improved command structure and output.
In addition, we also introduced some brand new functionality to 1Password CLI.
Some of the features we'd like to highlight are Psst! support
and the ability to securely load secrets into scripts, applications, and other workloads.
We would like to shout out our amazing early access community for raising bug
reports, suggesting improvements, and helping us shape the 1Password CLI along
every iteration of the beta into the product we are now releasing! 🎉
Check out all the improvements and new features below and learn more in our new
developer documentation!
New
- 1Password CLI 2 now uses a new command schema, together with a more intuitive JSON output format.
- Biometric Unlock can now be used instead of typing your account password on the command line. {1943}
- Loading secrets into configuration files, environment variables and key-files is now possible with the
inject
, run
and read
commands, respectively. {1577}
- The
item get
, inject
, run
and read
commands now also support using a Connect server. Use it by setting OP_CONNECT_HOST
and OP_CONNECT_TOKEN
environment variables. {1580}
- Now you can securely share items with anyone - even if the recipient doesn't use 1Password - using op item share. {1650}
- 1Password CLI can now be installed via
apt
, dnf
and apk
.
- All commands now format their output in a new human friendly format. Use the
--format=json
flag or OP_FORMAT=json
environment variable to output as JSON. {1487, 1564}
Improvements
- Vault access permissions can now be granted and revoked granularly when managing users' and groups' access to vaults by specifying
--permissions
. {1517}
- Listing groups or users that have access to a vault now displays the group's or user's permissions. {1608}
- Granting or revoking vault permissions prints the resulting permissions. {1739}
- Setting whether a vault is safe for travel can be achieved with the
--travel-mode
flag, while editing vaults. {1505}
- Deleting multiple vaults at once is now possible. {1505}
- When getting items, you can now retrieve fields by field type. {1855}
- Creating and editing items now have a
dry-run
feature, which prints the resulting items without saving them. {1515}
- When editing items, you can now change the autofill url, tags and title. {1506}
- Creating items can now be done using templates similar in format to the items retrieved with 1Password CLI. The old format is no longer supported. Support for passing in base64 encoded templates as an argument has been removed. {1578}
- Creating and editing items now offer support for setting, updating and deleting fields through command line arguments. {1515}
- Saving item templates to a file is now possible. {1636}
- Curly brackets are no longer shown around vault IDs when listing items. {1632}
- Selecting items by tags now retrieves nested tags. {1529}
- Setting the
--tags
flag to an empty value while editing items or documents will now remove all tags. {1558}
- Tags specified multiple times on commands to create or edit items or documents are now applied only once. {1598}
- Adding new accounts is now done using a standalone command, op account add. Configuring new accounts via
op signin
is no longer supported. {1898}
-
op signin
accepts the --account
flag to select which account to sign in to. The command no longer supports arguments. {1898}
-
$OP_ACCOUNT
and --account
flag now also accept a user UUID or an account UUID. {1900}
- The
--list
flag of op signin
has been removed, and the functionality has been moved to op account list. {1881}
- Listing accounts no longer returns
DSECRET
and SECRET_KEY
in its output. {1748}
- Forgetting all authenticated accounts at once is now possible. {1504}
- Confirming multiple users of an account at once is now possible. {1502}
- Deleting multiple users from an account at once is now possible. {1502}
- Editing multiple users within an account at once is now possible. {1502}
- Reactivating multiple users within an account at once is now possible. {1502}
- Suspending multiple users within an account at once is now possible. {1502}
- You can now output debug logs using the binary flag
--debug
or the environment variable OP_DEBUG
. Currently debug logs exist for biometric unlock only. {1910}
-
--iso-timestamps
can now also be set using the $OP_ISO_TIMESTAMPS
environment variable. {1926}
- The
--include-archive
flag can now also be specified setting the OP_INCLUDE_ARCHIVE
environment variable to true. {1616}
- The formatting and phrasing of error messages has been improved. {1871}
- The help text across 1Password CLI commands is now clearer, more elaborate and better formatted. {1736}
- 1Password CLI now has completion support for fish shell. {2056}
-
list
and delete
commands can now be used with their aliases: ls
, remove
and rm
. {1571}
- Listing events is no longer possible. Please continue using 1Password CLI version 1 to read audit events. Before support for version 1 ends, a more sophisticated solution for audit events will be available. {1710}
- armv7 and arm64 Docker images of 1Password CLI are now being built and published on DockerHub. {1771}
- When granting a user access to a group, passing the role via the
--role
flag is now case insensitive. {1752}
- Editing groups or vaults now supports clearing the description with
--description=""
. {1544}
Fixed