Tags

## Set or view target api url 
$ cf api https://api.ng.bluemix.net

## Log user in
$ cf login -u armando@gmail.com
$ cf login -u armando@gmail.com -s rails-space
$ cf login -u armando@gmail.com -o "MobileOrgs" -s "rails_space"
$ cf login -u armando@gmail.com -o "MIT" -s "node_space"

## Log user out
$ cf logout

## target - Set or view the targeted org or space 
## e.g. switch to space "rails_space" from MIT organization
$ cf target -o "MIT" -s "rails_space"
$ cf target -s "my_space"
$ cf target -o "my_org"

## logs - Tail or show recent logs for an app 
$ cf logs myrailsapp

## rename - Rename an app 
$ cf rename myrailsapp railsapp-cloudant-stage

##  map-route - Add a url route to an app 
$ cf map-route myrailsapp example.com   # example.com

## unmap-route - Remove a url route from an app 
$ cf unmap-route myrailsapp example.com   # example.com

## set-env - Set an env variable for an app
$ cf set-env myrailsapp mongoURL "mongodb://username:password@xxxx.xxx.com"

## start - Start an app
$ cf start|stop|restart APP_NAME

More info at http://cli.cloudfoundry.org/en-US/cf/

Advertisements