Forrest logo
tool overview
On this page you find all important commands for the CLI tool cf. If the command you are looking for is missing please ask our AI.

cf

cf is a command line tool used for interacting with cloud platforms, specifically Cloud Foundry. Cloud Foundry is an open-source platform as a service (PaaS) that allows developers to deploy, manage, and scale applications easily in the cloud.

The cf command line tool provides a way to interact with Cloud Foundry by offering various commands and options. Some common tasks you can perform with cf include deploying applications to the cloud, managing routes and services, monitoring application instances, and viewing logs.

Using the cf command, you can log in to a Cloud Foundry instance, target a specific organization and space, push applications to the cloud, bind services to your applications, scale instances up or down, and perform many other administrative actions related to cloud management.

The cf command line tool is compatible with a range of systems, including Windows, macOS, and Linux. It offers a streamlined interface to interact with Cloud Foundry, allowing developers and system administrators to efficiently manage their cloud-based applications and services.

List of commands for cf:

  • cf:tldr:02c8e cf: Log in to the Cloud Foundry API.
    $ cf login -a ${api_url}
    try on your machine
    explain this command
  • cf:tldr:2fcc1 cf: View a dump of recent app logs.
    $ cf logs ${app_name} --recent
    try on your machine
    explain this command
  • cf:tldr:7acf1 cf: Push an app using the default settings.
    $ cf push ${app_name}
    try on your machine
    explain this command
  • cf:tldr:7e978 cf: Run a script whose code is included in the app, but runs independently.
    $ cf run-task ${app_name} "${script_command}" --name ${task_name}
    try on your machine
    explain this command
  • cf:tldr:c3e5c cf: Start an interactive SSH session with a VM hosting an app.
    $ cf ssh ${app_name}
    try on your machine
    explain this command
  • cf:tldr:c4118 cf: Connect an application to a service.
    $ cf bind-service ${app_name} ${service_name}
    try on your machine
    explain this command
  • cf:tldr:d1ab9 cf: Create a service instance.
    $ cf create-service ${service} ${plan} ${service_name}
    try on your machine
    explain this command
  • cf:tldr:eddb7 cf: View the services available from your organization.
    $ cf marketplace
    try on your machine
    explain this command
tool overview