Show Menu
Cheatography

Cloud Foundry Commands List V7.7.10 Cheat Sheet by

A breakout and description of the Cloud Foundry commands available

APPLIC­ATIONS

apps
List all apps in the target space
app
Display health and status for an app
create-app
Create an Applic­ation in the target space
push
Push a new app or sync changes to an existing app
scale
Change or view the instance count, disk space limit, and memory limit for an app
delete
Delete an app
rename
Rename an app
cancel­-de­plo­yment
Cancel the most recent deployment for an app. Resets the current droplet to the previous deploy­ment's droplet.
start
Start an app
stop
Stop an app
restart
Stop all instances of the app, then start them again.
stage-­package
Stage a package into a droplet
restage
Stage the app's latest package into a droplet and restart the app with this new droplet and updated config­uration (envir­onment variables, service bindings, buildpack, stack, etc.).
restar­t-a­pp-­ins­tance
Terminate, then instan­tiate an app instance
run task
Run a one-off task on an app
tasks
List tasks of an app
termin­ate­-task
Terminate a running task of an app
packages
List packages of an app
create­-pa­ckage
Uploads a Package
droplets
List droplets of an app
set-dr­oplet
Set the droplet used to run an app
downlo­ad-­droplet
Download an applic­ation droplet
events
Show recent app events
logs
Tail or show recent logs for an app
env
Show all env variables for an app
set-env
Set an env variable for an app
unset-env
Remove an env variable from an app
stacks
List all stacks (a stack is a pre-built file system, including an operating system, that can run apps)
stack
Show inform­ation for a stack (a stack is a pre-built file system, including an operating system, that can run apps)
copy-s­ource
Copies the source code of an applic­ation to another existing applic­ation and restages that applic­ation
create­-ap­p-m­anifest
Create an app manifest for an app that has been pushed succes­sfully
get-he­alt­h-check
Show the type of health check performed on an app
set-he­alt­h-check
Change type of health check performed on an app's process
enable-ssh
Enable ssh for the applic­ation
disabl­e-ssh
Disable ssh for the applic­ation
ssh-en­abled
Reports whether SSH is enabled on an applic­ation container instance
ssh
SSH to an applic­ation container instance
 

SERVICES

market­place
List available offerings in the market­place
services
List all service instances in the target space
service
Show service instance info
create­-se­rvice
Create a service instance
update­-se­rvice
Update a service instance
delete­-se­rvice
Delete a service instance
rename­-se­rvice
Rename a service instance
create­-se­rvi­ce-key
Create key for a service instance
servic­e-keys
List keys for a service instance
servic­e-key
Show service key info
delete­-se­rvi­ce-key
Delete a service key
bind-s­ervice
Bind a service instance to an app
unbind­-se­rvice
Unbind a service instance from an app
bind-r­out­e-s­ervice
Bind a service instance to an HTTP route
unbind­-ro­ute­-se­rvice
Unbind a service instance from an HTTP route
create­-us­er-­pro­vid­ed-­service
Make a user-p­rovided service instance available to CF apps
update­-us­er-­pro­vid­ed-­service
Update user-p­rovided service instance
share-­service
Share a service instance with another space
unshar­e-s­ervice
Unshare a shared service instance from a space

SERVICE ADMIN

servic­e-b­rokers
List all service brokers in the org
create­-se­rvi­ce-­broker
create a new service broker
update­-se­rvi­ce-­broker
update an existing service broker
delete­-se­rvi­ce-­broker
delete an existing service broker
rename­-se­rvi­ce-­broker
rename an existing service broker
purge-­ser­vic­e-o­ffering
Recurs­ively remove a service offering and child objects from Cloud Foundry database without making requests to a service broker
purge-­ser­vic­e-i­nstance
Recurs­ively remove a service instance and child objects from Cloud Foundry database without making requests to a service broker
servic­e-a­ccess
List the service access settings
enable­-se­rvi­ce-­access
Enable access to a service offering or service plan for one or all orgs
disabl­e-s­erv­ice­-access
Disable access to a service offering or service plan for one or all orgs
 

ORGS

orgs
List all orgs
org
show specific org inform­ation
create-org
Create a new org
delete-org
Delete a specific org
rename-org
Rename a specific org

SPACES

spaces
List all the spaces in an ORG
space
Show specific space inform­ation
create­-space
Create a new space
delete­-space
Delete a specific space
rename­-space
Rename a specific space
apply-­man­ifest
Apply properties to a space
allow-­spa­ce-ssh
allow ssh access into a space
disall­ow-­spa­ce-ssh
disable ssh access into a space
space-­ssh­-al­lowed
returns if ssh is allowed in the space

ROUTES

routes
LIst all routes in teh current space or org
create­-route
Create a route for later use
check-­route
Check if a route exists or not
map-route
Map a route to an applic­ation
unmap-­route
Remove a route from an applic­ation
delete­-route
Delete the entire route
delete­-or­pha­ned­-routes
Delete routes that are not mapped (go nowhere)

DOMAINS

domains
List all domains in the org
create­-pr­iva­te-­domain
Create a private domain within the org
delete­-pr­iva­te-­domain
Delete a private domain within the org
create­-sh­are­d-d­omain
Create a domain that can be used by all (admin­-only)
delete­-sh­are­d-d­omain
Delete a shared domain
router­-groups
List the router groups in an org

ADVANCED USE

curl
Calls the targeted API endpoint
config
Write default values to the config
oauth-­token
Display the OAuth token for the current session and refresh the token if necessary
ssh-code
Get a one time password for ssh clients
       
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Docker and friends Cheat Sheet
          awsReference Cheat Sheet
          AWS Services Cheat Sheet

          More Cheat Sheets by chubbard

          MegaCLI Cheat Sheet