All apps/Cloud Foundry CLI

Cloud Foundry CLI

cf

The official command line client for Cloud Foundry.

Runs as cf|macOS, Linux, Windows|docs.cloudfoundry.org

Command form

ai-draft · 6 tasks · 13 fields

Push apps, read logs and set the target org and space. Login (credentials), services, routes and admin commands are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui cf

cf push

Push an app

Push a new app or sync changes to an existing app. Run it from the app directory.

Push an appExample values, fixed in this page — nothing here reaches a terminal
Basic
Manifest
file
TasksEach one presets the form for one job
Push from a manifest
manifest
Push with limits
instancesmemorydisk
ParametersOnly these flags are editable in the form
Manifest
Path to manifest.
path
-f
Buildpack
Custom buildpack by name or git url.
string
-b
Start command
Startup command.
string
-c
Docker image
Docker image.
string
--docker-image-o
Instances
Number of instances.
integer
-i
Memory limit
Memory limit, e.g. 512M.
string
-m
Disk limit
Disk limit, e.g. 1G.
string
-k
Hostname
Hostname.
string
--host-name-n
Domain
Domain.
string
-d

cf logs

App logs

Trail or show recent logs for an app.

App logsExample values, fixed in this page — nothing here reaches a terminal
Basic
App name*
string
Recent only
--recent
TasksEach one presets the form for one job
Dump recent logs
app_namerecent
Tail logs
app_name
ParametersOnly these flags are editable in the form
App name
Name of the app.
string · positional 0
Recent only
Dump recent logs instead of tailing.
boolean
--recent

cf target

Target org and space

Set or view the targeted org or space. Run with no fields to view the current target.

Target org and spaceExample values, fixed in this page — nothing here reaches a terminal
TasksEach one presets the form for one job
View current target
Set org and space
orgspace
ParametersOnly these flags are editable in the form
Org
Organization to target.
string
-o
Space
Space to target.
string
-s
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed cf against its version. A form that does not match your version is not offered.