Skip to content

metabot CLI

The metabot command manages the MetaBot service lifecycle.

Installation

Installed automatically by the MetaBot installer to ~/.local/bin/metabot.

Commands

metabot update                      # pull latest code, rebuild, restart
metabot start                       # start with PM2
metabot stop                        # stop
metabot restart                     # restart
metabot logs                        # view live logs
metabot status                      # PM2 process status

Update

metabot update is the recommended way to update MetaBot. It performs:

  1. git pull — fetch latest code
  2. npm install && npm run build — rebuild
  3. pm2 restart — restart the service

All in one command.