# gram redeploy

The `redeploy` command clones an existing deployment and deploys it again with
the same assets. Use it to recover from a failed deployment or to force a
fresh rollout without changing any sources. With no arguments, it redeploys
the latest deployment.

> The `gram redeploy` command requires an API key, an organization slug, and
> a project slug. After running `gram auth`, these values come from the
> local profile. For more information on these values, see the [global CLI
> options](/docs/ai-control-plane/reference/command-line#global-cli-options).

## Usage

```bash
gram redeploy
```

The command prints the new deployment ID along with the ID it was cloned
from, then polls until the deployment completes. Check on a deployment at any
time with [`gram
status`](/docs/ai-control-plane/reference/command-line/status).

## Options

### id

The deployment ID to redeploy. If not provided, the latest deployment is
redeployed.

```bash
gram redeploy --id 01234567-89ab-cdef-0123-456789abcdef
```

### skip-poll

Use this option to skip polling for deployment completion and return
immediately. By default, this is set to `false`.

### json

Output the result as JSON, for scripting.

```bash
gram redeploy --skip-poll --json
```
