Use sed to grab heroku config into newline delimited flask environment variables. heroku config | sed -n 2,10p | sed 's/.*/--env &/; s/: */="/; s/$/"\\/;'
1
1
0
0
0
The sed -n 2,10p filters out extra output from heroku config that's not related to config data