Quickstart
Get your code online in 60 seconds. Three commands, one live URL — no SDK install, no DevOps.
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.
$ curl -fsSL https://leash.build/install.sh | sh
$ leash login
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.
$ cd my-app
$ leash init
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).
$ leash deploy
How deployment works
- Run
leash deployin your project directory. - The CLI auto-detects your framework and runs preflight checks locally.
- Your code is packaged into a container and built remotely.
- The container is deployed behind the Leash gateway with HTTPS and access control.
- You get a URL:
https://my-app-abc123.un.leash.build
Next
Restrict who can use it
Make the app org-only or keep it public. No code required — the gateway handles it.
Set secrets
Declare keys in .env.example, set values in the dashboard, read them with your language’s standard env-var API at runtime.
Do more with the SDK
Add integrations (Gmail, Calendar, Linear, HubSpot), dynamic env vars with rotation, server-side user identity.