> For the complete documentation index, see [llms.txt](https://leaf.js.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://leaf.js.org/api/plugins/plugin-command.md).

# Plugin Command

API of Plugin Command

## Plugin Command Options

```typescript
interface PluginCommandOptions {
    name: string;
    description: string;
    aliases: string[];
    args: {
        min: number;
        max: number;
    };
    arguments: PluginCommandArgumentsOptions[]
}
```

## Plugin Command Arguments Options

```typescript
interface PluginCommandArgumentOptions {
    name: string;
    optional?: boolean;
    type: "int" 
    | "float" 
    | "value" 
    | "wildcard_int"
    | "wildcard_target" 
    | "operator" 
    | "command_operator"
    | "target" 
    | "file_path" 
    | "integer_range" 
    | "equipment_slots" 
    | "string" 
    | "block_position" 
    | "position" 
    | "message" 
    | "raw_text" 
    | "json" 
    | "block_states" 
    | "command";
}
```
