moin

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.

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.

You can also setup logging there if you don't like the builtin logging configuration.

moin ... account check ...

--usersunique Makes user names unique (by appending the ID to name and
email, disabling subscribed pages and disabling all, but
the latest saved user account); default is to SHOW what
will be happening, you need to give the --save option to
really do it.
--emailsunique Makes user emails unique; default is to show, use --save
to save it.
--wikinames Convert user account names to wikinames (camel-case).
--lastsaved Normally the account most recently USED will survive and
the others will be disabled. Using --lastsaved, the
account most recently SAVED will survive.
--save If specified as LAST option, will allow the other
options to save user accounts back to disk. If not
specified, no settings will be changed permanently.
--removepasswords Remove pre-1.1 cleartext passwords from accounts.

moin ... account create ...

--name=NAME Set the wiki user name to NAME.
--alias=ALIAS Set the wiki user alias name to ALIAS (e.g. the real
name if NAME is cryptic).
--email=EMAIL Set the user's email address to EMAIL.
--password=PASSWORD Set the user's password to PASSWORD (either cleartext
or {SHA1}...).

moin ... account disable ...

--uid=UID Disable the user with user id UID.
--name=NAME Disable the user with user name NAME.

moin ... account resetpw ...

--uid=UID Reset the password of the user with user id UID to the given password
--name=NAME Reset the password of the user with user name to the given password

moin ... cli show ...

moin ... export dump ...

--target-dir=/your/output/path to specify the directory we write the html files to
--username=name of the user to perform the dump with

To package all user created pages, do not specify --pages or --search.

moin ... import irclog ...

may be you need a dir with ircfiles

moin ... index build ...

it's for building the xapian search index. crashs if xapian isn't installed

moin ... maint cleancache ...

removes cache files

moin ... maint cleanpage ...

create a Linux shell script that can be used (after reviewing it) to clean up in the data_dir.

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.

moin ... maint globaledit ...

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.

moin ... maint mailtranslators ...

For moin development use only (mails the translators to notify them e.g. about a new release).

moin ... maint makecache ...

creates cache files based on event-log and pagelinks

moin ... maint mkpagepacks ...

NEVER EVER RUN THIS ON A REAL WIKI!!! This must be run on a local testwiki

moin ... migration data ...

moin ... server standalone ...

Starts the standalone server (and offers more options that just using ./wikiserver.py).

# See there for more infos:
moin server standalone --help

moin ... xmlrpc mailimport ...

e.g.

# This is the configuration file for the mail import client
# This secret has to be known by the wiki server
mail_import_secret = u"foo"
# The target wiki URL
mail_import_url = u"http://localhost/?action=xmlrpc2"