samwilson / mwcli

A command line client for MediaWiki wikis.
13 stars 0 forks source link

Add import:export command to move revisions between wikis #239

Open samwilson opened 11 months ago

samwilson commented 11 months ago

e.g. mwcli import:export --wiki from_wiki --towiki to_wiki page_or_category_name (maybe with mwcli export:import being an alias, because the order of wikis might be confusing).

Where page_or_category_name is either a page name or a category name. If a File NS page is given, it should copy the file as well as the page wikitext.

An additional --prefix option could be added that would indicate that the given page_or_category_name is a prefix and that everything under it should be copied.

--dry-run would probably also be useful.