Upsun Cloud CLI

Product · Developer tool · Engineering & development by Upsun

Manage and deploy your Upsun Cloud projects from the terminal

A cross-platform command-line tool for developers to initialize, configure, and deploy applications on Upsun Cloud. It enables direct resource management and local-to-cloud tunneling for streamlined development workflows.

Launched
2026-11-05

Category: Developer Tools

Works with

Platforms
macOS, Linux, WSL, Windows, npm
Programming languages
Node.js, PHP, Python, Go, Java, Ruby,.NET
Integrations
GitHub, GitLab, Bitbucket
Deployment
Cloud
Supported OS (macOS)
Homebrew
Supported OS (Linux/WSL)
Bash script
  • Install via Homebrew, Scoop, npm, or Bash script
  • Initialize projects with 'upsun init' configuration
  • Manage CPU, RAM, and disk with 'upsun resources:set'
  • Open tunnels to live cloud services for local dev
  • Deploy directly with 'upsun push' command

Overview

Upsun Cloud CLI is a command-line interface designed for developers to manage their entire application lifecycle on the Upsun platform. It provides a unified tool for macOS, Linux, and Windows users to initialize projects, configure infrastructure via YAML, and deploy code directly from a local terminal. The CLI enables developers to manage cloud resources such as CPU, RAM, and disk allocation through simple commands like 'upsun resources:set'. It also facilitates local development by opening secure tunnels to live cloud services, allowing local code to interact with production-grade databases and caches. By supporting integrations with GitHub, GitLab, and Bitbucket, the CLI serves as a central hub for automating GitOps workflows and CI/CD processes.

Setup and Project Management

  • Cross-platform installation: Developers can install the CLI on macOS using Homebrew, Linux or WSL via a bash script, Windows via Scoop, or any platform via npm.
  • Account authentication: The 'upsun login' command authenticates the developer's local environment with their Upsun account.
  • Project creation: The 'upsun project:create' command allows users to spin up new cloud projects directly from their terminal.
  • Automated configuration generation: The 'upsun init' command generates the.upsun/config.yaml file required to define runtimes, services, and routes.

Development and Deployment

  • Resource allocation: The 'upsun resources:set' command enables developers to configure CPU, RAM, and disk allocation for their applications.
  • Local development tunnels: The 'upsun tunnel:open' command creates a connection between the local development environment and live cloud services.
  • Direct deployment: The 'upsun push' command commits configuration changes and deploys the application code to the cloud.
  • Integration management: The CLI supports adding source integrations for GitHub, GitLab, and Bitbucket to automate team workflows and CI/CD.

Use cases

  • Developers install the CLI to initialize new projects and generate required YAML configuration files automatically.
  • Engineers use the resource commands to precisely tune CPU and RAM allocations for their cloud environments.
  • DevOps teams integrate the CLI into their CI/CD pipelines to automate deployments and manage environment branches.
  • Local developers open tunnels to live cloud databases to test their code against real data without manual exports.

Specifications

Platforms
macOS, Linux, WSL, Windows, npm
Programming languages
Node.js, PHP, Python, Go, Java, Ruby,.NET
Integrations
GitHub, GitLab, Bitbucket
Deployment
Cloud
Supported OS (macOS)
Homebrew
Supported OS (Linux/WSL)
Bash script
Supported OS (Windows)
Scoop
Universal Installer
npm
Configuration Format
YAML (.upsun/config.yaml)
Deployment Method
Git-based (upsun push)

How it works

  1. Installation and Login: Install the tool using the preferred package manager for your OS (Homebrew, Scoop, or npm) and run 'upsun login' to authenticate.
  2. Project Initialization: Run 'upsun project:create' to start a new project or 'upsun init' in an existing directory to generate the required YAML configuration.
  3. Resource Configuration: Use 'upsun resources:set' to define the specific CPU, RAM, and disk requirements for the application.
  4. Deployment: Execute 'upsun push' to commit your configuration and deploy the application to the Upsun Cloud platform.

FAQ

How do I install the Upsun Cloud CLI?

You can install it on macOS via Homebrew, on Linux/WSL via a curl script, on Windows via Scoop, or globally via npm.

How does the CLI help with project configuration?

The 'upsun init' command generates the necessary.upsun/config.yaml file and any required.environment scripts for your services.

Can I connect my local code to cloud services?

You use the 'upsun tunnel:open' command to connect your local environment to live services like databases or caching layers.

Can I manage hardware resources through the CLI?

Yes, you can use the 'upsun resources:set' command to adjust the CPU, RAM, and disk sizes for your application.

CLI reference

Added by AntSpace from public sources (developer.upsun.com).

Related

More products by Upsun