Quickstart

Get your code online in 60 seconds. Three commands, one live URL — no SDK install, no DevOps.

1

Install the CLI and sign in

A single binary for macOS, Linux, and WSL. leash login opens your browser to authenticate with Google and stores a token locally.

Terminal

$ curl -fsSL https://leash.build/install.sh | sh

$ leash login

Learn more: CLI Installation
2

Initialize the project

Run this in your existing project directory. It writes .leash/config.json — commit that file so your teammates can deploy on clone.

Terminal

$ cd my-app

$ leash init

Learn more: Command Reference
3

Deploy

Leash auto-detects your framework — Next.js, Flask, Express, Go, Docker, or plain HTML. It builds a container and ships it. Your app gets a URL like https://my-app-abc123.un.leash.build (the suffix is auto-generated and immutable after first deploy).

Terminal

$ leash deploy

Learn more: Deploy Overview

How deployment works

  1. Run leash deploy in your project directory.
  2. The CLI auto-detects your framework and runs preflight checks locally.
  3. Your code is packaged into a container and built remotely.
  4. The container is deployed behind the Leash gateway with HTTPS and access control.
  5. You get a URL: https://my-app-abc123.un.leash.build