Back to Ohmyzsh

Cloudfoundry Plugin

plugins/cloudfoundry/README.md

latest5.1 KB
Original Source

Cloudfoundry Plugin

This plugin is intended to offer a few simple aliases for regular users of the Cloud Foundry Cli. Most are just simple aliases that will save a bit of typing. Others include mini functions and or accept parameters. Take a look at the table below for details.

AliasCommandDescription
cflcf loginLogin to Cloud Foundry
cftcf targetTarget the cli at a specific Org/Space in Cloud Foundry
cfacf appsList all applications in the current Org/Space
cfscf servicesList all services in the current Org/Space
cfmcf marketplaceList the services available in the Marketplace
cfpcf pushPush your application code to Cloud Foundry
cfcscf create-serviceCreate a service based on a Marketplace offering
cfbscf bind-serviceBind an application to a service you created
cfuscf unbind-serviceUnbind a service from an application
cfdscf delete-serviceDelete a service you no longer have bound
cfupcf cupsCreate a "user-provided-service"
cflgcf logsTail the logs of an application (requires <APP_NAME>)
cfrcf routesList all the routes in the current Space
cfecf envShow the environment variables for an application (requires <APP_NAME>)
cfshcf sshAttach to a running container (requires an <APP_NAME> etc.)
cfsccf scaleScale an application (requires an <APP_NAME> etc.)
cfevcf eventsShow the application events (requires <APP_NAME>)
cfdorcf delete-orphaned-routesDelete routes that are no longer bound to applications
cfbpkcf buildpacksList the available buildpacks
cfdmcf domainsList the domains associates with this Cloud Foundry foundation
cfspcf spacesList all the Spaces in the current Org
cfapcf appShow the details of a deployed application (requires <APP_NAME>)
cfh.export CF_HOME=$PWD/.cfSet the current directory as CF_HOME
cfh~export CF_HOME=~/.cfSet the user's root directory as CF_HOME
cfhuunset CF_HOMEUnsets CF_HOME
cfpmcf push -fPush an application using a manifest (requires <MANIFEST_FILE> location)
cflrcf logs --recentShow the recent logs (requires <APP_NAME>)
cfsrtcf startStart an application (requires <APP_NAME>)
cfstpcf stopStop an application (requires <APP_NAME>)
cfstgcf restageRestage an application (requires <APP_NAME>)
cfdelcf deleteDelete an application (requires <APP_NAME>)
cfsrtall-Start all apps that are currently in the "Stopped" state
cfstpall-Stop all apps that are currently in the "Started" state

For help and advice on what any of the commands does, consult the built in cf help functions as follows:-

bash
cf help # List the most popular and commonly used commands
cf help -a # Complete list of all possible commands
cf <COMMAND_NAME> --help # Help on a specific command including arguments and examples

Alternatively, seek out the online documentation. And don't forget, there are loads of great community plugins for the cf-cli command line tool that can greatly extend its power and usefulness.

Contributors

Contributed to oh_my_zsh by benwilcock.