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

adrianbj
adrianbj
Community Member
edited March 2021 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

Comments

  • ag_yaron
    ag_yaron
    1Password Alumni
    edited March 2021

    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.

  • adrianbj
    adrianbj
    Community Member

    @ag_yaron thanks for your response.

  • ag_yaron
    ag_yaron
    1Password Alumni

    Glad I could help :+1:

This discussion has been closed.