forge init my-api
Quickstart
Install the CLI, scaffold a project, and deploy your first edge route in under three minutes.
Documentation
Copy-paste-ready snippets, typed examples, and a reference that stays in sync with every release.
forge init my-api
Install the CLI, scaffold a project, and deploy your first edge route in under three minutes.
defineRoute({ path: "/u/:id" })
Define typed routes, dynamic params, wildcards, and per-route region pinning.
ctx.kv.get("session")
Edge KV, durable queues, and a globally cached object store — all region-aware.
ctx.auth.verify(req)
Verify JWTs, rotate signing keys, and gate routes with middleware at the edge.
forge logs --tail
Structured logs, distributed traces, and metric exports to your existing stack.
forge --help
Every command, flag, and exit code for forge — the one binary you deploy with.
Everything you need ships in the one forge binary.