View your app’s environment variables
What?
Environment variables are the means by which the Cloud Foundry runtime communicates with a deployed application about its environment. You can use them too!
How?
cf set-env dora MY_VAR hello
cf env dora
Expected Result
The cf CLI will show the application’s environment variables classified as System-Provided (i.e. VCAP_APPLICATION
) and User Provided (MY_VAR
). Running and Staging variables are provided by operators that apply to all applications.
Resources
Cloud Foundry Environment Variables What is a Runtime Environment (RTE)? VCAP_APPLICATION VCAP_SERVICES