How can I see the environment variables in a fly machine that were set via -e
arguments to fly machine run
?
# assuming printenv is built into the deployed docker image
flyctl ssh console -a <app-name> -C "printenv"
flyctl ssh console -a <app-name> -C "printenv <var-name>"
# echo also works
flyctl ssh console -a <app-name> -C "echo $var"
(ref).
1 Like
From How To to Questions / Help
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.