Back to Meshery

mesheryctl-system-context-view

docs/content/en/reference/mesheryctl/system/context/view.md

1.0.182.0 KB
Original Source

mesheryctl system context view

Display the current Meshery CLI configuration context

Synopsis

Display the current Meshery CLI context configuration. This command shows which Kubernetes cluster, platform, and provider Meshery is configured to communicate with. Use this to verify or debug your current CLI settings.

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

Examples

View the default context

<pre class='codeblock-pre'> <div class='codeblock'> mesheryctl system context view </div> </pre>

View a specified context

<pre class='codeblock-pre'> <div class='codeblock'> mesheryctl system context view context-name </div> </pre>

View a specified context using the --context flag

<pre class='codeblock-pre'> <div class='codeblock'> mesheryctl system context view --context context-name </div> </pre>

View configuration of all contexts

<pre class='codeblock-pre'> <div class='codeblock'> mesheryctl system context view --all </div> </pre> <pre class='codeblock-pre'> <div class='codeblock'> </div> </pre>

Options

<pre class='codeblock-pre'> <div class='codeblock'> --all Show configs for all of the context -c, --context string Show config for the context -h, --help help for view </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 -y, --yes (optional) assume yes for user interactive prompts. </div> </pre>

Screenshots

Usage of mesheryctl context view

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.