Overview
Manage environment variables and secrets for your Qovery services. This command helps you import and parse environment variables.
Commands
Import Environment Variables
Import environment variables/secrets for a Qovery service:
Optionally pass a .env file path as an argument:
This command allows you to bulk import environment variables from a .env file into your Qovery application or container. It will interactively prompt you to select which variables to import, whether to import as environment variables or secrets, and whether to overwrite existing values.
Flags:
Parse Environment Variables
Parse environment variables and create a .env (dot env) file:
This command parses environment variables from external sources and outputs them in .env format. Currently supports parsing Heroku config JSON from stdin.
Flags:
Examples
Import Variables from File
Import Variables Sorted by Key
Parse Variables from Heroku
Development Workflow
Managing Service-Specific Variables
For managing environment variables of specific services, use the service-specific commands:
Tips
Use qovery env import to migrate environment variables from another platform or bulk-update variables for your services.
Use qovery env parse --heroku-json to keep your local development environment in sync when migrating from Heroku.
Never commit .env files containing secrets to version control. Add .env to your .gitignore file.