cf-cli

Generates Cloud Foundry CLI v8 commands for app deployment, service management, and troubleshooting.

Updated May 18, 2026
One-click install
npx skills add https://github.com/Melik1986/axon-erp-api --skill cf-cli-melik1986
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cf-cli
Source: https://github.com/Melik1986/axon-erp-api/tree/main/cursor/skills/cf-cli
Command: npx skills add https://github.com/Melik1986/axon-erp-api --skill cf-cli-melik1986

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Working with the Cloud Foundry CLI requires memorizing dozens of commands, flags, and manifest options across app lifecycle, services, routes, and org management. This Skill provides precise, runnable cf CLI v8 commands and manifests so you avoid constantly consulting cf help or outdated v6/v7 documentation. ## Core Features & Use Cases - App Lifecycle Commands: Construct correct cf push, scale, restage, rolling deployment, SSH, task, and log commands with proper v8 flags. - Services & Bindings: Create marketplace services, user-provided services, service keys, and bind them to apps with configuration parameters. - Manifests & MTA Deployment: Write manifest.yml files with variable substitution and deploy CAP/MTA archives using mbt build and the multiapps plugin's cf deploy. - Troubleshooting: Diagnose common failures like staging timeouts, route conflicts, and login errors using logs, events, tracing, and cf curl. - Use Case: You need to deploy a Node.js app with a Postgres backing service to a production space with zero downtime. The Skill gives you the exact sequence: login, target, create-service, push with --strategy rolling, bind-service, and restage. ## Quick Start Ask the assistant to generate the cf CLI commands needed to push your app with a bound database service to a specific org and space.

Frequently Asked Questions about cf-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I push an app to Cloud Foundry with cf CLI?▼

Use `cf push my-app` from your project directory, optionally with flags like `-b` for buildpack, `-i` for instances, `-m` for memory, and `-f` for a manifest. Add `--strategy rolling` for zero-downtime deployments or `--no-route` for worker apps.

How to bind a service to a Cloud Foundry app?▼

Run `cf bind-service my-app my-db` after creating the service with `cf create-service SERVICE PLAN NAME`. Binding injects credentials into the VCAP_SERVICES environment variable, and you must restage the app with `cf restage my-app` for changes to take effect.

Does cf CLI v8 support rolling deployments?▼

Yes, cf CLI v8 supports rolling deployments via `cf push my-app --strategy rolling`, backed by the CC API v3. You can cancel an in-progress deployment with `cf cancel-deployment my-app`. Versions v6 and v7 are no longer maintained.

How do I deploy an MTA archive to Cloud Foundry?▼

Install the multiapps plugin with `cf install-plugin multiapps -f` and the mbt build tool via npm. Build the archive with `mbt build`, then deploy using `cf deploy mta_archives/<app>_1.0.0.mtar`. Monitor progress with `cf mta-ops`.

Why does my cf push fail during staging?▼

Staging failures usually come from a wrong buildpack, missing files excluded by .cfignore, or exceeding CF_STAGING_TIMEOUT. Check `cf logs my-app --recent` first, verify the buildpack with `-b`, and enable tracing with CF_TRACE=true to inspect API responses.

How do I authenticate cf CLI in a CI/CD pipeline?▼

Use `cf auth "$CF_USERNAME" "$CF_PASSWORD"` for non-interactive authentication, or `cf auth --client-credentials` which reads the CF_USERNAME and CF_PASSWORD environment variables. Avoid `cf login -p` since the password is recorded in shell history.