# Deploy to Cloudflare

> Ship the current /work to Pages, Workers, or Containers — then verify the live URL.

- **Kind**: Shell tool
- **Category**: engineering
- **Owner**: Sentinel (/sentinel)
- **Default model**: sonnet
- **Cost class**: standard (Sonnet-class model. Default for most skills.)
- **Turn budget**: 10
- **Execution**: synchronous (result lands in the same turn)
- **Canonical URL**: https://app.51ultron.com/docs/skills/deploy-to-cloudflare

## What it does

Cloudflare-only deploy pipeline. Detects project shape (static HTML → Pages, single Worker script → wrangler deploy, Dockerfile → Containers). Consults cf-containers/SKILL.md for container-specific quirks (envVar timing, rollout caching). After wrangler succeeds, runs the verify-deploy skill: hits the live URL, captures status code, screenshots the homepage with ultron-screenshot, surfaces any runtime errors that wrangler couldn't catch.

## When to use this

- user wants to deploy to Cloudflare (Pages, Workers, or Containers)
- user says 'ship this' / 'deploy this' / 'put it on Cloudflare' when the project lives in /work
- user already has a wrangler.toml and just wants it deployed

## When NOT to use this

- user wants Vercel / Fly / Render → run their CLI via shell_exec directly
- user wants to clone-and-deploy a site → use clone-website (which includes ultron-deploy)
- user wants to deploy from a GitHub repo via CI → use push-to-github + wire CF Pages to it

## Example prompts

- `deploy this to Cloudflare Pages`
- `ship the worker in /work`
- `push this container to Cloudflare`
- `deploy and verify it's live`

## Inputs

- **target**: pages | workers | containers (auto-detected from project shape if omitted)
- **branch**: for Pages, optional deploy branch name

## Output

Live URL + verify-deploy report (status code, screenshot path, any runtime errors).

## Tools used

`shell_exec`

## Execution template

Shell tools dispatch through `shell_exec` with the following command template:

```bash
detect target from /work; wrangler deploy for Worker, wrangler pages deploy for Pages, ultron-deploy for clone-style; then follow verify-deploy/SKILL.md
```

## Tags

`engineering`, `deploy`

## Keywords

deploy, cloudflare, pages, workers, containers, wrangler, ship

