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

# lua production

> Read-only summary of what is live in production, with the persona, skills, and environment variables

`lua production` prints what the agent is running in [production](/concepts/environments): the deployed persona, the deployed skill versions, and the production environment variables. The non-interactive forms change nothing.

*Verified against lua-cli 3.33.0.*

## Synopsis

```bash theme={null}
lua production [overview|persona|skills|env]
```

## Description

With no action the command opens a menu with the same three sections. An action prints one section and exits without any "Press Enter" pause.

`overview` prints the deployed persona version with the first 80 characters of its text, the number of skills in `lua.skill.yaml` with up to three names, and the number of production environment variables with up to three keys.

`persona` prints the deployed persona version, date, creator, and full text, then the total number of versions. When nothing is deployed it lists the available versions instead.

`skills` prints each skill in `lua.skill.yaml` with its ID, deployed version number and date, and total number of versions. Unlike [`lua skills view`](/reference/cli/skills), this section shows the per-skill version numbers.

`env` lists the production environment variables with masked values: the first four characters followed by asterisks. The interactive `env` section can also add, update, delete, and reveal variables; from a script use [`lua env production -k <KEY> -v <value>`](/reference/cli/env), `--delete`, or `--list` instead.

The command has no options of its own. It needs a project directory and a credential.

## Arguments

| Argument | Values                                 | Description               |
| -------- | -------------------------------------- | ------------------------- |
| `action` | `overview`, `persona`, `skills`, `env` | Omit it to open the menu. |

Accepted spellings: `summary`, `status` → `overview`; `skill` → `skills`; `environment` → `env`. Anything else exits `2` with the valid values.

## Options

| Option | Description                                                                | Default |
| ------ | -------------------------------------------------------------------------- | ------- |
| `--ci` | Global flag. Refuse any prompt with exit `1` instead of waiting for input. | off     |

## Examples

Print the production summary.

```bash theme={null}
lua production overview
```

```text Output theme={null}
============================================================
🌙 Production Environment Overview
============================================================

🤖 Persona:
   Version 3 ⭐ deployed
   Preview: You are Acme Helpdesk Triage. Create, look up and escalate support tickets. Be c...

⚙️  Skills:
   1 skill(s) configured
   - tickets

🔐 Environment Variables:
   ℹ️  No variables configured

============================================================
```

Print the deployed skill versions.

```bash theme={null}
lua production skills
```

```text Output theme={null}
============================================================
⚙️  Production Skills
============================================================

📦 tickets
   Skill ID: 0c7927ec-ffc5-40ad-b76e-63cba81e1390
   Deployed Version: 1.0.3 ⭐
   Deployed: 12/09/2026, 13:49:44
   Total Versions: 3

============================================================
```

List the production environment variables, masked.

```bash theme={null}
lua production env --ci
```

```text Output theme={null}
============================================================
🔐 Production Environment Variables
============================================================

ℹ️  No environment variables configured.

============================================================
```

Print the deployed persona in full.

```bash theme={null}
lua production persona --ci
```

## Exit codes

| Code | Meaning     | When                                                                           |
| ---- | ----------- | ------------------------------------------------------------------------------ |
| `0`  | OK          | The section printed.                                                           |
| `1`  | Error       | The persona versions could not be loaded, or the menu was opened under `--ci`. |
| `2`  | Usage       | Unknown action, or no `lua.skill.yaml` in the current directory.               |
| `9`  | Auth        | No valid credential.                                                           |
| `10` | Forbidden   | The credential cannot read this agent.                                         |
| `11` | Unavailable | Network error or a server 5xx.                                                 |

The full table is in [Errors and exit codes](/reference/cli/errors-and-exit-codes).

## See also

* [`lua status`](/reference/cli/status) — machine-readable project and credential state
* [`lua version`](/reference/cli/version) — which agent version is live
* [`lua skills`](/reference/cli/skills), [`lua persona`](/reference/cli/persona), [`lua env`](/reference/cli/env) — change what this command reports
* [About environments](/concepts/environments)
