> ## Documentation Index
> Fetch the complete documentation index at: https://docs.latwoodtech.com/llms.txt
> Use this file to discover all available pages before exploring further.

# @adrper79-dot/deploy

> Deployment scripts and CI helpers for Cloudflare Workers monorepos.

# @adrper79-dot/deploy

CLI helpers and shell scripts for deploying Factory apps to Cloudflare Workers. No runtime dependencies.

## Installation

```bash theme={null}
npm install @adrper79-dot/deploy
```

## Scripts

### `deploy-all`

Deploys all packages in dependency order using `wrangler deploy`.

```bash theme={null}
npx deploy-all --env production
```

### `validate-bindings`

Checks that all required Wrangler bindings are present in `wrangler.jsonc` before deploy.

```typescript theme={null}
function validateBindings(
  config: WranglerConfig,
  required: string[],
): { valid: boolean; missing: string[] };
```

### `tagRelease`

Creates and pushes a version tag in `<package>/v<version>` format.

```typescript theme={null}
function tagRelease(pkg: string, version: string): Promise<void>;
```

## CI integration

Add to `.github/workflows/deploy.yml`:

```yaml theme={null}
- name: Deploy to Cloudflare Workers
  run: npx deploy-all --env production
  env:
    CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
    CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
```
