LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

cf

Cloud Foundry CLI for application deployment

TLDR

Login to Cloud Foundry
$ cf login -a [api.example.com]
copy
Push application
$ cf push [app-name]
copy
List applications
$ cf apps
copy
View application logs
$ cf logs [app-name]
copy
Scale application
$ cf scale [app-name] -i [3]
copy
Create service instance
$ cf create-service [service] [plan] [name]
copy
Bind service to app
$ cf bind-service [app-name] [service-name]
copy

SYNOPSIS

cf [globaloptions] command [arguments] [commandoptions]

DESCRIPTION

cf is the Cloud Foundry CLI for managing applications and services on Cloud Foundry platforms. It handles the full application lifecycle including deployment, scaling, logging, and service binding across multiple cloud providers.Cloud Foundry uses a push-based deployment model where developers run `cf push` to upload application code, which is then built, containerized, and deployed automatically. Applications are organized into organizations and spaces, providing multi-tenant isolation. The CLI manages the interaction between developers and the Cloud Foundry API.Services such as databases, message queues, and caches are provisioned from a marketplace and bound to applications, with connection credentials injected via environment variables.

PARAMETERS

-a URL

API endpoint URL
-u user
Username
-p pass
Password
-o org
Organization
-s space
Space
-i num
Number of instances
-m memory
Memory limit (e.g., 256M)
-f manifest
Path to manifest file
--skip-ssl-validation
Skip SSL certificate verification

CONFIGURATION

~/.cf/config.json

CLI configuration including API endpoint, access tokens, and current org/space target.
manifest.yml
Application deployment manifest defining memory, instances, routes, and service bindings.

COMMANDS

login

Authenticate with Cloud Foundry
push
Deploy application
apps
List applications in space
logs
View application logs
scale
Scale application instances
start, stop, restart
Manage application state
delete
Delete application
services
List service instances
create-service
Create service instance
bind-service
Bind service to application
env
Show environment variables
ssh
SSH into application container
orgs, spaces
List organizations/spaces

INSTALL

brew install cf
copy

CAVEATS

Use cf v8 (current supported version). Run `cf help -a` for all commands. Interactive password prompts have issues in Cygwin/Git Bash.

SEE ALSO

kubectl(1), heroku(1), docker(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid