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.
The gram redeploy command requires you to specify an API key and project
slug. For more information on these values, see the global CLI
options.
Usage
Redeploy the latest deployment:
gram redeploy --api-key YOUR_API_KEY --project my-projectRedeploy a specific deployment:
gram redeploy --id deployment-123 --api-key YOUR_API_KEY --project my-projectRedeploy without waiting for completion:
gram redeploy --skip-poll --api-key YOUR_API_KEY --project my-projectGet the result as JSON:
gram redeploy --json --api-key YOUR_API_KEY --project my-projectOptions
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