---
title: "command.batch: Run several commands — Design kit command — Kition"
description: "Runs a list of commands as one undo step (later steps can refer to earlier results with as); use it for multi-step edits."
canonical: "https://developer.kition.ai/docs/kits/design/commands/command.batch"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/design/commands/command.batch](https://developer.kition.ai/docs/kits/design/commands/command.batch)

# command.batch

**Run several commands.** Runs a list of commands as one undo step (later steps can refer to earlier results with as); use it for multi-step edits.

- Kit: Design 0.1.0 (.kdesign); reference: [Design kit commands](https://developer.kition.ai/docs/kits/design.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `commands` | `object[]` | no | [{command, params, as?}] |
| `fuel` | `number` | no | read by the command beside its listed parameters |
| `label` | `string` | no |  |
| `plugin` | `string` | no | read by the command beside its listed parameters |
| `x` | `number` | no | read by the command beside its listed parameters |
| `y` | `number` | no | read by the command beside its listed parameters |

## Call through design_run

```text
design_run {
  "path": "<file>.kdesign",
  "steps": [{ "command": "command.batch" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `commands`, `fuel`, `label`, `plugin`, `x`, `y`. design_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "commands": {
      "description": "[{command, params, as?}]",
      "items": {
        "additionalProperties": true,
        "properties": {
          "as": {},
          "command": {},
          "params": {}
        },
        "type": "object"
      },
      "type": "array"
    },
    "fuel": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "label": {
      "type": "string"
    },
    "plugin": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "x": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "y": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/design-darwin-arm64@0.1.0 and the kit itself (design_commands through @kition/cli@0.1.1, built from KitionAI/kition-design@abc7e16).
