Skip to content
Status

Technical Reference · gram redeploy

gram redeploy

Clone an existing deployment and redeploy it with the same assets.

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.

Terminal window
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.

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

Terminal window
gram redeploy --id 01234567-89ab-cdef-0123-456789abcdef

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

Output the result as JSON, for scripting.

Terminal window
gram redeploy --skip-poll --json