lizard up

Upload the current directory and deploy it.

Usage

lizard up [flags]

up packages your working tree as a tarball, sends it to the build nodes, and deploys it. It forces sourceType=upload on the target service, streams build logs over SSE, and prints the live URL when finished.

If the current directory isn’t linked to a project yet, up runs init first. On a TTY that’s interactive; in a non-TTY (CI) environment it will not silently create a project — it errors and asks you to run lizard init --name <project> (or pass --name), to guard against a typo spawning an empty project.

Flags

FlagDescription
-s, --service <name>Target/create a specific service
--build-command <cmd>Override the build command
--start-command <cmd>Override the start command
--pre-deploy-command <cmd>Run once before each deploy
--port <number>Container port (0 = worker mode)
--region <code>Region to deploy in
-d, --detachStart the deploy and exit without streaming logs
-c, --ciCI-friendly output
--no-gitignoreUpload everything, ignoring .gitignore

Subcommands

lizard up status

Report the status of an in-progress upload deploy.

Examples

Deploy the current directory

lizard up

Deploy to a specific service with a custom start command and port

lizard up --service api --start-command "node server.js" --port 8080

Deploy headlessly in CI

export LIZARD_TOKEN=lzd_xxx
lizard init --name my-project
lizard up --ci --service api

See also