Suduxu
CLI

Server Commands

Manage the Suduxu server lifecycle, connected devices, and connection information.

The server command group is responsible for starting and stopping Suduxu, monitoring connected devices, and generating connection information for clients.

Start the Server

Start a Suduxu server instance.

suduxu server start

Runs the server in the current terminal.

suduxu server start --detached

Runs the server in the background.

The server must be running before devices can connect and before themes can be served. Although not multiple instances of the server can run in the CLI.


Check Server Status

Display the currently active network addresses.

suduxu server status

Example:

Server Status:
TCP Address: 127.0.0.1:9000
UDP Address: 127.0.0.1:9001
File Address: Not running
Control Address: 127.0.0.1:50676
suduxu server status --json

Example:

{
  "tcp": "127.0.0.1:9000",
  "udp": "127.0.0.1:9001",
  "file": null,
  "control": "127.0.0.1:50676"
}

Stop the Server

suduxu server stop

Stops the currently running Suduxu server.


List Connected Clients

suduxu server clients --all

Lists all connected devices.

suduxu server clients --id 1

Displays information for a specific client.

suduxu server clients --all --json

Returns client information as JSON.


Disconnect Clients

suduxu server disconnect --id 1

Disconnect a specific client.

suduxu server disconnect --all

Disconnect all connected clients.


Generate a Connection QR Code

Generate a QR code that devices can scan to connect to the current server.

suduxu server code connection.png

This command is useful for local development and testing because devices can connect instantly by scanning the generated image.


Command Summary

CommandDescription
suduxu server startStart the server
suduxu server start --detachedStart the server in the background
suduxu server statusShow active server addresses
suduxu server status --jsonShow active server addresses as JSON
suduxu server stopStop the server
suduxu server clients --allList all connected clients
suduxu server clients --id <ID>Show a specific client
suduxu server disconnect --id <ID>Disconnect a client
suduxu server disconnect --allDisconnect all clients
suduxu server code <FILE>Generate a connection QR code

On this page