Deploy Env Files with Reis (Flag Mode)
Use the Reis CLI to manage .env-style files using command-line flags. Env files are key=value pairs (one per line) that get mounted into a container at a path of your choosing.
Use the Reis CLI to manage .env-style files using command-line flags. Env files are key=value pairs (one per line) that get mounted into a container at a path of your choosing.
Create an env file
reis env_file:create \
--org <organisation-id> \
--name "App Env" \
--handle app-env \
--content_file ./config/app.envList env files
reis env_file:list --org <organisation-id>Show an env file
reis env_file:show <env-file-id> --org <organisation-id>Rotate (update content)
reis env_file:rotate <env-file-id> \
--org <organisation-id> \
--content_file ./config/app-v2.envList versions
reis env_file:versions <env-file-id> --org <organisation-id>Activate a previous version
reis env_file:activate <env-file-id> <version-number> --org <organisation-id>Note: env files use
env_file:activate(without the_versionsuffix). The other config types use*:activate_version.
Delete an env file
reis env_file:delete <env-file-id> --org <organisation-id>Add --force to skip the confirmation prompt.
Required flags for create
| Flag | Description |
|---|---|
--name | Human-readable display name |
--handle | DNS-1123-compliant identifier (auto-generated from name if omitted) |
--content_file | Path to a file containing KEY=value lines |
Attach to a project
reis project:attach <project-id> env_files app-envSingular alias env_file is also accepted. The project-id is the UUID Reis returns from project:list or project:show.
Detach from a project
reis project:detach <project-id> env_files app-envIf a running container still mounts the env file, detach is rejected with a 409 naming the blocking container — tear it down (or remove its env_files block) and retry.