---
title: "artboard.rearrange: Rearrange All Artboards… — Vector kit command — Kition"
description: "Rearranges all artboards in a grid, row or column with an order, column count and spacing, optionally moving their art."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/artboard.rearrange"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/vector/commands/artboard.rearrange](https://developer.kition.ai/docs/kits/vector/commands/artboard.rearrange)

# artboard.rearrange

**Rearrange All Artboards….** Rearranges all artboards in a grid, row or column with an order, column count and spacing, optionally moving their art.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `byColumn` | `boolean` | no | read by the command beside its listed parameters |
| `columns` | `integer` | no | 2; the rows for gridByColumn; row and column ignore it |
| `layout` | `"gridByRow" \| "gridByColumn" \| "row" \| "column"` | no | gridByRow; byColumn?: true is gridByColumn |
| `moveArtwork` | `boolean` | no | locked and hidden art only with prefs moveLockedWithArtboard |
| `order` | `"leftToRight" \| "rightToLeft"` | no | leftToRight: right-to-left mirrors the order along the rows |
| `spacing` | `number` | no | points; 20 |

## Call through vector_run

```text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "artboard.rearrange" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `byColumn`, `columns`, `layout`, `moveArtwork`, `order`, `spacing`. vector_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": {
    "byColumn": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    },
    "columns": {
      "description": "2; the rows for gridByColumn; row and column ignore it",
      "type": "integer"
    },
    "layout": {
      "description": "gridByRow; byColumn?: true is gridByColumn",
      "enum": [
        "gridByRow",
        "gridByColumn",
        "row",
        "column"
      ],
      "type": "string"
    },
    "moveArtwork": {
      "default": true,
      "description": "locked and hidden art only with prefs moveLockedWithArtboard",
      "type": "boolean"
    },
    "order": {
      "description": "leftToRight: right-to-left mirrors the order along the rows",
      "enum": [
        "leftToRight",
        "rightToLeft"
      ],
      "type": "string"
    },
    "spacing": {
      "description": "points; 20",
      "type": "number"
    }
  },
  "returns": "{artboards, rows, columns}",
  "type": "object"
}
```

Generated from the command list of @kition/vector-darwin-arm64@0.1.0 and the kit itself (vector_commands through @kition/cli@0.1.1, built from KitionAI/kition-vector@7cf908f).
