Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
4 years agoCLI V2 returns `-- fields` surrounded in double quotes, V1 didn’t
There is a pretty big breaking change in the CLI V2.
It now returns fields wrapped in double quotes.
Is this intended behavior? Any simple suggestion for getting it back to returning without thos...
Former Member
4 years ago@"Horia.Culea_1P" I'm using 1password to store a JSON document that I need to be able to simply export like it used to work in v1. Amongst all the great features there's no way of simply having a custom-filed object to simulate JSON – all of them are some kind of credential-bast schemas – none of what I want.
You have very fancy stuff like database, API credential, etc. but we can't create our own schema from a scratch, i.e., no password fields and such. As the result, the only way around this is to use a secure note. Which used to work just fine until it all got "improved".
Now I cannot just op item get "${OP_ITEM}" --fields label=notesPlain
because apparently "it does the right thing". It doesn't to the right thing for me – that I am very certain of.
I cannot use op read op://path/to/item-field
because my item has spaces and special characters and used in numerous docs and the rest of my 1password items follow a convention. I don't want to mess it up just to compensate for this "new and improved API".
And the best part I cannot use (or at least find how to use) 1password API to get the bloody item ID to use it with op read op://path/to/item-field
where I cannot use special characters…
I've literally just spent over an hour trying to comprehend these v2 improvements and then double checked if there's an alternative to 1Password because this whole API shinanigans really gets to me for what it's worth.
*I want to be able to return the flipping item's value AS IT IS! *
Right now I need to use a completely different tool jq
I've no idea who manages it and if it's actually secure or if it has dependencies. Did you even consider this?
If you want to be smart about this and add quotes, use another format for that, whether it's for CSV or anything else. What I'm getting now is neither human readable or valid or useful.
Thanks for wasting my morning on this. Massive thumbs down!