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

# Env

> Manage organization-level environment variables from the CLI.

Environment variables set here are available to Spark jobs running on the oleander-managed cluster. They are stored encrypted and injected at runtime.

## List environment variables

```bash theme={null}
oleander env list
```

Pass `--json` for machine-readable output:

```bash theme={null}
oleander env list --json
```

Example output:

```
Environment variables
- name: DATABASE_URL
  id: ev_abc123
  updated: 2026-05-01T12:00:00Z
- name: API_SECRET
  id: ev_def456
  updated: 2026-05-10T09:30:00Z
```

## Set an environment variable

```bash theme={null}
oleander env set <NAME> <value>
```

Names are uppercased automatically. Creating a variable with an existing name replaces it.

**Example:**

```bash theme={null}
oleander env set DATABASE_URL "postgresql://host:5432/mydb"
```

## Delete an environment variable

```bash theme={null}
oleander env delete <NAME>
```

**Example:**

```bash theme={null}
oleander env delete DATABASE_URL
```
