Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Commands

CommandDoes
moekura serveruns the web server, plus job workers unless jobs.run_in_serve = false; migrates first unless database.auto_migrate = false
moekura workerruns job workers only
moekura tagger [--check]runs the tagger (a build with the tagger feature); --check only loads ONNX Runtime
moekura migrateapplies pending migrations and exits
moekura check-configvalidates the configuration and prints it, secrets redacted
moekura openapiprints the API’s OpenAPI description
moekura admin create-user NAME [--role ROLE] [--email E]creates an account; asks for the password, or reads one line from standard input
moekura admin set-role NAME ROLEchanges someone’s role
moekura admin create-invite [--uses N] [--expires-days D]makes an invite code, shown once
moekura admin settingsshows the site settings
moekura admin settings set KEY VALUEchanges one; VALUE is JSON, or else a plain string
moekura admin regenerate-media (--all | IDS…)remakes thumbnails and samples, and rereads the files’ metadata
moekura admin recount-tagsrecomputes every tag’s post count
moekura admin tag-backlog [--all] [--limit N]queues posts the tagger hasn’t seen (or, with --all, every post)
moekura admin send-test-mail ADDRESSsends a test message through the [mail] settings
moekura admin import DIR --uploader NAME …imports a folder of files; see Bulk import
moekura admin seed --posts N [--tags T] [--seed S]fills a test database with synthetic posts for load testing; see Scaling
moekura admin bench [--check] [--explain NAME]times a suite of searches against the database
moekura admin bench-http [--url URL] [--concurrency N] [--check-ms MS]times pages and API responses from a running server; see Scaling

Every command takes --config PATH. Role and setting changes made here appear in the moderation log.