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

Released Released 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 · Read the changelog