Skip to content

Quick Start — Functions

Go from zero to a deployed Function in under 2 minutes.

  1. Install the CLI

    Terminal window
    npm install -g @aerostack/cli
  2. Log in

    Terminal window
    aerostack login
  3. Create a new function

    Pick a template to start with a working app:

    Terminal window
    # REST API with Hono + D1 database
    aerostack init my-app --template api
    # REST API with Neon PostgreSQL
    aerostack init my-app --template api-neon
    # WebSocket group chat
    aerostack init my-app --template ws-chat
    # Conversational AI agent
    aerostack init my-app --template ws-voice-agent
    # SSE AI streaming
    aerostack init my-app --template ai-stream
    # Multiplayer game state sync
    aerostack init my-app --template ws-multiplayer-game

    See all 8 templates: Templates

  4. Run locally

    Terminal window
    cd my-app
    npm install
    aerostack dev

    Your function is running at http://localhost:8787. All platform bindings (DB, Cache, Queue, AI, Vector Search, Storage) work locally out of the box.

  5. Deploy

    Terminal window
    aerostack deploy function

    That’s it. Your function is live on Cloudflare’s edge in 300+ data centers. The CLI outputs your live URL.

    Deploying function: my-app
    Building... done (1.2s)
    Uploading... done
    Bindings configured:
    DB → aerostack-core (Database)
    CACHE → project-cache (Cache)
    QUEUE → project-queue (Queue)
    AI → Workers AI
    VECTORIZE → project-vectors (Vector Search)
    STORAGE → project-storage (Storage)
    Live at: https://my-app.your-project.aerostack.dev

  1. aerostack init scaffolded a TypeScript project with aerostack.toml configuration
  2. aerostack dev started a local dev server with all 6 platform bindings simulated locally
  3. aerostack deploy uploaded your code to Cloudflare’s edge, wired up real bindings, and gave you a URL

No Docker. No Kubernetes. No infrastructure config. One command to develop, one command to deploy.