Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Anonymous
3 years agoop run doesn't seem to be overriding shell value with env value (per docs)
Hi
am newly using CLI and seems good, but I've discovered a problem.
Given I set something in the shell, either as an absolute value
export SOME_NAME=some-value
or as a 1p reference
...
Anonymous
3 years agoWe also just ran into this trying to override NODE_EXTRA_CA_CERTS
in a Node.js program. A simpler reproduction:
A .env.development
file like:
ini
ENVIRONMENT="development"
Then run:
sh
ENVIRONMENT=test op run --env-file='./.env.development' -- node --eval 'console.log(process.env.ENVIRONMENT)'
Observe "test" is outputted instead of "development".
Node.js v18.16.0
op 2.19.0
macOS 13.5