Is there a way to update a membership or login from the 1Password CLI?

edited March 15 in CLI

My team would like to automate a solution which include updating a 1Password Login or Membership entry. Is there a way to accomplish this through command line, using the 1Password CLI tool? Can someone provide an example? Let's say I want to update the expiration date and password.

1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Sync Type: Not Provided


  • ag_yaronag_yaron

    Team Member
    edited March 16

    Hey @adrianbj ,

    Currently the CLI does not support editing data fields such as expiry date, and in general editing items that are not login items.
    We've filed your message here as a feature request and hopefully we'll see it in a future version of the CLI.

    Until then, a possible automated solution would be to write a script that fetches an item (such as a membership item) from the CLI, stores in a JSON, then the script will edit the desired fields in the JSON, encode it and import it as a new item back into the vault (and deletes the original if needed).

    More of a workaround rather than a solution, but when automated it should do what you're asking.

  • @ag_yaron thanks for your response.

  • ag_yaronag_yaron

    Team Member

    Glad I could help :+1:

Leave a Comment

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