<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`Command`](Command) › [`callback`](Command/callback)
## Command.callback property
Simple callback, triggered globally.
**Signature:**
```typescript
callback?: () => any;
```
## Example
```ts
this.addCommand({
id: 'print-greeting-to-console',
name: 'Print greeting to console',
callback: () => {
console.log('Hey, you!');
},
});
```