Files
uncloud/docs/docs/2-getting-started/1-install-cli.md
T

2.9 KiB

Install CLI

Install the Uncloud command-line utility to manage your machines and deploy apps using uc commands. You will run uc locally so choose the appropriate installation method for your operating system.

:::info NOTE

Windows is not natively supported yet, but you can install and run uc in a WSL terminal by following the instructions for Linux. :::

Homebrew (macOS, Linux)

If you have Homebrew package manager installed, this is the recommended installation method on macOS and Linux:

brew install psviderski/tap/uncloud

To upgrade to the latest version:

brew upgrade uncloud

Install script (macOS, Linux)

For a quick automated installation, use the install script:

curl -fsS https://get.uncloud.run/install.sh | sh

The script will:

  • Detect your operating system and architecture
  • Download the appropriate latest binary from GitHub releases
  • Install it to /usr/local/bin/uncloud using sudo (you may need to enter your user password)
  • Create a shortcut uc in /usr/local/bin for convenience

Don't like curl | sh? You can download and review the install script first and then run it:

curl -fsSO https://get.uncloud.run/install.sh
cat install.sh
sh install.sh

GitHub download (macOS, Linux)

You can manually download and use a pre-built binary from the latest release on GitHub.

```shell curl -L https://github.com/psviderski/uncloud/releases/latest/download/uncloud_macos_arm64.tar.gz | tar xz mv uncloud uc ``` ```shell curl -L https://github.com/psviderski/uncloud/releases/latest/download/uncloud_macos_amd64.tar.gz | tar xz mv uncloud uc ``` ```shell curl -L https://github.com/psviderski/uncloud/releases/latest/download/uncloud_linux_amd64.tar.gz | tar xz mv uncloud uc ``` ```shell curl -L https://github.com/psviderski/uncloud/releases/latest/download/uncloud_linux_arm64.tar.gz | tar xz mv uncloud uc ```

You can use the ./uc binary directly from the current directory, or move it to a directory in your system's PATH to run it as uc from any location.

For example, move it to /usr/local/bin which is a common location for user-installed binaries:

sudo mv ./uc /usr/local/bin

Verify installation

After installation, verify that uc command is working:

uc --version

Next steps

Now that you have uc installed, you're ready to: