CLI edit logins function?

edited November 2018 in CLI

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.

  • cohixcohix

    Team Member

    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!

  • I came here looking for exactly this feature, for a similar use case.

  • cohixcohix

    Team Member

    Thanks for letting us know @kajsa_a :+1:

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file