Run Commands on a Server
Appliku allows you to run arbitrary shell commands on your servers directly from the dashboard. This is useful for debugging, inspecting logs, managing files, and performing ad-hoc maintenance tasks without needing to SSH into the server manually.
How to Run a Command
- Open the Appliku dashboard
- Navigate to the Servers tab
- Click on the server where you want to run a command
- Go to the Run Command section
- Type your command in the input field
- Click Run
The command output will be displayed on the page after execution.
Execution Context
Commands run as the app user on the server. This is the same user that runs your application containers and has access to the deployment directories.
Common Use Cases
Check disk usage
df -h
View running Docker containers
docker ps
Check application logs
docker logs --tail 50 <container_name>
Inspect memory usage
free -m
Check which processes are using the most resources
top -bn1 | head -20
Clean up unused Docker resources
docker system prune -f
List files in the application directory
ls -la /home/app/
Important Notes
- Commands run with the permissions of the app user. Some system-level operations may require elevated privileges.
- Long-running commands may time out. For tasks that take a long time, consider using
nohupor running them in the background. - Command output is captured and displayed in the dashboard. Very large outputs may be truncated.
- Use this feature responsibly -- running destructive commands (like removing Docker volumes) can affect your running applications.