⌕⌘K
v 2.14.0 · Chapter III
Docs / Getting started / Your first deploy
§ III.02 — pp. 004—011 · 6 min read

Your first deploy, end to end.

A walk through the ninety seconds between git push and a live URL — with nothing hidden, and every step reproducible from the terminal.

Værft is built around a single idea: the distance between your editor and production should never exceed the length of one command. The rest of this page walks through the four steps most teams take on their first day — installing the CLI, linking a project, running a preview, and rolling out to production. If you already have an account, skip to step two.

§ 01

Install the CLI

The varft binary is a self-contained Go program. We publish it on Homebrew, npm, and as a shell installer. Pick the one that fits your toolchain.

Fig. 3.4 — install
# install the CLI
brew install varft

# authenticate in your browser
varft login

# create a new project from this directory
varft init nordlys-api

# deploy to production
varft deploy --prod
Plate 3.4.a — platforms: macOS · Linux · Windows (WSL)↗ full CLI reference
§ 02

Link your project

From the root of your repository, run varft init. The CLI auto-detects your stack (Node, Deno, Python, Go, or Rust), finds your build and start commands, and writes a minimal varft.toml you can commit alongside your code.

Fig. 3.5 — the pipelineclick a stage

Every subsequent varft deploy runs these five stages. The output is streamed line-by-line; the CLI exits non-zero if any stage fails. No hidden cache tricks, no arbitrary wait times.

§ 03

Useful commands

Eight commands cover the day-to-day. Everything else is a flag on one of them. Run varft --help for the exhaustive list.

CommandDoesExample
varft initDetect stack, write varft.tomlvarft init .
varft deployBuild and roll out a revision--prod / --region fra1
varft logsTail logs across regions--service web -f
varft psqlOpen a psql shell to your database--env preview
varft rollbackRevert to a previous revision--to 48fe2c9
varft envRead and write environment variablesset DATABASE_URL=@postgres
varft devRun the same runtime locally--with postgres,redis
varft whoamiShow the active account and team--org nordlys
§ 04

What happens on merge

When a pull request merges into main, Værft rebuilds the revision on clean infrastructure, promotes it through three canary regions, and watches p50 latency and 5xx rates for seventy seconds before fanning the rollout out to the remainder of your configured fleet. If any health check fails, the rollout pauses automatically and you're notified in Slack.

You can promote manually, pause, or roll back at any time from the dashboard or the CLI — see Preview environments and Rollbacks.

Written by the platform teamLast reviewed 12 · 04 · 2026Applies to v 2.12+
§ III.02 — pp. 004—011 · 6 min read — Next
§ I

Browse the API

OpenAPI schema, GraphQL playground, and typed SDKs for Node, Go, Python, and Rust.

§ II

Start a project

Free while you build. You only pay once requests arrive.

§ III

Talk to a human

Book thirty minutes with a platform engineer. We prefer questions over sales calls.