---
title: wpe envs rebuild
description: Manually invoke a rebuild of a specified application environment.
url: https://developers.wpengine.com/docs/headless-platform/reference/cli/wpe/envs/rebuild/
image: https://developers.wpengine.com/og/docs/headless-platform/reference/cli/wpe/envs/rebuild.png
---

# wpe envs rebuild

## Description

Manually invoke a rebuild of a specified application environment.

## Usage

Terminal window

```bash
$ wpe envs rebuild $ENV_ID [OPTIONS]
```

## Extended Description

The `wpe envs rebuild` command allows you manually rebuild a specified environment for the application. It kicks off the same process that occurs when a new commit is pushed to git.

## Options

```
--app, -a    The app name
--help, -h   Help for rebuild
```

## Examples

Let’s assume the environment ID is `bmna3gedlzerwcb4vc04gssl` and the app name is `myapp`. Running the following command will rebuild the environment:

Terminal window

```bash
$ wpe envs rebuild bmna3gedlzerwcb4vc04gssl -a myapp
```

## 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/rebuild/#article","mainEntityOfPage":{"@type":"WebPage","@id":"https://developers.wpengine.com/docs/headless-platform/reference/cli/wpe/envs/rebuild/"},"headline":"wpe envs rebuild","description":"Manually invoke a rebuild of a specified application environment.","image":"https://developers.wpengine.com/og/docs/headless-platform/reference/cli/wpe/envs/rebuild.png","author":{"@id":"https://wpengine.com/#organization"},"publisher":{"@id":"https://wpengine.com/#organization"},"dateModified":"2024-08-09T00: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/rebuild/#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 rebuild","item":"https://developers.wpengine.com/docs/headless-platform/reference/cli/wpe/envs/rebuild/"}]}]}
```
