[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],null,["# kf push\n\n### Name\n\n`kf push` - Create a new App or apply updates to an existing one.\n\n### Synopsis\n\n```\nkf push APP_NAME [flags]\n```\n\n### Examples\n\n```\nkf push myapp\nkf push myapp --buildpack my.special.buildpack # Discover via kf buildpacks\nkf push myapp --env FOO=bar --env BAZ=foo\nkf push myapp --stack cloudfoundry/cflinuxfs3 # Use a cflinuxfs3 runtime\nkf push myapp --health-check-http-endpoint /myhealthcheck # Specify a healthCheck for the app\n```\n\n### Flags\n\n`--app-suffix=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Suffix to append to the end of every pushed App.\n\n`--args=`\u003cvar translate=\"no\"\u003estringArray\u003c/var\u003e\n\n: Override the args for the image. Can't be used with the command flag.\n\n`-b, --buildpack=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Use the specified buildpack rather than the built-in.\n\n`-c, --command=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Startup command for the App, this overrides the default command specified by the web process.\n\n`--container-registry=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Container registry to push images to.\n\n`--cpu-cores=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Number of dedicated CPU cores to give each App instance (for example 100m, 0.5, 1, 2). For more information see https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/.\n\n`-k, --disk-quota=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Size of dedicated ephemeral disk attached to each App instance (for example 512M, 2G, 1T).\n\n`--docker-image=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Docker image to deploy rather than building from source.\n\n`--dockerfile=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Path to the Dockerfile to build. Relative to the source root.\n\n`--entrypoint=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Overwrite the default entrypoint of the image. Can't be used with the command flag.\n\n`-e, --env=`\u003cvar translate=\"no\"\u003estringArray\u003c/var\u003e\n\n: Set environment variables. Multiple can be set by using the flag multiple times (for example, NAME=VALUE).\n\n`--health-check-http-endpoint=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: HTTP endpoint to target as part of the health-check. Only valid if health-check-type is http.\n\n`-u, --health-check-type=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: App health check type: http, port (default) or process.\n\n`-h, --help`\n\n: help for push\n\n`-i, --instances=`\u003cvar translate=\"no\"\u003eint32\u003c/var\u003e\n\n: If set, overrides the number of instances of the App to run, -1 represents non-user input. (default -1)\n\n`-f, --manifest=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Path to the application manifest.\n\n`-m, --memory-limit=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Amount of dedicated RAM to give each App instance (for example 512M, 6G, 1T).\n\n`--no-manifest`\n\n: Do not read the manifest file even if one exists.\n\n`--no-route`\n\n: Prevents the App from being reachable once deployed.\n\n`--no-start`\n\n: Build but do not run the App.\n\n`-p, --path=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: If specified, overrides the path to the source code.\n\n`--random-route`\n\n: Create a random Route for this App if it doesn't have one.\n\n`--route=`\u003cvar translate=\"no\"\u003estringArray\u003c/var\u003e\n\n: Use the routes flag to provide multiple HTTP and TCP routes. Each Route for this App is created if it does not already exist.\n\n`-s, --stack=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Base image to use for to use for Apps created with a buildpack.\n\n`--task`\n\n: Push an App to execute Tasks only. The App will be built, but not run. It will not have a route assigned.\n\n`-t, --timeout=`\u003cvar translate=\"no\"\u003eint\u003c/var\u003e\n\n: Amount of time the App can be unhealthy before declaring it as unhealthy.\n\n`--var=`\u003cvar translate=\"no\"\u003estringToString\u003c/var\u003e\n\n: Manifest variable substitution. Multiple can be set by using the flag multiple times (for example NAME=VALUE).\n\n`--vars-file=`\u003cvar translate=\"no\"\u003estringArray\u003c/var\u003e\n\n: JSON or YAML file to read variable substitutions from. Can be supplied multiple times.\n\n### Inherited flags\n\nThese flags are inherited from parent commands.\n\n`--as=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Username to impersonate for the operation.\n\n`--as-group=`\u003cvar translate=\"no\"\u003estrings\u003c/var\u003e\n\n: Group to impersonate for the operation. Include this flag multiple times to specify multiple groups.\n\n`--config=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Path to the Kf config file to use for CLI requests.\n\n`--kubeconfig=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Path to the kubeconfig file to use for CLI requests.\n\n`--log-http`\n\n: Log HTTP requests to standard error.\n\n`--space=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Space to run the command against. This flag overrides the currently targeted Space."]]