CLI edit logins function?
It would be very helpful to have the ability to simply edit a login item. In order to achieve changing the password of a login on the CLI you must first get the info from the item, parse it, and create a new login item, extracting the title and url from the JSON to pass as named arguments to the create command. And then delete the old one.
Also having trouble creating the JSON to match existing login item formatting for multi URLs like: item["overview"]["URLs"] = [ {"l": name1, "u": url1}, {"l": name2, "u": url2, {"l": name3, "u": url3}, } ] because our login items have multiple URLs to use them at, can --url=url be multiple urls? Docs are unclear.
The use case I am looking for is a way to rotate passwords for shared logins in our own application, which we can do in a script with the exception of updating the shared logins stored in our 1password vaults. Would love a feature something like op edit item <item> --password='supersecurepassword123'
.
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Sync Type: Not Provided
Comments
-
Same here ... editing items is sorely missing, in particular for the rotating passwords use case.
0 -
Thanks for writing in! We're aware that item editing is a highly sought after feature, and we're currently investigating the best way to implement it. We are currently not satisfied with the way that items are handled in the CLI (messy, unintuitive), and we're hoping to overhaul it entirely which will make item editing possible (and actually nice to use)
Keep an eye out for future updates!
0 -
I came here looking for exactly this feature, for a similar use case.
0 -
Any good news in 2020? Thanks, team!
0 -
As of v0.10.0, the 1Password command line tool has a
edit item
command with which existing fields of an item can be updated. See https://support.1password.com/command-line-reference/#edit-item for more information!0