Skip to Content
CLI & APICommand reference

stackblaze templates

App template catalog

Usage: stackblaze templates|template [options] [command]

App template catalog

Options:
  -h, --help                   Print help

Commands:
  search [options] [query]     Search or browse the template catalog
  deploy [options] <template>  Deploy a catalog template into a project
                               environment
  help [command]               Print this message or the help of the given
                               subcommand(s)
Usage: stackblaze templates search [options] [query]

Search or browse the template catalog

Options:
  --api-url <url>        StackBlaze API base URL (env STACKBLAZE_API_URL)
  --token <token>        API token, sb_pat_... (env STACKBLAZE_TOKEN)
  -p, --project <name>   Project name
  -e, --env <name>       Environment name (default: production)
  -a, --app <name>       App name
  --json                 Output JSON (same as -o json) (default: false)
  --category <name>      Filter by category
  -n, --limit <n>        Max results
  -o, --output <format>  Output format: text or json (choices: "text", "json")
  -h, --help             Print help

Example

Find a template by what it does, then by category. The id in the first column is what templates deploy takes:

stackblaze templates search whiteboard
stackblaze templates search --category monitoring
1 match(es) of 54 template(s) for "whiteboard"
Deploy one with: stackblaze templates deploy <id>
excalidraw  excalidraw — Virtual whiteboard for sketching hand-drawn style diagrams, with live collaboration and shareable links that are end-to-end encrypted and stored on your own instance.
1 match(es) of 54 template(s)
Deploy one with: stackblaze templates deploy <id>
uptime-kuma  uptime-kuma — Self-hosted uptime monitoring. Check websites, APIs, ports, DNS and more on your own schedule, get alerts in 90+ notification services, and publish public status pages.  addons: MariaDB, Smtp

With --json, each template also lists its categories, add-ons and variants (deploymentTypes):

stackblaze templates search whiteboard --json
{
  "total": 54,
  "matched": 1,
  "templates": [
    {
      "id": "excalidraw",
      "name": "excalidraw",
      "description": "Virtual whiteboard for sketching hand-drawn style diagrams, with live collaboration and shareable links that are end-to-end encrypted and stored on your own instance.",
      "categories": [
        "documentation",
        "work",
        "collaboration"
      ],
      "addons": [],
      "deploymentTypes": [
        "standard"
      ],
      "locked": false,
      "lockReason": null,
      "haLocked": null
    }
  ]
}

templates deploy

Usage: stackblaze templates deploy [options] <template>

Deploy a catalog template into a project environment

Options:
  --api-url <url>         StackBlaze API base URL (env STACKBLAZE_API_URL)
  --token <token>         API token, sb_pat_... (env STACKBLAZE_TOKEN)
  -p, --project <name>    Project name
  --phase <name>          Environment name (default: production)
  -a, --app <name>        App name
  --json                  Output JSON (same as -o json) (default: false)
  --deployment-type <id>  Variant: standard or ha (default: "standard")
  --name <name>           Override deployed app name (multi-service templates:
                          the main app)
  --env <pair>            Env override KEY=value (repeatable)
  --wait                  Poll until the app is running (every app of a
                          multi-service template) (default: false)
  --timeout <seconds>     Max --wait time (default 600)
  -o, --output <format>   Output format: text or json (choices: "text", "json")
  -h, --help              Print help

A template with companion services (Supabase, Plane, n8n's worker…) is
deployed whole, in one request: the server checks the plan limits and room
for every service first, then creates them all, the main app first. If one
fails, the ones already created keep running and the command exits 3 saying
which exist. --env sets variables on the main app (and on companions that
inherit its environment).

Example

Deploy the Excalidraw template into the dev environment as an app called whiteboard, and wait until it is up. The environment flag is --phase here:

stackblaze templates deploy excalidraw -p github-demo-cw8z --phase dev --name whiteboard --wait
OK Deployed template excalidraw → github-demo-cw8z/dev/whiteboard
Waiting for github-demo-cw8z/dev/whiteboard-8stj to be ready (up to 10m00s)…
  github-demo-cw8z/dev/whiteboard-8stj: deploying — Waiting for whiteboard-8stj-web deployment; rolling out (Deploy 2026.11.12-1440f2d): waiting for the new pod (2s elapsed)
…
  github-demo-cw8z/dev/whiteboard-8stj: deploying — Waiting for whiteboard-8stj-web deployment (1m22s elapsed)
OK github-demo-cw8z/dev/whiteboard-8stj is ready
url: https://whiteboard-8stj.cloud-dev-central-1.stackblaze.app

On this page