<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`Command`](Command)
## Command interface
**Signature:**
```typescript
export interface Command
```
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [`callback?`](Command/callback) | | <code>() => any</code> | _(Optional)_ Simple callback, triggered globally. |
| [`checkCallback?`](Command/checkCallback) | | <code>(checking: boolean) => boolean | void</code> | _(Optional)_ Complex callback, overrides the simple callback. Used to 'check' whether your command can be performed in the current circumstances. For example, if your command requires the active focused pane to be a MarkdownView, then you should only return true if the condition is satisfied. Returning false or undefined causes the command to be hidden from the command palette. |
| [`editorCallback?`](Command/editorCallback) | | <code>(editor: </code>[`Editor`](Editor)<code>, ctx: </code>[`MarkdownView`](MarkdownView)<code> | </code>[`MarkdownFileInfo`](MarkdownFileInfo)<code>) => any</code> | _(Optional)_ A command callback that is only triggered when the user is in an editor. Overrides <code>callback</code> and <code>checkCallback</code> |
| [`editorCheckCallback?`](Command/editorCheckCallback) | | <code>(checking: boolean, editor: </code>[`Editor`](Editor)<code>, ctx: </code>[`MarkdownView`](MarkdownView)<code> | </code>[`MarkdownFileInfo`](MarkdownFileInfo)<code>) => boolean | void</code> | _(Optional)_ A command callback that is only triggered when the user is in an editor. Overrides <code>editorCallback</code>, <code>callback</code> and <code>checkCallback</code> |
| [`hotkeys?`](Command/hotkeys) | | [`Hotkey`](Hotkey)<code>[]</code> | _(Optional)_ Sets the default hotkey. It is recommended for plugins to avoid setting default hotkeys if possible, to avoid conflicting hotkeys with one that's set by the user, even though customized hotkeys have higher priority. |
| [`icon?`](Command/icon) | | [`IconName`](IconName) | _(Optional)_ Icon ID to be used in the toolbar. See [https://docs.obsidian.md/Plugins/User+interface/Icons](https://docs.obsidian.md/Plugins/User+interface/Icons) for available icons and how to add your own. |
| [`id`](Command/id) | | <code>string</code> | Globally unique ID to identify this command. |
| [`mobileOnly?`](Command/mobileOnly) | | <code>boolean</code> | _(Optional)_ |
| [`name`](Command/name) | | <code>string</code> | Human friendly name for searching. |
| [`repeatable?`](Command/repeatable) | | <code>boolean</code> | _(Optional)_ Whether holding the hotkey should repeatedly trigger this command. |