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 agoHey @raybb franklin
We believe that you can achieve the same output behaviour possible with V1 with V2:
Getting the raw value of a single field
v1
op get item <item> --fields <field>
v2
op read op://<vault>/<item>/<field>
Getting multiple values in the csv format
v1
op get item <item> --fields <field1>,<field2> --format csv
v2
op item get <item> --fields <field1>,<field2>
Getting values in the json format
v1
op get item <item> --fields <field>
v2
op item get <item> --fields <field>