mesheryctl model export

Export registered models

Synopsis

Export the registered model to the specified output type Documentation for models export can be found at https://docs.meshery.io/reference/mesheryctl/model/export

mesheryctl model export [flags]

Examples

Export a model by name

mesheryctl model export [model-name] -o [oci|tar] (default is oci)

Export a model by name in JSON type

mesheryctl model export [model-name] -t [yaml|json] (default is YAML)

Export a model by name in YAML type in a specific location

mesheryctl model export [model-name] -l [path-to-location]

Export a model by name in YAML type discarding components and relationships

mesheryctl model export [model-name] --discard-components --discard-relationships

Export a model version by name in YAML type

mesheryctl model export [model-name] --version [version (ex: v0.7.3)]

Options

-c, --discard-components (optional) whether to discard components in the exported model definition (default = false) -r, --discard-relationships (optional) whether to discard relationships in the exported model definition (default = false) -h, --help help for export -t, --output-format string (optional) format to display in [json|yaml] (default = yaml) (default "yaml") -l, --output-location string (optional) output location (default = current directory) (default "./") -o, --output-type string (optional) format to display in [oci|tar] (default = oci) (default "oci") -p, --page int (optional) List next set of models with --page (default = 1) (default 1) --version string (optional) model version to export (default = "")

Options inherited from parent commands

--config string path to config file (default "/home/runner/.meshery/config.yaml") -v, --verbose verbose output

See Also

Go back to command reference index, if you want to add content manually to the CLI documentation, please refer to the instruction for guidance.