I’m currently trying to integrate it with netlify.
doppler run – netlify deploy --auth $NETLIFY_AUTH_TOKEN
› Error: Flag --auth expects a value
The $NETLIFY_AUTH_TOKEN is already set up
doppler run – printenv NETLIFY_AUTH_TOKEN (this shows)
doppler run – echo $NETLIFY_AUTH_TOKEN (doesn’t show anything) how to reference it?
Hey Mario, it looks like bash is executing on the variable before doppler run
executes. Try this instead:
doppler run – netlify deploy --auth \$NETLIFY_AUTH_TOKEN
I have tried it but it doesn’t seem to work.
Apparently, I can’t doppler run -- echo $anything
it doesn’t return anything back.
Hi @Mario_Fantastic,
Can you try using the --command
flag instead:
doppler run --command='netlify deploy --auth $NETLIFY_AUTH_TOKEN'
1 Like
Ah thank you very much! That works!
Any plans for Doppler team to integrate it in the normal dopper run --
In case anyone attempts to access the $ENV from the shell command like mine.
I couldn’t find a proper reference. For that --command flag, I only saw in doc for using multiple commands.
Best regards
Great idea @Mario_Fantastic and I’ve added a new example in our CLI Accessing Secrets Guide that uses the --command
flag.