Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
crumpstar
2 years agoNew Contributor
Unable to create new item with empty password with cli
I'm using cli 2.28.0
op item get "item-uuid" --format=json | op item create --vault=runtime-testing --tags=test
is returning "unable to process line 1: Validation: (validateVaultItem failed to ...
jacob_o_1p
1Password Team
2 years agoHey crumpstar , I'm really sorry to hear you're running into some troubles with the CLI!
I've done some testing on my end and have not been able to replicate your issue running op item get "item-uuid" --format=json | op item create --vault="vault-name" --tags=test
with either a password item or a login item that has nothing set in the password field.
There is a chance that the item's json has broken behind the scenes. This is incredibly rare, however it can sometimes happen if the item was created or edited using a flawed release of the 1Password desktop app at some point in the past.
As a test, if you re-create the password item from scratch (and not manually copy it), in whichever vault you are attempting to make a copy of it out of, and then re-run the command using the 1Password CLI does it continue to run into this issue?
- micromicio7 months agoNew Contributor
Hi jacob_o_1p, we are currently facing the same issue with the latest version of 1Password and the CLI. Can you make the CLI robust to these scenarios? It will prevent our automation built on top of it to break