Skip to main content
Outcome: your project runs on your Levelrail server, with its database connected, and up prints the app’s URL.
Before you start: a running Levelrail server (Getting started), levelrail-cli on your machine (Installing just the CLI), and your code pushed to a git remote.
If your project is in a git repository with a remote, three commands take it from your laptop to a running app on your server:
up reads the directory, works out how to build it, creates the app, creates and connects the database, builds from your git remote and prints the app’s URL. Push your code to the remote first: the server builds from git, not from your working copy. Before it creates anything, up asks the remote whether your branch is there at your latest commit. If not, it stops, names the branch and prints the fix, git push -u origin <branch>. Pass --allow-unpushed to build what the remote has anyway. When the check cannot run (no git, a detached HEAD, an unreachable remote), up warns and continues. up then follows the first deploy and exits when the app is healthy: 0 healthy, 7 not healthy (the failure reason is printed), 6 still running when --timeout ran out (default 15m, the deploy keeps going). A new domain’s certificate may still be pending; up says so. Pass --no-wait to return as soon as the build is started and follow it yourself with levelrail-cli apps deploys wait.

Verify it works

Expected: apps status shows the app healthy, and open prints its address. If it does not come up, see If this fails.

What up infers

Each value comes from the first of these that has one: a flag, your app spec (app.yaml), detection, a default. up prints every value with where it came from, so you know what to change. A Node project without a Dockerfile works: it builds with Railpack. A project in a subdirectory of a monorepo (levelrail-cli up apps/web) builds from that subdirectory.

See the plan first

--dry-run prints what was inferred and the exact commands up runs, and changes nothing:
This output comes from a sample Node.js project with a main branch pushed to GitHub:
On a terminal, up asks for confirmation before it changes anything. Pass --yes in scripts.

Run it again

up is safe to repeat. A second run finds the app, database, connection and domain it already made, changes only settings that differ from what you asked for, and rebuilds from your latest push. Nothing is created twice. If a step fails partway, up stops and says what to run next. For example, if the database exists but connecting it fails, no build starts, and the message names levelrail-cli apps connect and says re-running up is safe.

No git remote

In a folder with no git remote, up uploads the files instead and says so first: no git remote, uploading 128 files (4.2 MB), honoring .gitignore. The server then builds the uploaded copy with the Dockerfile or detected stack. --dry-run prints the same line and sends nothing. This works only without --with, --domain, --replicas, --strategy, --memory, --cpu, --ref, --secret and --no-wait; add those later with apps commands. The size limit is the live setting deploy.upload_max_bytes (see runtime settings).

If this fails

If the build itself fails, the app still exists. Run levelrail-cli apps diagnose shop for the likely cause, and see Deploy failures for each failure code.

Advanced flags

For anything up does not cover, use the commands it expands to: apps create, apps scale, apps connect, apps domains add. An app.yaml in the project replaces detection, and flags still override it.

Day to day

rollback without --image goes back to the previous successful deploy. backup uses your only backup target when there is exactly one. Run levelrail-cli help for the everyday verbs and levelrail-cli help advanced for the rest. See the CLI reference for every command and the getting started guide for the server install.
Last modified on November 27, 2026