---
title: "page.duplicate: Duplicate page — Board kit command — Kition"
description: "Copies a page with all its elements, under a new name; answers the copy's id."
canonical: "https://developer.kition.ai/docs/kits/board/commands/page.duplicate"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/board/commands/page.duplicate](https://developer.kition.ai/docs/kits/board/commands/page.duplicate)

# page.duplicate

**Duplicate page.** Copies a page with all its elements, under a new name; answers the copy's id.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | `string` | no | The copy's name |
| `page` | `string` | yes | The page |

## Call through board_run

```text
board_run {
  "path": "<file>.kboard",
  "steps": [{ "command": "page.duplicate", "params": { "page": <string> } }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `name`. board_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": {
    "name": {
      "description": "The copy's name",
      "type": "string"
    },
    "page": {
      "description": "The page",
      "type": "string",
      "x-khp-types": [
        "Page"
      ]
    }
  },
  "required": [
    "page"
  ],
  "type": "object"
}
```

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