(Redirected from Mwcli)
Jump to navigation Jump to search

mw is a MediaWiki focused command line tool targeting developers.

It includes a development environment modelled after mediawiki-docker-dev and commands for interacting with other Wikimedia services, such as Gitlab, Gerrit, Toolhub etc.

screenshot of the mwcli tool mw command at version v0.6.0


Binaries for most OSs and CPU architectures are available on the releases page.

To install & update to the latest build on Linux or macOS, try the following:

MW_PLATFORM=$(uname | tr '[:upper:]' '[:lower:]') bash -c 'curl -s "${MW_PLATFORM}_amd64" -o mw && curl -s "${MW_PLATFORM}_amd64.sha256" -o mw.sha256 && echo $(cat mw.sha256 | tr -d '\n') " mw" > mw.sha256 && shasum -a 256 -c mw.sha256'
chmod +x mw
# Recommended: move mw to somewhere in PATH, e.g. /usr/local/bin/mw


Some commands have their own documentation pages:

$ mw
Developer utilities for working with MediaWiki

  mw [command]

Available Commands:
  codesearch  MediaWiki code search
  config      Display or change configuration settings
  docker      The MediaWiki-Docker-Dev like development environment     (alias: dev)
  gerrit      Wikimedia Gerrit
  gitlab      Wikimedia Gitlab instance
  help        Help about any command
  toolhub     Wikimedia Toolhub
  update      Checks for and performs updates
  version     Output the version information

  -h, --help   help for mw

Use "mw [command] --help" for more information about a command.


Thank you for checking out mw CLI! Please open a Phabricator task to send us feedback. We're looking forward to hearing it.