Skip to main content

vela def get

Get definition


Get definition from kubernetes cluster

vela def get NAME [flags]


# Command below will get the ComponentDefinition(or other definitions if exists) of webservice in all namespaces
> vela def get webservice
# Command below will get the TraitDefinition of annotations in namespace vela-system
> vela def get annotations --type trait --namespace vela-system


  -h, --help               help for get
-n, --namespace string Specify which namespace the definition locates. (default "vela-system")
-r, --revision string Get the specified version of a definition.
--revisions List revisions of the specified definition.
-t, --type string Specify which definition type to get. If empty, all types will be searched. Valid types: component, trait, policy, workload, workflow-step

Options inherited from parent commands

  -V, --verbosity Level   number for the log level verbosity
-y, --yes Assume yes for all user prompts


Go Back to CLI Commands Homepage.

Auto generated by spf13/cobra script in KubeVela.