CLI commands should have checks to prevent destroying items, indexes or an existing wiki.
For example, if moin index-build is executed twice, each item will be included in the index twice.
Maybe there are others.
There is a note in the docs about index-build that needs to be updated if check has been added:
https://moin-20.readthedocs.io/en/latest/admin/index.html#moin-index-build
IMO there is a note missing in this doc to clear the index if it is corrupt but still in place:
https://moin-20.readthedocs.io/en/latest/admin/index.html#if-your-wiki-has-data-and-is-shut-down