Bash export
The export command turns a variable into an environment variable, so programs and scripts you start from the shell can read it.
You can export a variable that is already set, or set and export it in one step: export name=value.
Before and after export
x=10
bash -c 'echo "x is: $x"'
x is:
export x
bash -c 'echo "x is: $x"'
x is: 10