Advanced

CLI Reference

The Ubot CLI is the primary way to manage the Ubot service and configuration from your terminal.

Command List

CommandDescription
ubot startStart Ubot on port 11490 (default).
ubot stopGracefully shutdown Ubot and its channels.
ubot restartStop and restart the Ubot service.
ubot statusShow current PID, port, and dashboard URL.
ubot logsPrint the last 50 lines of logs.
ubot logs -fTail logs in real-time.
ubot configDisplay the current configuration.
ubot config editOpen the config file in your default $EDITOR.
ubot config set <k> <v>Set a configuration value (e.g., ubot config set server.port 8080).
ubot doctorPerform a series of health checks (node version, network, DB, etc.).
ubot openOpen the dashboard in your default browser.
ubot versionShow the currently installed version.

Usage Examples

1. Checking Status

ubot status

Output:

✅ Ubot is running (PID: 14930)
📡 Port: 11490
🌍 Dashboard: http://localhost:11490

2. Changing the Port

ubot config set server.port 8080
ubot restart

3. Real-time Debugging

If you're developing custom modules, keep a terminal window open with:

ubot logs -f

Global vs Local

The ubot command is a globally symlinked wrapper for the ubot-core runtime. When you run make install, it ensures this command is available system-wide.