Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
Anonymous
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)