Get started

From zero to Workers

Requires Zig 0.16+ to build the CLI. Cloudflare credentials via wrangler login or env. No secrets in the repo — use wrangler secrets in production.

01 Build the CLI

# clone
git clone https://github.com/solvedggorg/deploy.git
cd deploy

# compile
zig build
./zig-out/bin/deploy help

# optional: put on PATH
export PATH="$PWD/zig-out/bin:$PATH"

02 Create or adopt

Greenfield app:

deploy create my-app --yes --name my-app
cd my-app
bun install   # link workspace packages or use published @solvedgg/deploy-*

Existing Next app:

cd my-existing-app
deploy init . --name my-app
deploy check

03 Link & deploy

deploy link --name my-app
deploy deploy
deploy logs     # optional: wrangler tail

04 Common flags

  • --yes Non-interactive defaults for create/init
  • --force Override fail-closed unsupported features
  • --name Worker / project name
  • --account-id Cloudflare account id for link/deploy
  • --rewrite-next-config Allow next.config rewrite when adopting

05 Develop on deploy itself

zig build test
zig build run -- help
zig build run -- matrix
zig build run -- create /tmp/my-app --yes --name my-app

Questions or hard edges? Open an issue on GitHub — or talk to Solved.

github.com/solvedggorg/deploy