tanzu appsv2 (Tanzu Platform for Kubernetes)

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 apps
  • tanzu context type (Tanzu Platform for Kubernetes): see below

Usage

CLI plugin: appsv2 | Target: global | Primarily used for: App development | Release Notes

  tanzu apps [command]

Aliases

  apps, app

Commands

  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.

Global Flags

  -h, --help       help for app
      --no-color   deactivate color, bold, animations, and emoji output

tanzu apps config

A ContainerApp is the representation of an application to be deploy in a TAP infrastructure

Usage

  tanzu apps config [command]

Aliases

  config, conf, configure

Commands

  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

Flags

  -h, --help             help for config

Global Flags

  --no-color   deactivate color, bold, animations, and emoji output

tanzu apps config build

The ContainerApp Build describes where to build the app from and how to do it

Usage

  tanzu apps config build [command]

Commands

  buildpacks     ContainerApp build.buildpacks configuration
  non-secret-env ContainerApp build.nonSecretEnv configuration
  path           ContainerApp build.path configuration
  type           ContainerApp build.buildpacks configuration

Flags

  -h, --help   help for build

tanzu apps config build buildpacks

Sets or deletes the app buildpacks, to build the app with it

Usage
  tanzu apps config build buildpacks [ACTION] [flags]
Aliases
  buildpacks, buildpack
Flags
  -a, --app string   application to be updated
  -h, --help         help for buildpacks
Examples
  tanzu apps config build buildpacks set
  tanzu apps config build buildpacks delete

tanzu apps config build non-secret-env

Set or delete app build configuration environment variables (sensitive information should not be set using this command)

Usage
  tanzu apps config build non-secret-env [ACTION] [VALUE] [flags]
Aliases
  non-secret-env, nse
Flags
  -a, --app string   application to be updated
  -h, --help         help for non-secret-env
Examples
  #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

tanzu apps config build path

Sets or deletes the app build path where it is going to be built

Usage
  tanzu apps config build path [ACTION] [VALUE] [flags]
Flags
  -a, --app string   application to be updated
  -h, --help         help for path
Examples
  tanzu apps config build path set ./module/submodule
  tanzu apps config build path delete

tanzu apps config build type

Sets or deletes the app build type, how the app is going to be built

Usage
  tanzu apps config build type [ACTION] [VALUE] [flags]
Flags
  -a, --app string   application to be updated
  -h, --help         help for type
Examples
  tanzu apps config build type set

tanzu apps config contact

Sets or deletes the app contact information

Usage

  tanzu apps config contact [ACTION] [VALUE] [flags]

Flags

  -a, --app string   application to be updated
  -h, --help         help for contact

Examples

  tanzu apps config contact set email
  tanzu apps config contact delete email

tanzu apps config non-secret-env

Set or delete app configuration environment variables (sensitive information should not be set using this command)

Usage

  tanzu apps config non-secret-env [ACTION] [VALUE] [flags]

Aliases

  non-secret-env, nse

Flags

  -a, --app string   application to be updated
  -h, --help         help for non-secret-env

Examples

  #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

tanzu apps config scale

Set or delete app replicas and/or resources

  • Replicas can be set by providing an integer >= 0
  • CPU can be set by providing an integer > 0 (MilliCPU)
  • Memory can be set by providing an integer > 0 (Megabytes)

Usage

  tanzu apps config scale [ACTION] [VALUE] [flags]

Flags

  -a, --app string   application to be updated
  -h, --help         help for scale

Examples

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

tanzu apps config servicebinding

Sets or deletes the app ServiceBinding

Usage

  tanzu apps config servicebinding [ACTION] [VALUE] [flags]

Flags

  -a, --app string   application to be updated
  -h, --help         help for servicebinding

Examples

  tanzu apps config servicebinding set userdb=mysql
  tanzu apps config servicebinding delete userdb

tanzu apps get

Usage

tanzu apps get [name] [flags]

Flags

  -h, --help             help for get
  -n, --namespace name   kubernetes namespace (defaulted from kube config)

Examples

tanzu apps get NAME

tanzu apps init

Initialize the app default configuration

Usage

  tanzu apps init [name] [flags]

Flags

  -p, --build-path string   build path of the app
  -t, --build-type string   build type of the app
  -h, --help                help for init

Examples

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

tanzu apps list

Lists all of the applications running in a Space.

Usage

  tanzu apps list [flags]

Aliases

  list, ls

Flags

  -h, --help   help for list

Examples

  tanzu apps list

tanzu apps replicas

Lists all replicas of the applications deployed in a Space.

Usage

  tanzu apps replicas <name> [flags]

Aliases

  replicas, replica, rep, reps

Flags

  -h, --help             help for replicas
  -n, --namespace name   kubernetes namespace (defaulted from kube config)

Examples

  tanzu apps replicas NAME
check-circle-line exclamation-circle-line close-line
Scroll to top icon