Create, view, update, and delete applications on Tanzu Platform for Kubernetes.
Two Tanzu CLI plugins provide commands under tanzu apps
, depending on CLI context type:
kubernetes
context type (Tanzu Application Platform): see tanzu appstanzu
context type (Tanzu Platform for Kubernetes): see belowCLI plugin: appsv2
| Target: global
| Primarily used for: App development | Release Notes
tanzu apps [command]
apps, app
config ContainerApp definition configuration
get Get details about an application and its configuration
init Initialize the app default configuration
list Lists all of the applications running in a Space.
replicas Lists all replicas of the application.
-h, --help help for app
--no-color deactivate color, bold, animations, and emoji output
A ContainerApp is the representation of an application to be deploy in a TAP infrastructure
tanzu apps config [command]
config, conf, configure
build ContainerApp build configuration
contact ContainerApp contact configuration
non-secret-env ContainerApp config.nonSecretEnv configuration
scale ContainerApp scale resources configuration
servicebinding ContainerApp config.servicebinding configuration
-h, --help help for config
--no-color deactivate color, bold, animations, and emoji output
The ContainerApp Build describes where to build the app from and how to do it
tanzu apps config build [command]
buildpacks ContainerApp build.buildpacks configuration
non-secret-env ContainerApp build.nonSecretEnv configuration
path ContainerApp build.path configuration
type ContainerApp build.buildpacks configuration
-h, --help help for build
Sets or deletes the app buildpacks, to build the app with it
tanzu apps config build buildpacks [ACTION] [flags]
buildpacks, buildpack
-a, --app string application to be updated
-h, --help help for buildpacks
tanzu apps config build buildpacks set
tanzu apps config build buildpacks delete
Set or delete app build configuration environment variables (sensitive information should not be set using this command)
tanzu apps config build non-secret-env [ACTION] [VALUE] [flags]
non-secret-env, nse
-a, --app string application to be updated
-h, --help help for non-secret-env
#set (or update) a KEY/VALUE
tanzu apps config build non-secret-env set KEY=value
#delete a KEY/VALUE
tanzu apps config build non-secret-env delete KEY
Sets or deletes the app build path where it is going to be built
tanzu apps config build path [ACTION] [VALUE] [flags]
-a, --app string application to be updated
-h, --help help for path
tanzu apps config build path set ./module/submodule
tanzu apps config build path delete
Sets or deletes the app build type, how the app is going to be built
tanzu apps config build type [ACTION] [VALUE] [flags]
-a, --app string application to be updated
-h, --help help for type
tanzu apps config build type set
Sets or deletes the app contact information
tanzu apps config contact [ACTION] [VALUE] [flags]
-a, --app string application to be updated
-h, --help help for contact
tanzu apps config contact set email
tanzu apps config contact delete email
Set or delete app configuration environment variables (sensitive information should not be set using this command)
tanzu apps config non-secret-env [ACTION] [VALUE] [flags]
non-secret-env, nse
-a, --app string application to be updated
-h, --help help for non-secret-env
#set (or update) a KEY/VALUE
tanzu apps config non-secret-env set KEY=VAL
#delete a KEY/VALUE
tanzu apps config non-secret-env delete KEY
Set or delete app replicas and/or resources
tanzu apps config scale [ACTION] [VALUE] [flags]
-a, --app string application to be updated
-h, --help help for scale
Set or update replicas, cpu and memory (setting one or multiple keys is supported):
tanzu apps config scale set replicas=1 cpu=100 memory=1024
Delete replicas and memory (deleting one or multiple keys is supported):
tanzu apps config scale delete replicas memory
Sets or deletes the app ServiceBinding
tanzu apps config servicebinding [ACTION] [VALUE] [flags]
-a, --app string application to be updated
-h, --help help for servicebinding
tanzu apps config servicebinding set userdb=mysql
tanzu apps config servicebinding delete userdb
tanzu apps get [name] [flags]
-h, --help help for get
-n, --namespace name kubernetes namespace (defaulted from kube config)
tanzu apps get NAME
Initialize the app default configuration
tanzu apps init [name] [flags]
-p, --build-path string build path of the app
-t, --build-type string build type of the app
-h, --help help for init
Initialize an application in interactive mode:
tanzu apps init
Initialize a configuration for an application named ‘testapp’ to build from the current directory via buildpacks:
tanzu app init testapp --build-path . --build-type buildpacks
Lists all of the applications running in a Space.
tanzu apps list [flags]
list, ls
-h, --help help for list
tanzu apps list
Lists all replicas of the applications deployed in a Space.
tanzu apps replicas <name> [flags]
replicas, replica, rep, reps
-h, --help help for replicas
-n, --namespace name kubernetes namespace (defaulted from kube config)
tanzu apps replicas NAME