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=true

Apply the manifest

reis apply -f env-file.yml --org <organisation-id>

Required fields

FieldTypeDescription
kindstringMust be env_file
namestringHuman-readable display name
handlestringDNS-1123-compliant identifier
contentstring.env-style content (KEY=value per line)

Notes

  • The handle is immutable after creation.
  • To update content, change the content field 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.

See also