Skip to content

Environment variable

No editor has reviewed this definition yet, and search engines are not shown it until it is reviewed.

A value a program reads from the environment it runs in, not from its code, such as a database address or an API key. It differs between your machine and production without changing the code, and the .env file holding it stays out of the repository.

In Arabic

متغير البيئة

قيمة يقرؤها البرنامج من البيئة التي يعمل فيها لا من شيفرته، مثل عنوان قاعدة البيانات أو مفتاح API. تختلف بين جهازك والإنتاج دون تعديل الشيفرة، وملف .env الذي يحويها لا يدخل المستودع.

Also known as: environment variables، env var، .env

See also

All terms