tanzu trait

Trait lifecycle management

Usage

  tanzu trait [command]

Aliases

  trait, traits, tr

Commands

  create      Create a trait with specified configuration
  delete      Delete a trait
  generate    Generate a trait manifest with specified configuration.
  get         Get details from a trait.
  list        List the traits in the current workspace.

Global Flags

      --no-color       deactivate color, bold, animations, and emoji output
      --project name   name of the project to use when creating or getting resources (default is project name from current Tanzu Platform context)

Flags

  -h, --help   help for trait

tanzu trait create

Create a trait with specified configuration.

Trait configuration options include:

  • Packages to be included in the trait (can be provided multiple times)

Usage

  tanzu trait create [name] [flags]

Examples

  tanzu trait create --file trait.yaml

Flags

      --dry-run          print kubernetes resources to stdout rather than apply them to the cluster, messages normally on stdout will be sent to stderr
  -f, --file file path   file path containing the description of a single trait. Use value "-" to read from stdin
  -h, --help             help for create
  -y, --yes              accept all prompts

tanzu trait delete

Delete a trait.

Usage

  tanzu trait delete [name] [flags]

Examples

  tanzu trait delete my-trait

Flags

  -f, --file file path   file path containing the description of a single trait to be deleted. Use value "-" to read from stdin
  -h, --help             help for delete
  -y, --yes              accept all prompts

tanzu trait generate

Generate a trait manifest with specified configuration.

Trait configuration options include: - Packages to be included in the trait (can be provided multiple times)

Usage

  tanzu trait generate [name] [flags]

Examples

  tanzu trait generate NAME
  tanzu trait generate NAME --package PACKAGE:CONSTRAINT

Flags

      --exclude-all       Add all the package values to "ExcludedKeys" list
  -h, --help              help for generate
  -p, --package strings   package to be included in the trait specification. (can be repeated, e.g., --package reference1 --package reference2)

tanzu trait get

Get details from a trait in the current workspace.

Usage

  tanzu trait get [name] [flags]

Examples

  tanzu trait get my-trait

Flags

  -e, --export          export Trait in yaml format
  -h, --help            help for get
  -o, --output string   output the Trait formatted. Supported formats: "json", "yaml", "yml"

tanzu trait list

List the traits in the current workspace.

Usage

  tanzu trait list [flags]

Examples

  tanzu trait list
  tanzu trait list --output yaml
  tanzu trait list --wide

Flags

  -h, --help            help for list
  -o, --output string   output the Traits formatted. Supported formats: "json", "yaml", "yml"
  -w, --wide            output the Trait list with additional information
check-circle-line exclamation-circle-line close-line
Scroll to top icon