---
title: "command.list: Command List — CAD kit command — Kition"
description: "Answers the commands the command line knows: each id with the name a person types for it, its aliases, its title, its menu path, whether it asks for its input in prompts, and whether the command line may start it; `search` keeps the commands whose id, name, title or an alias contains it."
canonical: "https://developer.kition.ai/docs/kits/cad/commands/command.list"
---

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

# command.list

**Command List.** Answers the commands the command line knows: each id with the name a person types for it, its aliases, its title, its menu path, whether it asks for its input in prompts, and whether the command line may start it; `search` keeps the commands whose id, name, title or an alias contains it.

- Kit: CAD 0.1.0 (.dxf); reference: [CAD kit commands](https://developer.kition.ai/docs/kits/cad.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `search` | `string` | no |  |

## Call through cad_run

```text
cad_run {
  "path": "<file>.dxf",
  "steps": [{ "command": "command.list" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `search`. cad_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `commands` | `object[]` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "commands": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "aliases": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "commandLine": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "interactive": {
            "type": "boolean"
          },
          "menu": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "search": {
      "type": "string"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/cad-darwin-arm64@0.1.0 and the kit itself (cad_commands through @kition/cli@0.1.1, built from KitionAI/kition-cad@1ec542d).
