Custom Commands
Add custom shell commands to show their output on the server detail page.
- Server settings → Custom Commands
- Enter commands in JSON format
Basic Format
Section titled “Basic Format”{ "Display Name": "shell command"}Example:
{ "Memory": "free -h", "Disk": "df -h", "Uptime": "uptime"}Viewing Results
Section titled “Viewing Results”After setup, custom commands appear on server detail page and refresh automatically.
Special Command Names
Section titled “Special Command Names”server_card_top_right
Section titled “server_card_top_right”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"}Security
Section titled “Security”Commands run with SSH user permissions. Avoid commands that modify system state.