GetSessionCommandResponseBody

September 16, 2026 ยท View on GitHub

The command data along with the exit code if the command did finish.

Example Usage

import { GetSessionCommandResponseBody } from "@vercel/sdk/models/getsessioncommandop.js";

let value: GetSessionCommandResponseBody = {
  command: {
    args: [
      "run",
      "build",
    ],
    cwd: "/vercel/sandbox",
    durationMs: 1234,
    exitCode: 0,
    id: "cmd_123a6c5209bc3778245d011443644c8d27dc2c50",
    name: "npm",
    sessionId: "sbx_123a6c5209bc3778245d011443644c8d27dc2c50",
    startedAt: 1673123456789,
  },
};

Fields

FieldTypeRequiredDescription
commandmodels.SessionCommand:heavy_check_mark:This object represents a command run in a Vercel Sandbox session (v2 API).