Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
Anonymous
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...
Anonymous
3 years agoI ran into this because I use op to populate .tfvars files for terraform. Here's my workaround:
op item get "${OP_ITEM}" --fields label=notesPlain --format json | jq -r '.value' > "${TF_FILENAME}"
jq returns quoted strings by default for some reason too, but you can use the -r (raw) option to disable that behavior.