DocsCLIdeployzy deploy

deployzy deploy

Deploy projects from the command line.

Deploy a project from a git repo, a prebuilt image, or the current directory — then stream the build logs until it's live.

First, authenticate with an API key (create one at deployzy.com/api-keys):

bash
deployzy authtoken sm_live_...

Deploy

bash
# From a GitHub repo

# From a prebuilt image (no build) deployzy deploy --image nginx:alpine --name proxy

# Upload + build the current directory deployzy deploy ./ ```

The command creates the project, deploys it, and streams logs until it reports running, printing the public URL.

Flags

FlagDescription
--repoGitHub repo (OWNER/NAME or https URL)
--imagePrebuilt image to run (e.g. nginx:alpine)
[dir]Local directory to upload as the build context
--nameProject name (defaults to the repo/image/dir name)
--subdomainPublic subdomain (defaults to a slug of the name)
--branchGit branch for --repo (default main)
-e, --envEnvironment variable KEY=VALUE (repeatable)
--no-followDon't stream logs; return immediately

Manage projects

bash
deployzy projects ls            # list your projects
deployzy projects rm api        # delete (by name, subdomain, or id)
deployzy logs api --follow      # stream deploy logs
deployzy env set api KEY=value  # set an env var (redeploy to apply)
deployzy env ls api             # list env vars
Self-hosted? Point the CLI at your API with SERVERME_API_URL=https://api.yourdomain.com.