You need access to application level information to help manage and plan your estate and cannot get what you need through the command line interface (CLI).
- Login with the CF CLI as usual
- Use the CF API to access the /V3/apps endpoint to return the detailed information in JSON format.
- Filter the data using the jq command (http://github/stedolan/jq)
cf login
cf curl /v2/apps | jq '.'
cf curl /v2/apps | jq '.resources[4]'
cf curl /v2/apps | jq '.resources[4].entity.memory'
The advantage of using the cf curl command is that is that it handles authentication for you.