---
title: wpe envs
description: wpe envs allows you to manage environments in an application using the WP Headless CLI.
url: https://developers.wpengine.com/docs/headless-platform/reference/cli/wpe/envs/
image: https://developers.wpengine.com/og/docs/headless-platform/reference/cli/wpe/envs.png
---

# wpe envs

The `wpe envs` command group allows you to manage environments in an application using the WP Headless CLI.

## Commands

- [**wpe envs delete**](https://developers.wpengine.com/docs/headless-platform/reference/cli/wpe/envs/delete): Remove a deployed environment from an application
- [**wpe envs purge**](https://developers.wpengine.com/docs/headless-platform/reference/cli/wpe/envs/purge): Manually purge the domain cache for a specified application environment
- [**wpe envs rebuild**](https://developers.wpengine.com/docs/headless-platform/reference/cli/wpe/envs/rebuild): Manually invoke a rebuild of a specified application environment

## Was this helpful?

Thanks for the feedback!

```json
{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"https://developers.wpengine.com/#website","name":"WP Engine Product Documentation","url":"https://developers.wpengine.com/","description":"Resources for developing, deploying, and scaling on WP Engine.","inLanguage":"en-US","keywords":["API documentation","product documentation","headless WordPress","managed WordPress hosting"],"publisher":{"@id":"https://wpengine.com/#organization"}},{"@type":"Organization","@id":"https://wpengine.com/#organization","name":"WP Engine","url":"https://wpengine.com/"},{"@type":"TechArticle","@id":"https://developers.wpengine.com/docs/headless-platform/reference/cli/wpe/envs/#article","mainEntityOfPage":{"@type":"WebPage","@id":"https://developers.wpengine.com/docs/headless-platform/reference/cli/wpe/envs/"},"headline":"wpe envs","description":"wpe envs allows you to manage environments in an application using the WP Headless CLI.","image":"https://developers.wpengine.com/og/docs/headless-platform/reference/cli/wpe/envs.png","author":{"@id":"https://wpengine.com/#organization"},"publisher":{"@id":"https://wpengine.com/#organization"},"dateModified":"2026-03-16T00:00:00.000Z","inLanguage":"en-US","isPartOf":{"@id":"https://developers.wpengine.com/#website"}},{"@type":"BreadcrumbList","@id":"https://developers.wpengine.com/docs/headless-platform/reference/cli/wpe/envs/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"WP Engine Product Documentation","item":"https://developers.wpengine.com/"},{"@type":"ListItem","position":2,"name":"Headless","item":"https://developers.wpengine.com/docs/headless-platform/"},{"@type":"ListItem","position":3,"name":"wpe envs","item":"https://developers.wpengine.com/docs/headless-platform/reference/cli/wpe/envs/"}]}]}
```
