---
title: "ezgh deploy"
description: "Deploy: run a repository's EZGHDeploy, its services, resources and environments."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh deploy

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh deploy <command>
```

EZGH Deploy runs the services, resources and environments a repository's EZGHDeploy describes, from each push to an environment's branch.

`ezgh deploy init` writes a first EZGHDeploy from what detection finds in your checkout, `ezgh deploy validate` checks the file, and `ezgh deploy detect` says how a directory with no Dockerfile is built. None of them sends the file anywhere.

`ezgh deploy apply` deploys an environment's branch now, `plan` and `approve` show and approve a deployment's plan, `status`, `deployments` and `resources` show an environment, and `rollback` deploys an earlier deployment again. They work on the checkout's stack and the environment of the checked-out branch, or on `--stack` and `--environment`.

## Flags

This command also takes the [global flags](/cli/reference#global-flags).

## Subcommands

| Command | Description |
| --- | --- |
| [`ezgh deploy apply`](/cli/reference/deploy-apply) | Deploy an environment's branch now |
| [`ezgh deploy approve`](/cli/reference/deploy-approve) | Approve a deployment's plan |
| [`ezgh deploy deployments`](/cli/reference/deploy-deployments) | An environment's deployments |
| [`ezgh deploy detect`](/cli/reference/deploy-detect) | Say how a directory with no Dockerfile is built, and why |
| [`ezgh deploy init`](/cli/reference/deploy-init) | Write a one-service EZGHDeploy for the repository |
| [`ezgh deploy plan`](/cli/reference/deploy-plan) | Show a deployment's plan |
| [`ezgh deploy resources`](/cli/reference/deploy-resources) | The resources an environment manages |
| [`ezgh deploy rollback`](/cli/reference/deploy-rollback) | Deploy an earlier deployment again |
| [`ezgh deploy status`](/cli/reference/deploy-status) | Show an environment and the resources it manages |
| [`ezgh deploy validate`](/cli/reference/deploy-validate) | Check an EZGHDeploy file |

Source: https://docs.ezghcloud.com/cli/reference/deploy/index.mdx
