The Commands API bridges the Universe interactive console and the REST interface. Every command that works in the terminal (or viaDocumentation 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.
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:| Command | Description |
|---|---|
cluster status | Show cluster members and local node info. |
cluster nodes | List all connected nodes. |
instance list | List 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 list | List all loaded configurations. |
config reload | Reload configurations from ./configuration/. |
template list | List all local templates. |
template sync <pattern> <node> | Sync templates to another cluster node. |
extension list | Show installed and loaded extensions. |
extension reload | Trigger onReload() on all extensions. |
help | Show 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 BodyThe full console command string to execute, exactly as you would type it in the terminal (e.g.,
cluster status, instance list, help).The command string that was executed, echoed back for confirmation.
Array of output lines produced by the command. Each element is one line of text. May be empty for commands that produce no output.
- cluster status
- instance list
- help
- instance create
| Status | Meaning |
|---|---|
200 | Command executed. output may be empty if the command produced no lines. |
401 | Missing or invalid Authorization header. |