Skip to content

CLI ​

moonshed <command> [-e ENV] [--runtime DIR]

Commands ​

CommandWhat it does
serveRuns Moonshed in the foreground. The service runs this for you.
installRegisters Moonshed as a systemd unit (Linux) or a Windows service, and starts it. Needs root or Administrator.
uninstallStops and removes the service. The runtime folder is kept.
reset-password <user>Sets and prints a new random password for a user.
versionPrints the version.

Flags ​

FlagEnvironment variableMeaning
-e ENVENVdevelopment or production. Picks runtime/config/<ENV>.yaml. Required for serve and install.
--runtime DIRRUNTIME_DIRThe runtime folder. Defaults to runtime/ next to the binary, then ./runtime.

install saves both in the service definition, so the service starts with the same environment and runtime folder.

Examples ​

bash
sudo ./moonshed install -e production
./moonshed serve -e production --runtime /srv/moonshed
sudo ./moonshed reset-password admin

Released under the AGPL-3.0 license.