<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`Plugin`](Plugin) › [`addCommand`](Plugin/addCommand)
## Plugin.addCommand() method
Register a command globally. Registered commands will be available from the . The command id and name will be automatically prefixed with this plugin's id and name.
0.9.7
**Signature:**
```typescript
addCommand(command: Command): Command;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>command</code> | [`Command`](Command) | |
**Returns:**
[`Command`](Command)