Pivotal Cloud Foundry Cheatsheet

Table of Contents

PCF is an application PaaS (Platform as a Service) cloud platform.

cf commands

ActionCommand
Get helpcf -h or cf command -h
Login and specify targetcf login -a https://api.run-np.homedepot.com -u ldap_id -o org_name -s space_name
List organizationscf orgs or cf o
Create a new orgcf co org_name
Create a new spacecf create-space org_name
Show list of buildpackscf buildpacks
Deploy an appcf push
Restart an appcf restage
See what apps are runningcf apps or cf a
Show environment variablescf env [app_name]
Show the recent log entriescf logs app_name -recent