# propello.json

An app’s declaration of its environment variables, resources, and ordered release steps.
Each environment entry, integration, and release step requires a plain-language `reason`.

[Download the JSON Schema](https://propello.app/docs/reference/propello-schema.json) for nested fields, allowed values, and defaults.
Propello also validates ordering and relationships between entries when it reads the file.

## Top-level fields

| Field | Type | Required |
|---|---|---|
| `schema` | number | Yes |
| `kind` | string | Yes |
| `env` | object | Yes |
| `integrations` | array | Yes |
| `release` | array | Yes |

## Release step kinds

- `run` runs a sandbox command and can declare the build artifact or check report.
- `job` calls a private route on the release candidate.
- `use` runs a [platform primitive](https://propello.app/docs/reference/platform#release-primitives-use).

## Example from the Astro starter

```json
{
  "schema": 1,
  "kind": "site",
  "env": {
    "required": [],
    "optional": []
  },
  "integrations": [],
  "release": [
    {
      "id": "build",
      "reason": "Compiles the Worker and its static assets",
      "run": "pnpm build",
      "artifact": ".cloudflare/output/v1"
    },
    {
      "id": "check",
      "reason": "Checks copy, design, SEO, accessibility, and speed and attaches a release report",
      "run": "propello check --out .propello/report",
      "report": ".propello/report"
    },
    {
      "id": "candidate",
      "reason": "Deploys a private candidate Worker",
      "use": "deploy.candidate"
    },
    {
      "id": "smoke",
      "reason": "Checks that the candidate serves its main routes",
      "use": "smoke",
      "with": {
        "paths": [
          "/"
        ]
      }
    },
    {
      "id": "switch",
      "reason": "Makes the checked candidate live",
      "use": "switch"
    }
  ]
}
```
