---
title: "15.10.0: Access environment variables securely with cy.env()"
url: "https://www.cypress.io/releases/15-10-0"
description: "Read environment variables securely with cy.env(), a new asynchronous command that replaces the now-deprecated Cypress.env(). Pair it with Cypress.expose() to…"
---

# 15.10.0: Access environment variables securely with cy.env()

ReleasedReleased on February 2, 2026

Read environment variables securely with `cy.env()`, a new asynchronous command that replaces the now-deprecated `Cypress.env()`. Pair it with `Cypress.expose()` to share non-sensitive config publicly, and turn on `allowCypressEnv` to enforce the migration across your suite.

[Read the migration guide](https://on.cypress.io/cypress-env-migration) · [Read the changelog](https://docs.cypress.io/app/references/changelog#15-10-0)