Difference between revisions of "CommandLine"
Jump to navigation
Jump to search
(→Usage) |
|||
Line 44: | Line 44: | ||
= Credential mode = | = 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 | 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 | ||
− | <source lang='bash'> | + | <source lang='bash' highlight='1'> |
./run -h -u x | ./run -h -u x | ||
-e (--email) WERT : email | -e (--email) WERT : email |
Revision as of 05:21, 16 March 2020
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
The main purpose of transfer mode is to push pages from one wiki to another including all files on the page.
Example
Usage
./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