Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
Former Member
4 years agoAllow defaults to be specified, or env not to be set, if vault or slot not found with op run
I'm using op run combined with a .env file to load our development configuration, but we have quite a bit of optional configuration. Some devs may need part of the config, other devs might need other...
andi_t_1P
1Password Team
3 years agoHi @jonb1 , we do currently support default variables in both op run (in parsing .env files) and op inject. The syntax is ${VAR_NAME:-defaultValue}. In the case where VAR_NAME is not found defaultValue will be the used value.
Does this help?
Best,
Andi