Quickstart
Deploy your first function to Cluster in under 5 minutes.
Quickstart
Deploy a function to Cluster in 5 minutes.
1. Install
curl -fsSL https://assets.cluster.app/serve/cstatic-assets/releases/ccp/install.sh | shSee Installation for other install methods and shell completions.
2. Log In
ccp auth loginEnter your email and the OTP code sent to your inbox.
3. Create a Project
ccp init my-app
cd my-appThis scaffolds a TypeScript project with a handler template. When prompted, select an organization and create a function to link your project.
4. Start Dev Server
ccp dev
# ◼ Dev Server started!
# › http://127.0.0.1:1234Open http://127.0.0.1:1234 — you'll see "Hello from Cluster!". Edit index.ts and the server hot-reloads automatically.
5. Deploy
ccp deploy --prodYour function is live at https://my-app.clusterbase.dev.
What Just Happened?
ccp deploybundled your TypeScript with esbuild- Uploaded the bundle to Cluster's storage
- Activated a deployment on the serverless runtime
- The runtime created a V8 isolate for your function
- Traefik routes
my-app.clusterbase.devto your isolate
Next Steps
- Edit your handler — learn about the Request/Response model
- Add a custom domain — serve from your own domain
- Serve static files — deploy an SPA with
--public-dir - Explore the runtime — see all available Web APIs