Back to Meshery

Command Reference

docs/static/v0.6/reference/mesheryctl/index.html

1.0.1814.4 KB
Original Source

Command Reference

Categories and Command Structure

Meshery CLI commands are categorized by function, which are:

  • mesheryctl - Global flags and CLI configuration
  • mesheryctl system - Meshery Lifecycle and Troubleshooting
  • mesheryctl mesh - Cloud Native Lifecycle & Configuration Management: provisioning and configuration best practices
  • mesheryctl perf - Cloud Native Performance Management: Workload and cloud native performance characterization
  • mesheryctl pattern - Cloud Native Pattern Configuration & Management: cloud native patterns and Open Application Model integration
  • mesheryctl app - Cloud Native Application Management
  • mesheryctl filter - Data Plane Intelligence: Registry and configuration of WebAssembly filters for Envoy

Global Commands and Flags

CommandSubcommandFlagFunction
mesheryctlA global command that displays an overview of all commands.
--configconfigures Meshery with the meshconfig, generated with the help of user details to provide cluster access for public clouds(GKE/EKS).
--help, -hDisplays helpful information about any command.
--verbose, -vSets the log level to debug for verbose output and displays verboose/debug logs.
versionDisplays the version of the Meshery Client (mesheryctl) and the SHA of the release binary.
completionOutput shell completion code for the specified shell.

Meshery Lifecycle Management and Troubleshooting

Installation, troubleshooting and debugging of Meshery and its adapters

Main CommandArgumentsFlagFunction
systemLifecycle management of Meshery deployments
--context, -cTemporarily override your current context by specifying an alternative context as an argument.
startStart Meshery
--skip-update(optional) skip checking for new updates available in Meshery.
--resetReset Meshery’s configuration file to default settings.
--skip-browser(optional) skip opening of MesheryUI in browser.
--platform, -pplatform to deploy Meshery to.
stopStop Meshery
--resetReset Meshery’s configuration file to default settings.
--keep-namespace(optional) keep the Meshery namespace during uninstallation
--force(optional) uninstall Meshery resources forcefully
updatePull new Meshery images from Docker Hub. Does not update mesheryctl. This command may be executed while Meshery is running.
--skip-resetPull the latest manifest files
configConfigures Meshery to use a Kubernetes cluster.
--tokenPath to token for authenticating to Meshery API.
resetResets meshery.yaml file with a copy from Meshery repo
logsStarts tailing Meshery server debug logs
--follow, -f(Optional) Follow the stream of the Meshery's logs. Defaults to false.
restartrestart all Meshery containers, their instances and their connected volumes
--skip-update(optional) skip checking for new updates available in Meshery.
statusCheck status of Meshery, Meshery adapters, Meshery Operator and its controllers.
--verbose, -v(optional) Extra data in status table
dashboardOpen Meshery UI in browser.
--port-forward(optional) Use port forwarding to access Meshery UI
--skip-browser(optional) skip opening of MesheryUI in browser.
loginAuthenticate with the Meshery Provider of your choice: the Local Provider or a Remote Provider.
--provider, -pLogin Meshery with specified provider
logoutInvalidate current session with your Meshery Provider.
checkRun system checks for both pre and post mesh deployment scenarios on Meshery
--preflight, --preRun Pre-mesh deployment checks (Docker and Kubernetes)
--adapterRun checks on specific mesh adapter
--operatorVerify the health of Meshery Operator's deployment with MeshSync and Broker
--adaptersCheck status of meshery adapters
--componentsCheck status of Meshery components
system channelSwitch between release channels.
setSubscribe to release channel and version.
switchswitch release channel and version
viewview release channel and version
--all, -aview release channel and version
system contextDisplay the current context.
createcreate a new context in config.yaml file
--components, -acreate a new context in config.yaml file- specify the list of adapters to be added
--set, -screate a new context in config.yaml file- set as current context
--url, -ucreate a new context in config.yaml file- set Meshery server URL. Defaults to "https://localhost:9081"
--platform, -pPlatform to deploy Meshery
deletedelete an existing context from Meshery config file
viewview the configurations of the current context
--context, -cview the configurations of the specified context
--allif set, shows the configurations of all the contexts
switchconfigure mesheryctl to actively use one one context vs. the another context
listList all contexts present
system providerEnforce a provider. Choose between available Meshery providers
listList available providers from meshconfig
resetReset provider for current context to default (Meshery)
switchSwitch provider of context in focus and redeploy Meshery
viewView current provider value
--all, -aShow provider for all contexts
setSet provider to desired value
--forceForce set the provider

Cloud Native Performance Management

Main CommandArgumentsFlagFunction
perfPerformance Management and Benchmarking using Meshery CLI
--output-format, -oformat to display in json or yaml.
--token(required) Path to Meshery user's access token.
applyRuns Performance test using existing profiles or using flags.
--concurrent-requestsNumber of Parallel Requests (default: 1).
--durationLength of the test.
--filePath to cloud native performance test configuration file (default: empty string).
--load-generatorChoice of load generator - fortio (OR) wrk2 (default: fortio).
--meshName of the system under test.
--nameA memorable name for the test (default: random string).
--qpsQueries per second (default: 0) (0 - means to use the CPU unbounded to generate as many requests as possible).
--url(required/optional) URL of the endpoint send load to during testing.
--cert-path(optional) Path to the certificate to be used for the load test
--disable-cert(optional) Do not use certificate present in the profil
profileList all the available performance profiles
--page, -p(optional) List next set of performance profiles with --page (default = 1) (default 1).
--view(optional) View more information of the performance profile.
resultView the results of a performance profile.
--page, -p(optional) List next set of performance results with --page (default = 1) (default 1).
--view(optional) View more information of the performance test results.

Cloud Native Lifecycle and Configuration Management

Main CommandCommandFlagFunction
meshLifecycle management of cloud native infrastructure
validatevalidate configuration conformance to different standard specifications
--adapter, -a(required) adapter to use for validation. Defaults to "meshery-osm:10010"
--namespace, -nKubernetes namespace to be used for deploying the validation tests and sample workload
--spec, -s(required) specification to be used for conformance test. Defaults to "smi"
--tokenpath, -t(required) path to token for authenticating to Meshery API
removeRemove service mesh in the connected Kubernetes cluster
--namespace, -nKubernetes namespace to be used for removing a service mesh under a specific namespace
deployDeploy a service mesh into the cluster
--adapter, -a(required) adapter to use for validation. Defaults to "meshery-osm:10010"
--namespace, -nKubernetes namespace to be used for deploying the validation tests and sample workload
--tokenpath, -t(required) path to token for authenticating to Meshery API

Cloud Native Pattern Configuration and Management

Main CommandCommandFlagFunction
patternManage cloud native infrastructure using predefined patterns
applyapply pattern file will trigger deploy of the pattern file
--file, -fapply pattern file will trigger deploy of the pattern file and also supports file retrieval from GitHub
viewdisplays the contents of a specific pattern file
--all, -ashow all pattern file content
-o jsondisplay the content of a pattern in json format
listdisplays a list of available pattern files
--all, -ashow all pattern file metadata
deleteDeprovision cloud native infrastructure using a design /pattern file
--file, -fDeletes the resources that were created, using pattern file

Cloud Native Application Management

Main CommandCommandFlagFunction
appCloud native infrastructure and application management
importImport app manifests
--file, -fPath/URL to app file
--source-type, -sType of source file (ex. manifest / compose / helm)
onboardOnboard application
--file, -fOnboard application with application file
--skip-saveSkip saving an application
--source-type, -sType of source file (ex. manifest / compose / helm)
offboardOffboard application
--file, -fOffboard application with an application file
listDisplays a list of available applications
--verbose, -vDisplay full length user and app file identifiers
viewDisplays the contents of a application
--all, -aShow all application file content
--output-format, -oDisplay the content of an application in [json/yaml] format

Data Plane Intelligence

Main CommandCommandFlagFunction
filterService Mesh Filter Management
importUpload WASM filter file to Meshery Server
--name, -n(optional) filter name
--wasm-config, -w(optional) WASM configuration filepath/string
deleteDelete filter from Meshery Server
listList all WASM filters
--verbose, -vDisplay full length user and filter file identifiers
viewView the specified WASM filter
--all, -a(optional) view all filters available
--output-format, -o(optional) format to display in [jsonyaml] (default "yaml")

Recent Discussions with "mesheryctl" Tag