Save this:
module.exports = {
cmd: (args) => {
// Here your command code
return "Example result.";
},
help: ` <command_name> <options> - description\n`
}
to packages/server_console/commands/<command_name>.js
.
cmd
should return the command result.help
can be multiple lines.