CommandLine
Jump to navigation
Jump to search
https://github.com/WolfgangFahl/Mediawiki-Japi/issues/49 has (finally) introduced command line support. The CommandLine has two modes:
- Transfer mode
- Credential mode
Transfer mode
./run -h
Help
Mediawiki-Japi version 0.1.05
Please visit http://mediawiki-japi.bitplan.com for usage instructions
Mediawiki-Japi Version: 0.1.05
github: https://github.com/WolfgangFahl/Mediawiki-Japi
usage: java com.bitplan.mediawiki.japi.MediawikiMain
--cookie WERT : use given cookie for download
-c (--check) : check mode - tries access without writing to target
(Vorgabe: false)
-d (--debug) : debug
adds debugging output (Vorgabe: false)
-h (--help) : help
show this usage (Vorgabe: true)
-i (--imageLimit) N : the maximum number of images per page to push
(Vorgabe: 100)
-l (--login) : login to source wiki for access permission (Vorgabe:
false)
-p (--pages) STRING[] : the pages to be transferred
-s (--source) WERT : the source wiki
-t (--target) WERT : the target wiki
-u (--user) WERT : activates credential mode
use -u -h to see options
see http://mediawiki-japi.bitplan.com/index.php/Command
Line
-v (--version) : showVersion
show current version if this switch is used (Vorgabe:
false)
Credential mode
Credential mode is activated by using the -u option. If you just want to see the usage it's sufficient to supply an invalid username like x
./run -h -u x
-e (--email) WERT : email
-h (--help) : help
show this usage (Vorgabe: true)
-p (--password) WERT : password
-u (--user) WERT : username (Vorgabe: x)
-w (--wikiId) WERT : wiki id
-y (--store) : store without asking (Vorgabe: false)
Installation
./build