It’s Cybersecurity Awareness Month! Join our interactive training session, or learn about security and AI from 1Password experts.
Forum Discussion
adrianbj
5 years agoNew Contributor
anyone have examples of editing existing Vault entries from CLI?
I have several vaults within our company's division where we would like to add more entries for all.
I am looking for a path that I can follow to automate this.
I understand the limitation, but a...
Former Member
5 years agoHey adrianbj,
Just for clarification, do you mean adding new entries to a vault, or editing the information of existing entries?
For the former, you can add new items to a vault with json using op encode < file.json with op create item as shown in the https://support.1password.com/command-line-reference/#create-item.
For the latter, op edit item doesn't take json templates, but uses key-value assignment pairs like section.field=value. There are also unfortunately some limitations here, namely that you can't add a new field this way.