Skip to content
Get started

Quickstart

Get from zero to a globally deployed API in under five minutes. If you don’t have the CLI yet, start with Installation.

Terminal window
npm install @vega/sdk
api/index.ts
import { vega } from '@vega/sdk';
export const api = vega.app({ region: 'global' });
api.get('/hello', () => Response.json({ message: 'Hello from the edge' }));
Terminal window
vega deploy
Terminal window
Compiling api/index.ts…
✓ Built in 1.2s
✓ Deployed to 28 regions
→ https://acme-api.vega.dev (42ms p99)

Your API is now live in 28 regions. Run vega logs --follow to watch requests stream in.