Shared configuration guide
Understanding .env Files
Create and safely manage environment-variable files and hosting-panel variables.
What an .env file does#
An .env file stores configuration outside application source code. It often contains live credentials, so it must remain private. An .env.example file is safe to distribute only when every value is a placeholder.
Create the file#
- Find
.env.examplein the extracted product files. - Copy it in the same directory and rename the copy to
.env. - Replace each placeholder with the exact value documented for the product.
- Keep one variable per line. Do not add quotes unless the product or hosting panel requires them.
- Restart the bot after any environment-variable change.
Linux or macOS
cp .env.example .envHosting-panel variables#
Some managed hosts provide an Environment Variables or Startup Variables area instead of a physical .env file. Enter the variable name and value in separate fields. Do not upload a live .env to public file-sharing services or include it in screenshots.