Login to with the cf cli to the space you want to extract the VCAP_SERVICES from
Run source cfenv-locally.sh APP_NAME
Verify by running echo $VCAP_SERVICES
Include VCAP_APPLICATION
Login to with the cf cli to the space you want to extract the VCAP_SERVICES from
Run source cfenv-locally.sh APP_NAME
Verify by running echo $VCAP_SERVICES
Include VCAP_APPLICATION