CreateDeploymentRequest

August 5, 2026 ยท View on GitHub

Example Usage

import { CreateDeploymentRequest } from "@vercel/sdk/models/createdeploymentvaluedeploymentsresponse2002.js";

let value: CreateDeploymentRequest = {
  forceNew: "1",
  skipAutoDetectionConfirmation: "1",
  teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
  slug: "my-team-url-slug",
  requestBody: {
    customEnvironmentSlugOrId: "staging",
    deploymentId: "dpl_2qn7PZrx89yxY34vEZPD31Y9XVj6",
    files: [
      {
        file: "folder/file.js",
      },
    ],
    gitMetadata: {
      remoteUrl: "https://github.com/vercel/next.js",
      commitAuthorName: "kyliau",
      commitAuthorEmail: "kyliau@example.com",
      commitMessage:
        "add method to measure Interaction to Next Paint (INP) (#36490)",
      commitRef: "main",
      commitSha: "dc36199b2234c6586ebe05ec94078a895c707e29",
      dirty: true,
      ci: true,
      ciType: "github-actions",
      ciGitProviderUsername: "rauchg",
      ciGitRepoVisibility: "private",
      rootDirectory: "apps/web",
    },
    gitSource: {
      ref: "main",
      repoUuid: "123e4567-e89b-12d3-a456-426614174000",
      sha: "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0",
      type: "bitbucket",
      workspaceUuid: "987e6543-e21b-12d3-a456-426614174000",
    },
    meta: {
      "foo": "bar",
    },
    name: "my-instant-deployment",
    project: "my-deployment-project",
    projectSettings: {
      buildCommand: "next build",
      installCommand: "pnpm install",
    },
    target: "production",
  },
};

Fields

FieldTypeRequiredDescriptionExample
forceNewmodels.ForceNew:heavy_minus_sign:Forces a new deployment even if there is a previous similar deployment. Set to 1 to bypass deployment deduplication and always trigger a fresh build.1
skipAutoDetectionConfirmationmodels.SkipAutoDetectionConfirmation:heavy_minus_sign:Set to 1 to skip framework auto-detection and proceed without confirmation. By default, if Vercel detects a framework that differs from the project setting, the API returns a 400 asking you to confirm. Use this to suppress that check in automated pipelines.1
teamIdstring:heavy_minus_sign:The Team identifier to perform the request on behalf of.team_1a2b3c4d5e6f7g8h9i0j1k2l
slugstring:heavy_minus_sign:The Team slug to perform the request on behalf of.my-team-url-slug
requestBodymodels.CreateDeploymentRequestBody:heavy_check_mark:N/A