Skip to Content

gram redeploy

The redeploy command clones an existing deployment with the same assets, creating a new deployment. If no deployment ID is provided, the command redeploys the latest deployment.

Usage

Redeploy the latest deployment:

gram redeploy --api-key YOUR_API_KEY --project my-project

Redeploy a specific deployment:

gram redeploy --id deployment-123 --api-key YOUR_API_KEY --project my-project

Redeploy without waiting for completion:

gram redeploy --skip-poll --api-key YOUR_API_KEY --project my-project

Get the result as JSON:

gram redeploy --json --api-key YOUR_API_KEY --project my-project

Options

id

The deployment ID to redeploy. If not provided, the command redeploys the latest deployment.

gram redeploy --id deployment-123 [other options]

skip-poll

Skip polling for deployment completion and return immediately. By default, the command waits for the new deployment to complete or fail.

gram redeploy --skip-poll [other options]

json

Output the deployment result as JSON, which is useful for scripting and automation.

gram redeploy --json [other options]

Last updated on