Skip to content

Custom Commands

Add custom shell commands to show their output on the server detail page.

  1. Server settings → Custom Commands
  2. Enter commands in JSON format
{
"Display Name": "shell command"
}

Example:

{
"Memory": "free -h",
"Disk": "df -h",
"Uptime": "uptime"
}

After setup, custom commands appear on server detail page and refresh automatically.

Display on home page server card (top-right corner):

{
"server_card_top_right": "your-command-here"
}

Use absolute paths:

{"My Script": "/usr/local/bin/my-script.sh"}

Pipe commands:

{"Top Process": "ps aux | sort -rk 3 | head -5"}

Format output:

{"CPU Load": "uptime | awk -F'load average:' '{print $2}'"}

Keep commands fast: Under 5 seconds for best experience

Limit output:

{"Logs": "tail -20 /var/log/syslog"}

Commands run with SSH user permissions. Avoid commands that modify system state.