1
## Please edit system and help pages ONLY in the master wiki!
2
## For more information, please see MoinMoin:MoinDev/Translation.
3
##master-page:Unknown-Page
4
##master-date:Unknown-Date
5
#acl -All:write Default
11
The `moin` command is installed when you used `setup.py`. If invoking from the shell prompt does not find the `moin` command, you can also customize and use `wiki/server/moin`. Look into that script, there are some pathes to configure.
13
E.g. if you only have one wiki or one wiki farm on your machine and you configure `sys.path` in the `moin` command script, you do not need to give `--config-dir=...` option with every invocation.
15
You can also setup logging there if you don't like the builtin logging configuration.
18
usage: moin [command] [general options] command subcommand [specific options]
21
--version show program's version number and exit
22
-h, --help show this help message and exit
23
-q, --quiet Be quiet (no informational messages)
24
--show-timing Show timing values [default: False]
25
--config-dir=DIR Path to the directory containing the wiki configuration
26
files. [default: current directory]
27
--wiki-url=WIKIURL URL of a single wiki to migrate e.g. localhost/mywiki/
29
--page=PAGE wiki page name [default: all pages]
33
moin ... account check ...
34
moin ... account create ...
35
moin ... account disable ...
36
moin ... account resetpw ...
40
moin ... export dump ...
41
moin ... export package ...
43
moin ... import irclog ...
45
moin ... index build ...
47
moin ... maint cleancache ...
48
moin ... maint cleanpage ...
49
moin ... maint globaledit ...
50
moin ... maint mailtranslators
51
moin ... maint makecache ...
52
moin ... maint mkpagepacks ...
53
moin ... maint reducewiki ...
56
moin ... migration data ...
58
moin ... xmlrpc mailimport ...
59
moin ... xmlrpc remote ...
62
Most commands need some general parameters before command subcommand:
63
--config-dir=/config/directory
64
Mandatory for most commands and specifies the directory that contains
65
your wikiconfig.py (or farmconfig.py).
67
--wiki-url=wiki.example.org/
68
Mandatory for most commands and specifies the url of the wiki you like
72
Most commands need additional parameters after command subcommand.
74
Sorry, but there is not much docs about that stuff yet, you can check
75
docs/CHANGES and the MoinMoin wiki site for more infos (or just try to
76
invoke some command/subcommand to see if it emits more help).
77
The code you invoke is contained in MoinMoin/script/command/subcommand.py,
78
so just reading the comments / source there might help you, too.
81
example for a default instance
83
moin --config-dir=/usr/share/moin/mywiki --wiki-url=http://webserver/mywiki migration data
85
== moin ... account check ... ==
88
--usersunique Makes user names unique (by appending the ID to name and
89
email, disabling subscribed pages and disabling all, but
90
the latest saved user account); default is to SHOW what
91
will be happening, you need to give the --save option to
93
--emailsunique Makes user emails unique; default is to show, use --save
95
--wikinames Convert user account names to wikinames (camel-case).
96
--lastsaved Normally the account most recently USED will survive and
97
the others will be disabled. Using --lastsaved, the
98
account most recently SAVED will survive.
99
--save If specified as LAST option, will allow the other
100
options to save user accounts back to disk. If not
101
specified, no settings will be changed permanently.
102
--removepasswords Remove pre-1.1 cleartext passwords from accounts.
105
== moin ... account create ... ==
107
--name=NAME Set the wiki user name to NAME.
108
--alias=ALIAS Set the wiki user alias name to ALIAS (e.g. the real
109
name if NAME is cryptic).
110
--email=EMAIL Set the user's email address to EMAIL.
111
--password=PASSWORD Set the user's password to PASSWORD (either cleartext
114
== moin ... account disable ... ==
116
--uid=UID Disable the user with user id UID.
117
--name=NAME Disable the user with user name NAME.
120
== moin ... account resetpw ... ==
122
--uid=UID Reset the password of the user with user id UID to the given password
123
--name=NAME Reset the password of the user with user name to the given password
126
== moin ... cli show ... ==
128
== moin ... export dump ... ==
130
--target-dir=/your/output/path to specify the directory we write the html files to
131
--username=name of the user to perform the dump with
134
== moin ... export package ... ==
136
-p PAGES, --pages=PAGES
137
Comma seperated list of pages to package.
138
-o OUTPUT, --output=OUTPUT
139
Output file for the package.
140
-s SEARCH, --search=SEARCH
141
Search string to match.
142
-u PACKAGE_USER, --user=PACKAGE_USER
143
User as whom the package operation will be performed
146
To package all user created pages, do not specify --pages or --search.
148
== moin ... import irclog ... ==
149
may be you need a dir with ircfiles
151
== moin ... index build ... ==
152
it's for building the xapian search index. crashs if xapian isn't installed
154
== moin ... maint cleancache ... ==
157
== moin ... maint cleanpage ... ==
158
create a Linux shell script that can be used (after reviewing it) to clean up in the data_dir.
160
It tries to classify the page directories into classes like trash and deleted and it will move those page dirs from their usual place to 2 directories (you have to create them!) trash and deleted.
162
== moin ... maint globaledit ... ==
163
This is primarily for moin development use for globally editing pages in a wiki (we use it for streamlining ACLs and metadata on the master wiki). If you like to use it, please read the sourcecode first.
165
== moin ... maint mailtranslators ... ==
166
For moin development use only (mails the translators to notify them e.g. about a new release).
168
== moin ... maint makecache ... ==
169
creates cache files based on event-log and pagelinks
171
== moin ... maint mkpagepacks ... ==
172
NEVER EVER RUN THIS ON A REAL WIKI!!! This must be run on a local testwiki
174
== moin ... maint reducewiki ... ==
176
moin --config-dir=/usr/share/moin/mywiki --wiki-url=localhost/mywiki maint reducewiki --target-dir=/tmp/target
178
== moin ... migration data ... ==
179
migrates data of pages to a newer version
181
moin --config-dir=/usr/share/moin/mywiki --wiki-url=http://wikiserver/mywiki migration data
183
== moin ... server standalone ... ==
184
Starts the standalone server (and offers more options that just using ./wikiserver.py).
186
# See there for more infos:
187
moin server standalone --help
189
== moin ... xmlrpc mailimport ... ==
192
# This is the configuration file for the mail import client
194
# This secret has to be known by the wiki server
195
mail_import_secret = u"foo"
197
# The target wiki URL
198
mail_import_url = u"http://localhost/?action=xmlrpc2"
201
== moin ... xmlrpc remote ... ==
202
needs a remotescriptconf.py