Sei sulla pagina 1di 13

Incorrect Usage.

NAME:
cf - A command line tool to interact with Cloud Foundry
USAGE:
[environment variables] cf [global options] command [arguments...] [command o
ptions]
VERSION:
6.6.0-704d304-2014-09-05T20:45:11+00:00
BUILD TIME:
2015-01-19 09:51:09.072338534 +0530 IST
GETTING STARTED:
login, l
logout, lo
passwd, pw
target, t
space

Log user in
Log user out
Change user password
Set or view the targeted org or

api
auth
vely

Set or view target api url


Authenticate user non-interacti

APPS:
apps, a
ce
app
pp

List all apps in the target spa


Display health and status for a

push, p
Push a new app or sync changes
to an existing app
scale
Change or view the instance cou
nt, disk space limit, and memory limit for an app
delete, d
Delete an app
rename
Rename an app
start, st
stop, sp
restart, rs
restage, rg
events
files, f
directory or the contents of a specific file
logs
app

Start an app
Stop an app
Restart an app
Restage an app
Show recent app events
Print out a list of files in a
Tail or show recent logs for an

env, e

Show all env variables for an a

set-env, se
unset-env

Set an env variable for an app


Remove an env variable

pp

stacks
List all stacks (a stack is a p
re-built file system, including an operating system, that can run apps)
SERVICES:
marketplace, m

List available offerings in the

marketplace
services, s
he target space
service

List all service instances in t


Show service instance info

create-service, cs
delete-service, ds
rename-service

Create a service instance


Delete a service instance
Rename a service instance

bind-service, bs

Bind a service instance to an a

unbind-service, us
an app

Unbind a service instance from

create-user-provided-service, cups
stance available to cf apps
update-user-provided-service, uups
stance name value pairs

Make a user-provided service in

pp

ORGS:
orgs, o
org
create-org, co
delete-org
rename-org
SPACES:
spaces
space
create-space
delete-space
rename-space
DOMAINS:
domains
create-domain
ater use
delete-domain
create-shared-domain
d by all orgs (admin-only)
delete-shared-domain
ROUTES:
routes, r
space
create-route
or later use
map-route
unmap-route
delete-route
delete-orphaned-routes
.: those that are not mapped to an app)
BUILDPACKS:
buildpacks
create-buildpack
update-buildpack
rename-buildpack

Update user-provided service in

List all orgs


Show org info
Create an org
Delete an org
Rename an org
List all spaces in an org
Show space info
Create a space
Delete a space
Rename a space
List domains in the target org
Create a domain in an org for l
Delete a domain
Create a domain that can be use
Delete a shared domain
List all routes in the current
Create a url route in a space f
Add a url route to an app
Remove a url route from an app
Delete a route
Delete all orphaned routes (e.g

List all
Create a
Update a
Rename a

buildpacks
buildpack
buildpack
buildpack

delete-buildpack
USER ADMIN:
create-user
delete-user

Delete a buildpack
Create a new user
Delete a user

org-users
set-org-role
unset-org-role

Show org users by role


Assign an org role to a user
Remove an org role from a user

space-users
set-space-role
unset-space-role

Show space users by role


Assign a space role to a user
Remove a space role from a user

ORG ADMIN:
quotas
quota
set-quota
create-quota
delete-quota
update-quota

List available usage quotas


Show quota info
Assign a quota to an org
Define a new resource quota
Delete a quota
Update an existing resource quo

ta
SPACE ADMIN:
space-quota
space-quotas
uotas
create-space-quota
ta
update-space-quota
delete-space-quota
and unassign the space quota from all spaces
set-space-quota
to a space
unset-space-quota
SERVICE ADMIN:
service-auth-tokens
create-service-auth-token
update-service-auth-token
delete-service-auth-token
service-brokers
create-service-broker
update-service-broker
delete-service-broker
rename-service-broker

Show space quota info


List available space resource q
Define a new space resource quo
update an existing space quota
Delete a space quota definition
Assign a space quota definition
Unassign a quota from a space
List service auth tokens
Create a service auth token
Update a service auth token
Delete a service auth token
List service brokers
Create a service broker
Update a service broker
Delete a service broker
Rename a service broker

migrate-service-instances
Migrate service instances from
one service plan to another
purge-service-offering
Recursively remove a service an
d child objects from Cloud Foundry database without making requests to a service
broker
service-access
enable-service-access
ervice plan for one or all orgs
disable-service-access
service plan for one or all orgs

List service access settings


Enable access to a service or s
Disable access to a service or

SECURITY GROUP:
security-group
security-groups
create-security-group
update-security-group
delete-security-group
bind-security-group
e
unbind-security-group
space

Show a single security group


List all security groups
Create a security group
Update a security group
Deletes a security group
Bind a security group to a spac
Unbind a security group from a

bind-staging-security-group
Bind a security group to the li
st of security groups to be used for staging applications
staging-security-groups
List security groups in the sta
ging set for applications
unbind-staging-security-group
Unbind a security group from th
e set of security groups for staging applications
bind-running-security-group
Bind a security group to the li
st of security groups to be used for running applications
running-security-groups
List security groups in the set
of security groups for running applications
unbind-running-security-group
Unbind a security group from th
e set of security groups for running applications
ENVIRONMENT VARIABLE GROUPS:
running-environment-variable-group, revg
nning environment variable group
staging-environment-variable-group, sevg
aging environment variable group
set-staging-environment-variable-group, ssevg
te a staging environment variable group
set-running-environment-variable-group, srevg
te a running environment variable group

Retrieve the contents of the ru


Retrieve the contents of the st
Pass parameters as JSON to crea
Pass parameters as JSON to crea

FEATURE FLAGS:
feature-flags
Retrieve list of feature flags
with status of each flag-able feature
feature-flag
Retrieve an individual feature
flag with status
enable-feature-flag
Enable the use of a feature so
that users have access to and can use the feature.
disable-feature-flag
Disable the use of a feature so
that users have access to and can use the feature.
ADVANCED:
curl
-type set to application/json by default
config
fig
ENVIRONMENT VARIABLES
CF_COLOR=false
CF_HOME=path/to/dir/
CF_STAGING_TIMEOUT=15
nutes
CF_STARTUP_TIMEOUT=5
minutes
CF_TRACE=true

Executes a raw request, content


write default values to the con

Do not colorize output


Override path to default config directory
Max wait time for buildpack staging, in mi
Max wait time for app instance startup, in
Print API request diagnostics to stdout

CF_TRACE=path/to/trace.log

Append API request diagnostics to a log fi

le
HTTP_PROXY=proxy.example.com:8080 Enable HTTP proxying for API requests
GLOBAL OPTIONS
--version, -v
--help, -h

Print the version


Show help

Incorrect Usage.
NAME:
cf - A command line tool to interact with Cloud Foundry
USAGE:
[environment variables] cf [global options] command [arguments...] [command o
ptions]
VERSION:
6.6.0-704d304-2014-09-05T20:45:11+00:00
BUILD TIME:
2015-01-19 09:52:22.503250808 +0530 IST
GETTING STARTED:
login, l
logout, lo
passwd, pw
target, t
space

Log user in
Log user out
Change user password
Set or view the targeted org or

api
auth
vely

Set or view target api url


Authenticate user non-interacti

APPS:
apps, a
ce
app
pp

List all apps in the target spa


Display health and status for a

push, p
Push a new app or sync changes
to an existing app
scale
Change or view the instance cou
nt, disk space limit, and memory limit for an app
delete, d
Delete an app
rename
Rename an app
start, st
stop, sp
restart, rs
restage, rg
events
files, f
directory or the contents of a specific file
logs
app
env, e
pp

Start an app
Stop an app
Restart an app
Restage an app
Show recent app events
Print out a list of files in a
Tail or show recent logs for an
Show all env variables for an a

set-env, se
unset-env

Set an env variable for an app


Remove an env variable

stacks
List all stacks (a stack is a p
re-built file system, including an operating system, that can run apps)
SERVICES:
marketplace, m
marketplace
services, s
he target space
service

List available offerings in the


List all service instances in t
Show service instance info

create-service, cs
delete-service, ds
rename-service

Create a service instance


Delete a service instance
Rename a service instance

bind-service, bs

Bind a service instance to an a

unbind-service, us
an app

Unbind a service instance from

create-user-provided-service, cups
stance available to cf apps
update-user-provided-service, uups
stance name value pairs

Make a user-provided service in

pp

ORGS:
orgs, o
org
create-org, co
delete-org
rename-org
SPACES:
spaces
space
create-space
delete-space
rename-space
DOMAINS:
domains
create-domain
ater use
delete-domain
create-shared-domain
d by all orgs (admin-only)
delete-shared-domain
ROUTES:
routes, r
space
create-route
or later use
map-route
unmap-route
delete-route

Update user-provided service in

List all orgs


Show org info
Create an org
Delete an org
Rename an org
List all spaces in an org
Show space info
Create a space
Delete a space
Rename a space
List domains in the target org
Create a domain in an org for l
Delete a domain
Create a domain that can be use
Delete a shared domain
List all routes in the current
Create a url route in a space f
Add a url route to an app
Remove a url route from an app
Delete a route

delete-orphaned-routes
.: those that are not mapped to an app)

Delete all orphaned routes (e.g

BUILDPACKS:
buildpacks
create-buildpack
update-buildpack
rename-buildpack
delete-buildpack

List all
Create a
Update a
Rename a
Delete a

USER ADMIN:
create-user
delete-user

Create a new user


Delete a user

buildpacks
buildpack
buildpack
buildpack
buildpack

org-users
set-org-role
unset-org-role

Show org users by role


Assign an org role to a user
Remove an org role from a user

space-users
set-space-role
unset-space-role

Show space users by role


Assign a space role to a user
Remove a space role from a user

ORG ADMIN:
quotas
quota
set-quota
create-quota
delete-quota
update-quota

List available usage quotas


Show quota info
Assign a quota to an org
Define a new resource quota
Delete a quota
Update an existing resource quo

ta
SPACE ADMIN:
space-quota
space-quotas
uotas
create-space-quota
ta
update-space-quota
delete-space-quota
and unassign the space quota from all spaces
set-space-quota
to a space
unset-space-quota
SERVICE ADMIN:
service-auth-tokens
create-service-auth-token
update-service-auth-token
delete-service-auth-token
service-brokers
create-service-broker
update-service-broker
delete-service-broker
rename-service-broker
migrate-service-instances
one service plan to another
purge-service-offering

Show space quota info


List available space resource q
Define a new space resource quo
update an existing space quota
Delete a space quota definition
Assign a space quota definition
Unassign a quota from a space
List service auth tokens
Create a service auth token
Update a service auth token
Delete a service auth token
List service brokers
Create a service broker
Update a service broker
Delete a service broker
Rename a service broker
Migrate service instances from
Recursively remove a service an

d child objects from Cloud Foundry database without making requests to a service
broker
service-access
enable-service-access
ervice plan for one or all orgs
disable-service-access
service plan for one or all orgs
SECURITY GROUP:
security-group
security-groups
create-security-group
update-security-group
delete-security-group
bind-security-group
e
unbind-security-group
space

List service access settings


Enable access to a service or s
Disable access to a service or

Show a single security group


List all security groups
Create a security group
Update a security group
Deletes a security group
Bind a security group to a spac
Unbind a security group from a

bind-staging-security-group
Bind a security group to the li
st of security groups to be used for staging applications
staging-security-groups
List security groups in the sta
ging set for applications
unbind-staging-security-group
Unbind a security group from th
e set of security groups for staging applications
bind-running-security-group
Bind a security group to the li
st of security groups to be used for running applications
running-security-groups
List security groups in the set
of security groups for running applications
unbind-running-security-group
Unbind a security group from th
e set of security groups for running applications
ENVIRONMENT VARIABLE GROUPS:
running-environment-variable-group, revg
nning environment variable group
staging-environment-variable-group, sevg
aging environment variable group
set-staging-environment-variable-group, ssevg
te a staging environment variable group
set-running-environment-variable-group, srevg
te a running environment variable group

Retrieve the contents of the ru


Retrieve the contents of the st
Pass parameters as JSON to crea
Pass parameters as JSON to crea

FEATURE FLAGS:
feature-flags
Retrieve list of feature flags
with status of each flag-able feature
feature-flag
Retrieve an individual feature
flag with status
enable-feature-flag
Enable the use of a feature so
that users have access to and can use the feature.
disable-feature-flag
Disable the use of a feature so
that users have access to and can use the feature.
ADVANCED:
curl
-type set to application/json by default
config
fig

Executes a raw request, content


write default values to the con

ENVIRONMENT VARIABLES
CF_COLOR=false
CF_HOME=path/to/dir/
CF_STAGING_TIMEOUT=15
nutes
CF_STARTUP_TIMEOUT=5
minutes
CF_TRACE=true
CF_TRACE=path/to/trace.log
le
HTTP_PROXY=proxy.example.com:8080
GLOBAL OPTIONS
--version, -v
--help, -h

Do not colorize output


Override path to default config directory
Max wait time for buildpack staging, in mi
Max wait time for app instance startup, in
Print API request diagnostics to stdout
Append API request diagnostics to a log fi
Enable HTTP proxying for API requests
Print the version
Show help

Incorrect Usage.
NAME:
cf - A command line tool to interact with Cloud Foundry
USAGE:
[environment variables] cf [global options] command [arguments...] [command o
ptions]
VERSION:
6.6.0-704d304-2014-09-05T20:45:11+00:00
BUILD TIME:
2015-01-19 09:52:59.087562289 +0530 IST
GETTING STARTED:
login, l
logout, lo
passwd, pw
target, t
space

Log user in
Log user out
Change user password
Set or view the targeted org or

api
auth
vely

Set or view target api url


Authenticate user non-interacti

APPS:
apps, a
ce
app
pp

List all apps in the target spa


Display health and status for a

push, p
Push a new app or sync changes
to an existing app
scale
Change or view the instance cou
nt, disk space limit, and memory limit for an app
delete, d
Delete an app
rename
Rename an app
start, st
stop, sp
restart, rs
restage, rg

Start an app
Stop an app
Restart an app
Restage an app

events
files, f
directory or the contents of a specific file
logs
app

Show recent app events


Print out a list of files in a
Tail or show recent logs for an

env, e

Show all env variables for an a

set-env, se
unset-env

Set an env variable for an app


Remove an env variable

pp

stacks
List all stacks (a stack is a p
re-built file system, including an operating system, that can run apps)
SERVICES:
marketplace, m
marketplace
services, s
he target space
service

List available offerings in the


List all service instances in t
Show service instance info

create-service, cs
delete-service, ds
rename-service

Create a service instance


Delete a service instance
Rename a service instance

bind-service, bs

Bind a service instance to an a

unbind-service, us
an app

Unbind a service instance from

create-user-provided-service, cups
stance available to cf apps
update-user-provided-service, uups
stance name value pairs

Make a user-provided service in

pp

ORGS:
orgs, o
org
create-org, co
delete-org
rename-org
SPACES:
spaces
space
create-space
delete-space
rename-space
DOMAINS:
domains
create-domain
ater use
delete-domain
create-shared-domain
d by all orgs (admin-only)
delete-shared-domain

Update user-provided service in

List all orgs


Show org info
Create an org
Delete an org
Rename an org
List all spaces in an org
Show space info
Create a space
Delete a space
Rename a space
List domains in the target org
Create a domain in an org for l
Delete a domain
Create a domain that can be use
Delete a shared domain

ROUTES:
routes, r
space
create-route
or later use
map-route
unmap-route
delete-route
delete-orphaned-routes
.: those that are not mapped to an app)

List all routes in the current


Create a url route in a space f
Add a url route to an app
Remove a url route from an app
Delete a route
Delete all orphaned routes (e.g

BUILDPACKS:
buildpacks
create-buildpack
update-buildpack
rename-buildpack
delete-buildpack

List all
Create a
Update a
Rename a
Delete a

USER ADMIN:
create-user
delete-user

Create a new user


Delete a user

buildpacks
buildpack
buildpack
buildpack
buildpack

org-users
set-org-role
unset-org-role

Show org users by role


Assign an org role to a user
Remove an org role from a user

space-users
set-space-role
unset-space-role

Show space users by role


Assign a space role to a user
Remove a space role from a user

ORG ADMIN:
quotas
quota
set-quota
create-quota
delete-quota
update-quota

List available usage quotas


Show quota info
Assign a quota to an org
Define a new resource quota
Delete a quota
Update an existing resource quo

ta
SPACE ADMIN:
space-quota
space-quotas
uotas
create-space-quota
ta
update-space-quota
delete-space-quota
and unassign the space quota from all spaces
set-space-quota
to a space
unset-space-quota
SERVICE ADMIN:
service-auth-tokens
create-service-auth-token
update-service-auth-token
delete-service-auth-token
service-brokers

Show space quota info


List available space resource q
Define a new space resource quo
update an existing space quota
Delete a space quota definition
Assign a space quota definition
Unassign a quota from a space
List service auth tokens
Create a service auth token
Update a service auth token
Delete a service auth token
List service brokers

create-service-broker
update-service-broker
delete-service-broker
rename-service-broker

Create
Update
Delete
Rename

a
a
a
a

service
service
service
service

broker
broker
broker
broker

migrate-service-instances
Migrate service instances from
one service plan to another
purge-service-offering
Recursively remove a service an
d child objects from Cloud Foundry database without making requests to a service
broker
service-access
enable-service-access
ervice plan for one or all orgs
disable-service-access
service plan for one or all orgs
SECURITY GROUP:
security-group
security-groups
create-security-group
update-security-group
delete-security-group
bind-security-group
e
unbind-security-group
space

List service access settings


Enable access to a service or s
Disable access to a service or

Show a single security group


List all security groups
Create a security group
Update a security group
Deletes a security group
Bind a security group to a spac
Unbind a security group from a

bind-staging-security-group
Bind a security group to the li
st of security groups to be used for staging applications
staging-security-groups
List security groups in the sta
ging set for applications
unbind-staging-security-group
Unbind a security group from th
e set of security groups for staging applications
bind-running-security-group
Bind a security group to the li
st of security groups to be used for running applications
running-security-groups
List security groups in the set
of security groups for running applications
unbind-running-security-group
Unbind a security group from th
e set of security groups for running applications
ENVIRONMENT VARIABLE GROUPS:
running-environment-variable-group, revg
nning environment variable group
staging-environment-variable-group, sevg
aging environment variable group
set-staging-environment-variable-group, ssevg
te a staging environment variable group
set-running-environment-variable-group, srevg
te a running environment variable group

Retrieve the contents of the ru


Retrieve the contents of the st
Pass parameters as JSON to crea
Pass parameters as JSON to crea

FEATURE FLAGS:
feature-flags
Retrieve list of feature flags
with status of each flag-able feature
feature-flag
Retrieve an individual feature
flag with status
enable-feature-flag
Enable the use of a feature so
that users have access to and can use the feature.
disable-feature-flag
Disable the use of a feature so

that users have access to and can use the feature.


ADVANCED:
curl
-type set to application/json by default
config
fig
ENVIRONMENT VARIABLES
CF_COLOR=false
CF_HOME=path/to/dir/
CF_STAGING_TIMEOUT=15
nutes
CF_STARTUP_TIMEOUT=5
minutes
CF_TRACE=true
CF_TRACE=path/to/trace.log
le
HTTP_PROXY=proxy.example.com:8080
GLOBAL OPTIONS
--version, -v
--help, -h

Executes a raw request, content


write default values to the con

Do not colorize output


Override path to default config directory
Max wait time for buildpack staging, in mi
Max wait time for app instance startup, in
Print API request diagnostics to stdout
Append API request diagnostics to a log fi
Enable HTTP proxying for API requests
Print the version
Show help

Potrebbero piacerti anche