Protect what matters – even after you're gone. Make a plan for your digital legacy today.
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 agoI found a temporary fix op item get .env.local2 --fields notesPlain | xargs echo
Edit:
When you have something in the note like:
NEXT_PUBLIC_ENV="DEV"
NEXT_PUBLIC_API_HOST="http://localhost:8000"
Then the xargs trick doesn't work.
However this does work:
op item get .env.local --fields notesPlain --format json | jq '.value' -r