> For the complete documentation index, see [llms.txt](https://interactiveboard.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://interactiveboard.gitbook.io/docs/functions/game/command.md).

# Command

{% tabs %}
{% tab title="Single command" %}

```yaml
## function name, you can set this to anything that is unique
func1:
  ## function type
  type: command
  ## execute as player or console
  execute-from-console: false
  ## the command (you can use placeholders like %player_name%)
  command: 'warp spawn'
```

{% endtab %}

{% tab title="Multiple commands" %}

```yaml
## function name, you can set this to anything that is unique
func1:
  ## function type
  type: command
  ## execute as player or console
  execute-from-console: true
  ## the command (you can use placeholders like %player_name%)
  command: 
    - 'kit starter'
    - 'warp spawn'
```

{% endtab %}
{% endtabs %}
