# Access env variables in deploy script

**Project:** Sites | **Board:** Closed | **Votes:** 1
**URL:** https://roadmap.ploi.io/projects/2-site-level-requests/items/770-access-env-variables-in-deploy-script

---

Sometimes it would be helpful if it was possible to access variables from the .env file inside the deploy scripts. For example when using composer packages that require authentication (`composer config example.com {ENV_PKG_USERNAME} {ENV_PKG_TOKEN}`).
