Skip to content

Command line ​

merp is SetServer Panel's command line. It is also installed as setserver.

  • On the server, as root, it works directly: it uses the panel's database and the agent like the panel does. The activity log names it merp.
  • Anywhere else it uses an API key: run merp login --url https://panel.example.com:8443 and paste the key, or set MERP_URL and MERP_KEY.
  • In a site's terminal in the panel, both are already set, for that site only.

Commands ​

text
merp [--json] [--site DOMAIN] COMMAND ...

Sites
  merp site list
  merp site info [DOMAIN]
  merp site create DOMAIN [--mode static|php|proxy] [--php 8.3] [--port N]
  merp site delete DOMAIN --yes [--remove-files]
  merp site files [DOMAIN] [PATH]
  merp site cat [DOMAIN] PATH
  merp site upload [DOMAIN] LOCAL_FILE REMOTE_PATH
  merp site deploy [DOMAIN] --repo URL [--branch main] [--dir public_html] [--token-env VAR | --token-stdin]
  merp site logs [DOMAIN] [--log error|access|php]
SSL, databases, backups, scanner
  merp ssl status
  merp ssl issue [DOMAIN] [--no-www]
  merp db list
  merp db create NAME [--site DOMAIN]
  merp backup list [DOMAIN]
  merp backup create [DOMAIN] [--s3]
  merp scan start [DOMAIN]
  merp scan report [DOMAIN]
Server
  merp app list
  merp php list
  merp php settings VERSION
  merp user list
  merp audit [--limit 50]
  merp whoami
  merp ops                       every operation this key may run
  merp call OP [key=value ...]   run one operation by name
Remote use
  merp login --url https://panel.example.com:8443 [--key-stdin]
  merp logout
Break glass (on the server, as root)
  merp reset-admin [--username NAME] [--reset-2fa]
  merp reset-2fa USERNAME
  merp audit-verify

DOMAIN can be left out when --site or MERP_SITE (or the terminal's HP_SITE) gives it. --json prints the raw result for scripts.

Examples ​

bash
merp site create shop.example.com --mode php --php 8.3
merp db create shop_db --site shop.example.com
merp ssl issue shop.example.com
merp backup create shop.example.com --s3
merp --json site list | jq '.[].domain'

Other server commands ​

bash
sudo -u hostpanel hostpanel set-password --username NAME   # new password for a user
sudo /opt/hostpanel/bin/hostagent safe-mode on|off          # Safe Mode from the console
sudo /opt/hostpanel/bin/hostagent firewall-reset            # open the firewall again
systemctl status hostpanel hostagent                        # are the services running?
journalctl -u hostpanel -u hostagent -n 150 --no-pager      # logs

SetServer Panel documentation