Many commands have aliases which are displayed here in the format of: <command>,<alias> Example: login,l
After you login, if you belong to more than one organization, you have to select one. Following that, you select a space. From there you can begin building and managing your cloud native applications and services.
Suppose you have a seperate space for development, testing, and production. How do you switch between these spaces?
$ cf target -s <name of space>
To change organizations...
$ cf target -o <organization name>
if you did not also use the -s option to specify a space, you will need to target a space to begin working. If you do not know what spaces are available to you then you will want to use the spaces command.
$ cf spaces
This will list all the available spaces for the organization you targeted. Now you can target a space.
$ cf target -s <name of space>
Also note that the name is not case sensitive, so dev = Dev or DEV
CLI Commands
Usage: cf [global options] command [arguments...] [command options]
Before getting started:
config login,l target,t
help,h logout,lo
Application lifecycle:
apps,a logs set-env,se
push,p ssh create-app-manifest
start,st app
stop,sp env,e
restart,rs scale
restage,rg events
Services integration:
marketplace,m create-user-provided-service,cups
services,s update-user-provided-service,uups
create-service,cs create-service-key,csk
update-service delete-service-key,dsk
delete-service,ds service-keys,sk
service service-key
bind-service,bs bind-route-service,brs
unbind-service,us unbind-route-service,urs
Route and domain management:
routes,r delete-route create-domain
domains map-route
create-route unmap-route
Space management:
spaces create-space set-space-role
space-users delete-space unset-space-role
Org management:
orgs,o set-org-role
org-users unset-org-role
CLI plugin management:
plugins add-plugin-repo repo-plugins
install-plugin list-plugin-repos
Commands offered by installed plugins:
predix
Global options:
--help, -h Show help
-v Print API request diagnostics to stdout
'cf help -a' lists all commands with short descriptions. See 'cf help <command>' to read about a specific command.