# Modules (/docs/cli/modules)

Each module has a default, and anything you leave out is removed completely: its packages, provider SDK, environment variables, documentation, and lockfile entries. To pick them in a page and copy the command, use the [builder](https://starter.clubedge.live/builder).

| Flag              | Options                                                                                                       | Default    |
| ----------------- | ------------------------------------------------------------------------------------------------------------- | ---------- |
| `--framework`     | `next`, `tanstack-start`, `vite` (a frontend, with `--api`), `none` ([no website](./without-a-website.mdx): an API, with `--api`) | `next`     |
| `--api`           | `hono`, `fastapi` (with `--framework vite` or `none`), `none`                                                 | `none`     |
| `--mobile`        | `expo` ([a native Android and iOS app](../starter/native-app.mdx), with an API and `--framework vite` or `none`), `none` | `none`     |
| `--shell`         | `capacitor` (an Android and iOS app, with `--framework vite` and its API), `none`                             | `none`     |
| `--auth`          | `supabase`, `better-auth`, `firebase`, `appwrite`, `none`                                                                             | `supabase` |
| `--storage`       | `s3`, `supabase` (needs Supabase Auth), `none`                                                                | `s3`       |
| `--cache`         | `redis` (falls back to memory without `REDIS_URL`), `memory`                                                  | `redis`    |
| `--email`         | `smtp` (any provider, or a local inbox), `resend`, `none`                                                     | `smtp`     |
| `--payments`      | `stripe`, `none` (needs an auth module)                                                                       | `none`     |
| `--jobs`          | `pg-boss`, `bullmq` (Redis), `inngest`, `none`                                                                                             | `none`     |
| `--observability` | `otel` (OpenTelemetry, to any OTLP collector), `sentry`, `none`                                               | `none`     |
| `--push`          | `expo` (Expo's push service, the native app), `native` (FCM and APNs, both mobile apps), `none`: needs auth and a mobile app | `none`     |
| `--ota`           | `eas` (EAS Update, with `--mobile expo`), `none`                                                              | `none`     |
| `--deploy`        | `docker` (any container host), `fly`, `railway`, `render`, `vercel`, `netlify`                                | `docker`   |
| `--infra`         | `docker` (Docker Compose), `supabase` (Supabase CLI), `local` (no Docker: PGlite and a local folder), `neon` ([a free hosted Neon database](./neon.mdx)), `none` | `docker`   |

Interactive runs ask whether to customize these after the questions about the apps.

## Modules depend on the apps [#modules-depend-on-the-apps]

The options above are those of Next.js and TanStack Start, which implement every one. Each app lists the module options it implements. React + Vite with Hono (CLI 0.39.0 or newer) or FastAPI (CLI 0.40.0 or newer) implements every option of auth, storage, cache, email, payments, jobs, and observability, with the same defaults, except `--jobs pg-boss` with FastAPI: pg-boss has no Python version. Deploy is `docker` or `railway` ([Modules on these stacks](./frontend-and-api.mdx#modules-on-these-stacks)). The native app takes part in sign-in, with `supabase`, `better-auth`, or `none`, so `--mobile expo` leaves out `firebase` and `appwrite`, and in push notifications and over-the-air updates (Starter v0.30.0 or newer). Push notifications need a mobile app, Expo's push service reaches only the native app, and over-the-air updates need it.

The CLI only offers options the selected apps implement, in prompts, the builder, and `add`. A module you don't choose falls back to a supported default, and an option the apps don't implement is refused with the ones they do:

```text
FastAPI (Python) does not implement pg-boss (jobs stored in PostgreSQL) (--jobs pg-boss). It implements: bullmq, inngest, none.
```

<Callout>
  The Starter's `clubedge.template.json` defines the modules, so a module a newer Starter adds gets its `--<module>` flag without a CLI change. `--help` lists the modules of the Starter your CLI release creates.
</Callout>

## Requirements between modules [#requirements-between-modules]

- `--storage supabase` needs `--auth supabase`: Supabase Storage uses the signed-in user's Supabase session.
- `--payments stripe` needs an auth module, because subscriptions belong to users.
- `--jobs bullmq` needs `--cache redis`: BullMQ stores its jobs in Redis.

Several modules in one command are checked together, so `add auth supabase storage supabase` works on a project that had neither.

## Without a website [#without-a-website]

A project without a website (`--framework none`, CLI 0.44.0 or newer) is its API, and the Starter's rules refuse what needs the website, with the reason:

- `--payments stripe`: payments send users back to the website's pages.
- `--jobs inngest`: Inngest reaches the jobs through the website's address; `pg-boss` and `bullmq` run in the API.
- `--auth better-auth` with `--api fastapi`: Better Auth then runs in the API, and FastAPI can't run it.
- `--deploy fly`, `vercel`, `netlify`, and `render`: they deploy a web app, so the API deploys with `docker` or `railway`.

```text
Inngest reaches the jobs through the website's address, and a project without a website has none: choose --jobs pg-boss or --jobs bullmq, which run in the API.
```

Prompts, the builder, and `add` don't offer them, and a module left to its default takes the first option the rules allow. See [Without a website](./without-a-website.mdx).

## What each module adds [#what-each-module-adds]

| Module        | Starter guide                                                   |
| ------------- | --------------------------------------------------------------- |
| Auth          | [Authentication](../starter/modules/auth.mdx)                   |
| Email         | [Email](../starter/modules/email.mdx)                           |
| Storage       | [File storage](../starter/modules/storage.mdx)                  |
| Cache         | [Cache and rate limits](../starter/modules/cache.mdx)           |
| Payments      | [Payments](../starter/modules/payments.mdx)                     |
| Jobs          | [Background jobs](../starter/modules/jobs.mdx)                  |
| Observability | [Observability](../starter/modules/observability.mdx)           |
| Push          | [Push notifications](../starter/modules/push.mdx)               |
| OTA           | [Over-the-air updates](../starter/modules/ota.mdx)              |
| Infra         | [Local services](../starter/local-services.mdx)                 |
| Deploy        | [Deploy](../starter/deploy/index.mdx)                                 |

## Change them later [#change-them-later]

Modules aren't a one-time choice. Inside a project, `pnpm clubedge add` and `pnpm clubedge remove` change them by merging the difference into your code, and, from CLI 0.46.0, the mobile apps too. See [Change a project](./change-a-project.mdx).

A module you leave out takes its packages with it, and, from CLI 0.46.0, the packages from the registry its apps only need for it, such as the native plugins of push notifications.
