Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
3 years agoUse "op run" to load secrets into .env file
Hey,
I'm trying to use your https://developer.1password.com/docs/cli/secrets-environment-variables/ method when I'm running my web application locally on my computer.
I looked into your documen...
XIII
3 years agoSuper Contributor
but my expectation is to load the value into the .env file specified in the command path.
That expectation might be wrong; op run
does not modify (write) .env
files, but does replace the secret references (read from an .env
file) by values in your vault (in memory) and supplies those (only!) to the command you execute with op run
.
Did you try starting your web application with op run
?
(Replace printenv AWS_COGNITO_LOGIN_URL password
by the command that starts your web App)