Name
kf push - Create a new App or apply updates to an existing one.
Synopsis
kf push APP_NAME [flags]
Examples
kf push myapp kf push myapp --buildpack my.special.buildpack # Discover via kf buildpacks kf push myapp --env FOO=bar --env BAZ=foo kf push myapp --stack cloudfoundry/cflinuxfs3 # Use a cflinuxfs3 runtime kf push myapp --health-check-http-endpoint /myhealthcheck # Specify a healthCheck for the app
Flags
--app-suffix=stringSuffix to append to the end of every pushed App.
--args=stringArrayOverride the args for the image. Can't be used with the command flag.
-b, --buildpack=stringUse the specified buildpack rather than the built-in.
-c, --command=stringStartup command for the App, this overrides the default command specified by the web process.
--container-registry=stringContainer registry to push images to.
--cpu-cores=stringNumber 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/.
-k, --disk-quota=stringSize of dedicated ephemeral disk attached to each App instance (for example 512M, 2G, 1T).
--docker-image=stringDocker image to deploy rather than building from source.
--dockerfile=stringPath to the Dockerfile to build. Relative to the source root.
--entrypoint=stringOverwrite the default entrypoint of the image. Can't be used with the command flag.
-e, --env=stringArraySet environment variables. Multiple can be set by using the flag multiple times (for example, NAME=VALUE).
--health-check-http-endpoint=stringHTTP endpoint to target as part of the health-check. Only valid if health-check-type is http.
-u, --health-check-type=stringApp health check type: http, port (default) or process.
-h, --helphelp for push
-i, --instances=int32If set, overrides the number of instances of the App to run, -1 represents non-user input. (default -1)
-f, --manifest=stringPath to the application manifest.
-m, --memory-limit=stringAmount of dedicated RAM to give each App instance (for example 512M, 6G, 1T).
--no-manifestDo not read the manifest file even if one exists.
--no-routePrevents the App from being reachable once deployed.
--no-startBuild but do not run the App.
-p, --path=stringIf specified, overrides the path to the source code.
--random-routeCreate a random Route for this App if it doesn't have one.
--route=stringArrayUse the routes flag to provide multiple HTTP and TCP routes. Each Route for this App is created if it does not already exist.
-s, --stack=stringBase image to use for to use for Apps created with a buildpack.
--taskPush an App to execute Tasks only. The App will be built, but not run. It will not have a route assigned.
-t, --timeout=intAmount of time the App can be unhealthy before declaring it as unhealthy.
--var=stringToStringManifest variable substitution. Multiple can be set by using the flag multiple times (for example NAME=VALUE).
--vars-file=stringArrayJSON or YAML file to read variable substitutions from. Can be supplied multiple times.
Inherited flags
These flags are inherited from parent commands.
--as=stringUsername to impersonate for the operation.
--as-group=stringsGroup to impersonate for the operation. Include this flag multiple times to specify multiple groups.
--config=stringPath to the Kf config file to use for CLI requests.
--kubeconfig=stringPath to the kubeconfig file to use for CLI requests.
--log-httpLog HTTP requests to standard error.
--space=stringSpace to run the command against. This flag overrides the currently targeted Space.