Back to Meshery

mesheryctl-system-context-create

docs/content/en/reference/references/mesheryctl/system/context/create.md

1.0.432.0 KB
Original Source

mesheryctl system context create

Create a new context (a named Meshery deployment)

Synopsis

Add a new context to Meshery config.yaml file.

<pre class='codeblock-pre'> <div class='codeblock'> mesheryctl system context create context-name [flags] </div> </pre>

Examples

Create new context

<pre class='codeblock-pre'> <div class='codeblock'> mesheryctl system context create [context-name] </div> </pre>

Create new context and provide list of components, platform & URL and set it as current context

<pre class='codeblock-pre'> <div class='codeblock'> mesheryctl system context create [context-name] --components [meshery-nsm] --platform [docker|kubernetes] --url [server-url] --set --yes </div> </pre>

Options

<pre class='codeblock-pre'> <div class='codeblock'> -a, --components stringArray List of components -h, --help help for create -p, --platform string Platform to deploy Meshery (docker or kubernetes) --provider string Provider to use with the Meshery server (run 'mesheryctl system provider list' to see options) -s, --set Set as current context -u, --url string Meshery Server URL with Port (default: http://localhost:9081) </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") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. </div> </pre>

Screenshots

Usage of mesheryctl context create

See Also

Go back to [command reference index]({{< ref "reference/references/mesheryctl/_index.md" >}}), if you want to add content manually to the CLI documentation, please refer to the [instruction]({{< ref "project/contributing/contributing-cli.md#preserving-manually-added-documentation" >}}) for guidance.