Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/universeclouddev/Universe/llms.txt

Use this file to discover all available pages before exploring further.

The Commands API bridges the Universe interactive console and the REST interface. Every command that works in the terminal (or via docker attach) also works here. The server captures all output lines produced by the command and returns them in the response body, making this endpoint ideal for automation, scripts, and remote administration dashboards. All requests require a Bearer token with ALL permission.
This endpoint executes commands on the node that receives your HTTP request. If you need to run a command on a specific remote node, use POST /api/cluster/nodes/{id}/command — though note that remote dispatch is not yet fully implemented in the current version.

Available Console Commands

All built-in Universe console commands are available through this endpoint:
CommandDescription
cluster statusShow cluster members and local node info.
cluster nodesList all connected nodes.
instance listList all instances with state, host, and port.
instance create <config>Create a new instance from a configuration.
instance stop <id>Stop an instance by its 6-character ID.
instance info <id>Show full details for an instance.
instance execute <id> <cmd>Send a command to an instance’s stdin.
config listList all loaded configurations.
config reloadReload configurations from ./configuration/.
template listList all local templates.
template sync <pattern> <node>Sync templates to another cluster node.
extension listShow installed and loaded extensions.
extension reloadTrigger onReload() on all extensions.
helpShow all available commands and their descriptions.

Endpoints

POST /api/commands/execute

Executes a console command and returns the captured output. Authentication: ALL permission required. Request Body
command
string
required
The full console command string to execute, exactly as you would type it in the terminal (e.g., cluster status, instance list, help).
Response — 200 OK
command
string
The command string that was executed, echoed back for confirmation.
output
string[]
Array of output lines produced by the command. Each element is one line of text. May be empty for commands that produce no output.
curl -X POST http://localhost:8080/api/commands/execute \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"command": "cluster status"}'
Example response:
{
  "command": "cluster status",
  "output": [
    "Cluster: universe-cluster",
    "Local Node: node-1 (master)",
    "Members: 2",
    "  → node-1 (127.0.0.1:6000) [LOCAL, MASTER]",
    "  → node-2 (192.168.1.10:6000)"
  ]
}
StatusMeaning
200Command executed. output may be empty if the command produced no lines.
401Missing or invalid Authorization header.
For an interactive, bidirectional console experience without polling, connect to the WebSocket console endpoint at WS /api/console. The WebSocket lets you send commands and receive streaming output in real time.

Build docs developers (and LLMs) love