A CLI tool which helps managing MediaWiki development environments.
Note
This tool is specifically built to work with mw-dev-kit and will not work in other development environments.
Requirements:
- uv
- for autocompletion: bash or zsh
Either use uv tool install git+https://github.com/SomeMWDev/mwutil, or clone and install the tool manually:
cd /path/to/mwutil
uv tool install . -eecho "{}" > /path/to/basedir/.mwutil.jsonBash:
uv tool install argcomplete
activate-global-python-argcomplete
echo 'eval "$(register-python-argcomplete mwutil)"' >> ~/.bashrc
source ~/.bashrcZsh:
uv tool install argcomplete
activate-global-python-argcomplete
echo 'eval "$(register-python-argcomplete mwutil)"' >> ~/.zshrc
source ~/.zshrcDumps will be stored in a subdirectory of the basedir, which can be configured via the dumpdir option in the JSON
config.
The default is dumps.
Create a dump:
mwutil dump create testDelete a dump:
mwutil dump delete testImport a dump:
mwutil dump import test