---
title: "Provision"
description: "Create the databases, caches, buckets and keys your app needs, and get their credentials in .env, from the variables it already reads or one service at a time."
canonical_url: "https://extraorbital.dev/docs/provision"
last_updated: "2026-12-04"
---

# Provision

> Create the databases, caches, buckets and keys your app needs, and get their credentials in .env, from the variables it already reads or one service at a time.

<Callout title="In brief">

- `npx extraorbital provision .` finds the variables your app reads and has no value for, creates the services behind them, and writes their credentials to `.env` (or an existing `.env.local`).
- `npx extraorbital add <service>` creates one service by name: `add postgres`, `add redis`, `add s3`.
- Values that are not a service (an app URL, a random key) come from [env var templates](/docs/env-templates) in `.env.example`.
- Running it again returns what exists: same project, service and slug, same resource.

</Callout>

## From the variables your app reads

Declare the variables in `.env.example`, or just use them in your code, then run from the project's folder:

```bash
npx extraorbital provision . --dry-run   # the plan: what would be created, nothing written
npx extraorbital provision .             # create what is missing, write .env
```

Values that already work are kept. The CLI matches exact variable names from the [catalog](/providers?for=developers), in this order:

1. Names in `.env.example`, `.env.sample` or `.env.template`.
2. Empty or placeholder values in `.env` or `.env.local`.
3. Variable names referenced in the source code.

It skips variables with real values, dependencies, build output and lockfiles. Each detected service gets the slug `default`. Supported [local secrets](/docs/cli#local-secrets), such as `JWT_SECRET`, are generated on your machine and create no hosted resource.

## One service at a time

```bash
npx extraorbital catalog            # every service, its options and its variables
npx extraorbital add redis          # a Redis database, its REST and TCP credentials in .env
npx extraorbital add postgres --slug analytics   # a second one, named
```

Each [service's guide](/docs/resources) has its options, limits and costs.

## In CI and scripts

```bash
npx extraorbital provision . --non-interactive --yes --json
```

It never prompts, prints one JSON object, and its [exit code](/docs/cli#exit-codes) says what happened. Supply `EXTRAORBITAL_TOKEN` to act as an existing account.

## Next

- [Env var templates](/docs/env-templates): the values that are not a service.
- [Rotate](/docs/rotate) secrets after a leak.
- [Push to your hosting provider](/docs/push), or [deploy your project](/docs/deploy) on ExtraOrbital.

---

More for agents: [Sitemap](https://extraorbital.dev/sitemap.md) · [llms.txt](https://extraorbital.dev/llms.txt) · [agents.md](https://extraorbital.dev/agents.md)
