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 ...
legojoey17
10 months agoNew Contributor
Huh, well I guess it's just impossible to make a Password type without a password. I found just taking the op item template get "Password" template, removing all of the existing fields, it will still fail even without the field template.
I'm also quite confused as there isn't anything on the 1Password CLI docs referencing ps, like where I may expect it on:
- https://developer.1password.com/docs/cli/item-fields/
- https://developer.1password.com/docs/cli/item-template-json/
For now I found I'm able to just use an "API Credential" type without any validation errors provided only a few custom fields.