Back to Meshery

mesheryctl-model-generate

docs/content/en/reference/mesheryctl/model/generate.md

1.0.181.6 KB
Original Source

mesheryctl model generate

Generate models from a file

Synopsis

Generate models by specifying the directory, file, or URL. You can also provide a template JSON file and registrant name

<pre class='codeblock-pre'> <div class='codeblock'> mesheryctl model generate [flags] </div> </pre>

Examples

Generate a model from a CSV directory

<pre class='codeblock-pre'> <div class='codeblock'> mesheryctl model generate --f [path-to-csv-directory] </div> </pre>

Generate a model from a URL based on a JSON template

<pre class='codeblock-pre'> <div class='codeblock'> mesheryctl model generate --f [URL] -t [path-to-template.json] </div> </pre>

Generate a model from a URL based on a JSON template skipping registration

<pre class='codeblock-pre'> <div class='codeblock'> mesheryctl model generate --f [URL] -t [path-to-template.json] -r </div> </pre>

Options

<pre class='codeblock-pre'> <div class='codeblock'> -f, --file string Specify path to the file or directory -h, --help help for generate -r, --register Skip registration of the model -t, --template string Specify path to the template JSON file </div> </pre>

Options inherited from parent commands

<pre class='codeblock-pre'> <div class='codeblock'> --config string path to config file (default "/home/runner/.meshery/config.yaml") -v, --verbose verbose output </div> </pre>

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.