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

# CLI reference

> Every command, flag, and exit code.

```text theme={null}
resumelang <command> [args] [flags]
```

See the [CLI guide](/cli) for prose and examples. This page is the terse
reference.

## Synopsis

```text theme={null}
init [file]
build [file] [--out DIR] [--formats LIST] [--theme NAME|PATH]
validate [file]
themes
theme validate <dir>
serve [--port N] [--addr H] [--root DIR]
version
```

## Environment variables

| Variable                    | Effect                                                                                                    |
| --------------------------- | --------------------------------------------------------------------------------------------------------- |
| `RL_GITHUB_CLIENT_ID`       | Enable GitHub OAuth in `serve`.                                                                           |
| `RL_GITHUB_CLIENT_SECRET`   | Required with `RL_GITHUB_CLIENT_ID`.                                                                      |
| `RL_LINKEDIN_CLIENT_ID`     | Enable LinkedIn OAuth in `serve`.                                                                         |
| `RL_LINKEDIN_CLIENT_SECRET` | Required with `RL_LINKEDIN_CLIENT_ID`.                                                                    |
| `RL_AUTH_SECRET`            | HMAC key for session cookies (32+ bytes). Auto-generated each start if unset — sessions reset on restart. |

## Exit codes

| Code | Meaning                   |
| ---- | ------------------------- |
| 0    | Success.                  |
| 1    | Generic error.            |
| 2    | Schema validation failed. |
| 3    | Theme load failed.        |
