Back to Meshery

Command Reference

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

1.0.1810.6 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 - Service Mesh Lifecycle & Configuration Management: provisioning and configuration best practices
  • mesheryctl perf - Service Mesh Performance Management: Workload and service mesh performance characterization
  • mesheryctl pattern - Service Mesh Pattern Configuration & Management: Service mesh patterns and Open Application Model integration
  • mesheryctl app - Service Mesh Application Management
  • mesheryctl filter - Data Plane Intelligence: Registry and configuration of WebAssembly filters for Envoy (experimental feature)

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.
--silentSilently create Meshery's configuration file with default settings.
stopStop Meshery
--resetReset Meshery’s configuration file to default settings.
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
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.
loginAuthenticate with the Meshery Provider of your choice: the Local Provider or a Remote Provider.
logoutInvalidate current session with your Meshery Provider.
checkRun system checks for both pre and post mesh deployment scenarios on Meshery
--preflightRun 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
--reportRuns diagnostic checks and bundles up to open an issue if present
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
--adapterscreate 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"
deletedelete an existing context from Meshery config file
viewview the configurations of the current context
--contextview 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

Service Mesh 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 service mesh performance test configuration file (default: empty string).
--load-generatorChoice of load generator - fortio (OR) wrk2 (default: fortio).
--meshName of the service mesh.
--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.
profileList the available performance profiles.
--page(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(optional) List next set of performance results with --page (default = 1) (default 1).
--view(optional) View more information of the performance test results.

Service Mesh Lifecycle and Configuration Management

Main CommandCommandFlagFunction
meshLifecycle management of service meshes
validatevalidate service mesh 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
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

Service Mesh Pattern Configuration and Management

Main CommandCommandFlagFunction
pattern
--file, -f(required) path to pattern file.
listdisplays a list of available pattern files
--all, -ashow all pattern file metadata
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
deleteDeprovision the resources/ service mesh using the pattern file
--file, -fDeletes the resources that were created, using pattern file

Service Mesh Application Management

Main CommandCommandFlagFunction
appService Mesh application management
--file, -f(required) path to pattern file
onboardonboard application
--file, -fonboard application with application file
offboardoffboard application
--file, -fOffboard application with an application file
listdisplays a list of available applications
viewdisplays the contents of a application
--all, -ashow all application file content
-o jsondisplay the content of an application in json format

Data Plane Intelligence (experimental feature)

Main CommandCommandFlagFunction
filterService Mesh Filter Management (experimental feature)
--file, -f(required) path to WASM file [GitHub links only supported]
applyApply WASM file to deploy a filter
deleteDelete filter from Meshery
listList all WASM filters
viewView the specified WASM filter