{
  "id": "cf",
  "name": "Cloud Foundry CLI",
  "homepage": "https://docs.cloudfoundry.org/cf-cli/",
  "description": "The official command line client for Cloud Foundry.",
  "icon": "SimpleIcons:cloudfoundry",
  "executables": [
    "cf"
  ],
  "dotfiles": {
    "paths": [
      "~/.cf/config.json"
    ],
    "exclude": [
      "~/.cf/plugins/"
    ],
    "secret": [],
    "side_effect": false,
    "secret_paths": [
      {
        "file": "~/.cf/config.json",
        "match": {
          "key_path": [
            "AccessToken",
            "RefreshToken",
            "UAAOAuthClientSecret"
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Cloud Foundry CLI",
    "description": "Push apps, read logs and set the target org and space. Login (credentials), services, routes and admin commands are left out.",
    "quality": "ai-draft",
    "base": "fig:cf",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/cf.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "push"
        ],
        "label": "Push an app",
        "description": "Push a new app or sync changes to an existing app. Run it from the app directory.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/cf.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "manifest",
            "label": "Manifest",
            "description": "Path to manifest.",
            "type": "path",
            "option": [
              "-f"
            ],
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "buildpack",
            "label": "Buildpack",
            "description": "Custom buildpack by name or git url.",
            "type": "string",
            "option": [
              "-b"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "command",
            "label": "Start command",
            "description": "Startup command.",
            "type": "string",
            "option": [
              "-c"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "docker_image",
            "label": "Docker image",
            "description": "Docker image.",
            "type": "string",
            "option": [
              "--docker-image",
              "-o"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "instances",
            "label": "Instances",
            "description": "Number of instances.",
            "type": "integer",
            "option": [
              "-i"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "memory",
            "label": "Memory limit",
            "description": "Memory limit, e.g. 512M.",
            "type": "string",
            "option": [
              "-m"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "disk",
            "label": "Disk limit",
            "description": "Disk limit, e.g. 1G.",
            "type": "string",
            "option": [
              "-k"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "host_name",
            "label": "Hostname",
            "description": "Hostname.",
            "type": "string",
            "option": [
              "--host-name",
              "-n"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "domain",
            "label": "Domain",
            "description": "Domain.",
            "type": "string",
            "option": [
              "-d"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "manifest",
            "label": "Push from a manifest",
            "fields": [
              "manifest"
            ],
            "required": []
          },
          {
            "id": "sized",
            "label": "Push with limits",
            "fields": [
              "instances",
              "memory",
              "disk"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "manifest",
              "instances",
              "memory",
              "disk"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "buildpack",
              "command",
              "docker_image",
              "host_name",
              "domain"
            ]
          }
        ]
      },
      {
        "path": [
          "logs"
        ],
        "label": "App logs",
        "description": "Trail or show recent logs for an app.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/cf.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "app_name",
            "label": "App name",
            "description": "Name of the app.",
            "type": "string",
            "position": 0,
            "min": 1,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "recent",
            "label": "Recent only",
            "description": "Dump recent logs instead of tailing.",
            "type": "boolean",
            "option": [
              "--recent"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "recent",
            "label": "Dump recent logs",
            "set": {
              "recent": [
                true
              ]
            },
            "fields": [
              "app_name",
              "recent"
            ],
            "required": [
              "app_name"
            ]
          },
          {
            "id": "tail",
            "label": "Tail logs",
            "fields": [
              "app_name"
            ],
            "required": [
              "app_name"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "app_name",
              "recent"
            ]
          }
        ]
      },
      {
        "path": [
          "target"
        ],
        "label": "Target org and space",
        "description": "Set or view the targeted org or space. Run with no fields to view the current target.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/cf.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "org",
            "label": "Org",
            "description": "Organization to target.",
            "type": "string",
            "option": [
              "-o"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "space",
            "label": "Space",
            "description": "Space to target.",
            "type": "string",
            "option": [
              "-s"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "view",
            "label": "View current target",
            "fields": [],
            "required": []
          },
          {
            "id": "set",
            "label": "Set org and space",
            "fields": [
              "org",
              "space"
            ],
            "required": [
              "org"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "org",
              "space"
            ]
          }
        ]
      }
    ]
  }
}
