Deploy Env Files with Reis (YAML Mode)
Use the Reis CLI to manage .env-style files via YAML manifests. Env files are key=value pairs (one per line) that get mounted into containers at a path of your choosing.
Updated 23 Jun 20261 min read
Use the Reis CLI to manage .env-style files via YAML manifests. Env files are key=value pairs (one per line) that get mounted into containers at a path of your choosing.
Example manifest
Create a file called env-file.yml:
kind: env_file
name: App Env
handle: app-env
content: |
DATABASE_HOST=db.example.com
DATABASE_PORT=5432
LOG_LEVEL=info
FEATURE_DARK_MODE=trueApply the manifest
reis apply -f env-file.yml --org <organisation-id>Required fields
| Field | Type | Description |
|---|---|---|
kind | string | Must be env_file |
name | string | Human-readable display name |
handle | string | DNS-1123-compliant identifier |
content | string | .env-style content (KEY=value per line) |
Notes
- The
handleis immutable after creation. - To update content, change the
contentfield and re-apply. This creates a new version (rotation). - Attach an env file to a project with
reis project:attach <project-id> env_files <handle>— see Commands Reference. Project YAML does not manage attachments.