mw tools exec
editExecute commands as a tool
Synopsis
edit
Tools exec
editAllows you to run commands on tools.
This includes running as your user, or as a tool user by specifying –tool
Documentation
editmw tools exec [flags] [command & arguments] -- [command flags]
Examples
editexec whoami # Run the whoami command as you on tools exec --tool=mytool whoami # Run the whoami command as the specified tool exec --tool=mytool rm foo # Remove the file called foo from the tool exec --tool=mytool webservice -- --backend=kubernetes start # Starts a kubernetes webservice on mytool exec --tool=mytool webservice restart # Restart the webservice of mytool exec --tool=mytool webservice shell # Start a shell in a webservice pod for mytool exec --tool=mytool -- kubectl get pods -o=json 2> /dev/null # Get JSON output of pods of mytool, ignoring stdout
Options
edit-t, --tool string Tool to execute command on
Options inherited from parent commands
edit--help Help for this command --no-interaction Do not ask any interactive questions -v, --verbose count Increase output verbosity. Example: --verbose=2 or -vv
SEE ALSO
edit- mw tools - Interact with any Wikimedia “Tool”