cf
Cloud Foundry CLI for application deployment
TLDR
Login to Cloud Foundry
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 Foundrypush
Deploy applicationapps
List applications in spacelogs
View application logsscale
Scale application instancesstart, stop, restart
Manage application statedelete
Delete applicationservices
List service instancescreate-service
Create service instancebind-service
Bind service to applicationenv
Show environment variablesssh
SSH into application containerorgs, spaces
List organizations/spaces
CAVEATS
Use cf v8 (current supported version). Run `cf help -a` for all commands. Interactive password prompts have issues in Cygwin/Git Bash.
