Skip to main content
The Uncloud CLI (uc) is the main tool for managing your cluster. It lets you deploy services, manage machines, and control your infrastructure from the command line.

Installation

Download and install the latest version of the Uncloud CLI:
curl -fsSL https://uncloud.run/install.sh | sh

Command Structure

All Uncloud commands follow this pattern:
uc [global-flags] COMMAND [flags] [arguments]

Global Flags

These flags work with any command:
--connect
string
Connect to a remote cluster machine without using the config file.Supported formats:
  • ssh://user@host[:port] - Use built-in SSH library (default)
  • ssh+cli://user@host[:port] - Use system SSH command (supports ProxyJump)
  • tcp://host:port - Direct TCP connection
  • unix:///path/to/uncloud.sock - Unix socket connection
Can also be set with the UNCLOUD_CONNECT environment variable.
--uncloud-config
string
default:"~/.config/uncloud/config.yaml"
Path to the Uncloud configuration file.Can also be set with the UNCLOUD_CONFIG environment variable.
-c, --context
string
Name of the cluster context to use. Defaults to the current context.Can also be set with the UNCLOUD_CONTEXT environment variable.
--version
Print the version of the Uncloud CLI.
--help
Show help for any command.

Command Groups

Service Management

Deploy and manage containerized services:

Machine Management

Manage cluster machines:

Context Management

Switch between clusters:

Volume Management

Manage persistent data volumes:

DNS Management

Manage cluster domain names:

Other Commands

  • uc build - Build service images from Compose files
  • uc images - List images on cluster machines
  • uc ps - List all service containers

Getting Help

You can get help for any command by adding --help:
uc --help
uc machine --help
uc run --help

Examples

Initialize a new cluster

uc machine init [email protected]

Deploy a service

uc run nginx:latest -p 80/https

Deploy from a Compose file

uc deploy

View logs from all services

uc logs -f

Environment Variables

The CLI respects these environment variables:
  • UNCLOUD_CONNECT - Default connection string
  • UNCLOUD_CONFIG - Path to config file
  • UNCLOUD_CONTEXT - Default context name
  • UNCLOUD_AUTO_CONFIRM - Auto-confirm prompts (set to true for CI/CD)

Build docs developers (and LLMs) love