RPGM Server comes with a command-line interface with several commands:
npm run backup
Create a new backup of the server content. More information on the Backups page. If no argument is provided, it will behave the same as with
--all. Possible arguments:
--all: Save database, apps and user files ;
--database: Save database ;
--apps: Save apps ;
--files: Save user files.
Arguments are cumulative.
npm run backup --database --apps will create a save with the database and the PGM apps, but without user files.
npm run config-tool
Small command line tool for configuring some settings for the config.yml file. The file will be completly replaced with a new one with default settings. Recommended to execute this command only on fresh install.
npm run create-admin
Command line tool for creating a new administrator.
Start the server in forever mode (if the server crashes, it will be immediately restarted).
Start the server in normal mode (it won't restart if it crashes).