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?

  1. cf set-env dora MY_VAR hello
  2. 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