Version: v1.2

vela def render

Render X-Definition.

Synopsis

Render X-Definition with cue format into kubernetes YAML format. Could be used to check whether the cue format definition is working as expected. If a directory is used as input, all cue definitions in the directory will be rendered.

  1. vela def render DEFINITION.cue [flags]

Examples

  1. # Command below will render my-webservice.cue into YAML format and print it out.
  2. > vela def render my-webservice.cue
  3. # Command below will render my-webservice.cue and save it in my-webservice.yaml.
  4. > vela def render my-webservice.cue -o my-webservice.yaml# Command below will render all cue format definitions in the ./defs/cue/ directory and save the YAML objects in ./defs/yaml/.
  5. > vela def render ./defs/cue/ -o ./defs/yaml/

Options

  1. -h, --help help for render
  2. --message string Specify the header message of the generated YAML file. For example, declaring author information.
  3. -o, --output string Specify the output path of the rendered definition YAML. If empty, the definition will be printed in the console. If input is a directory, the output path is expected to be a directory as well.

SEE ALSO

Go Back to CLI Commands Homepage.

Auto generated by spf13/cobra on 12-Jan-2022, refer to script in KubeVela.