Skip to main content

vela def edit

Edit X-Definition.


Edit X-Definition in kubernetes. If type and namespace are not specified, the command will automatically search all possible results. By default, this command will use the vi editor and can be altered by setting EDITOR environment variable.

vela def edit NAME [flags]


# Command below will edit the ComponentDefinition (and other definitions if exists) of webservice in kubernetes
> vela def edit webservice
# Command below will edit the TraitDefinition of ingress in vela-system namespace
> vela def edit ingress --type trait --namespace vela-system


  -h, --help               help for edit
-n, --namespace string Specify which namespace the definition locates. (default "vela-system")
-t, --type string Specify which definition type to get. If empty, all types will be searched. Valid types: workflow-step, component, trait, policy, workload

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.