CF CLI Commands Reference
Authentication
bash
cf login -a <API> # Login with password
cf login -a <API> --sso # Login with SSO
cf logout # Logout
cf auth <USERNAME> <PASSWORD> # Authenticate
cf target # Show current target
cf target -o ORG -s SPACE # Switch org/space
Organizations and Spaces
```bash
Organizations
cf orgs # List organizations
cf create-org
Spaces
cf spaces # List spaces in current org
cf create-space
Applications
```bash
Push and manage
cf push
cf apps # List apps
cf app
Scaling
cf scale
Environment
cf env
Routes and Domains
```bash
Routes
cf routes # List all routes
cf app-routes
Domains
cf domains # List domains
cf create-domain
Services and Bindings
```bash
Services
cf marketplace # Show available services
cf services # List service instances
cf create-service
Bindings
cf bind-service
Service keys
cf create-service-key
Users and Roles
```bash
Users
cf create-user
Organization roles
cf org-users
Space roles
cf space-users
Quotas and Limits
```bash
Organization quotas
cf quotas # List quotas
cf create-quota
Space quotas
cf space-quotas # List space quotas
cf create-space-quota
Buildpacks
bash
cf buildpacks # List buildpacks
cf create-buildpack <NAME> <FILE> <POSITION> # Create
cf delete-buildpack <NAME> # Delete
cf update-buildpack <NAME> <FILE> # Update
Security Groups
bash
cf security-groups # List groups
cf create-security-group <GROUP> <RULES> # Create
cf delete-security-group <GROUP> # Delete
cf bind-security-group <GROUP> <ORG> <SPACE> # Bind
cf unbind-security-group <GROUP> <ORG> <SPACE> # Unbind
Advanced
```bash
Manifest
cf push -f manifest.yml # Deploy with manifest
SSH into app
cf ssh
SSH key management
cf enable-ssh
One-off tasks
cf run-task
For manifest syntax, see Manifest Reference.