Skip to content

Universal DevTools Kit SDK


Universal DevTools Kit SDK / @u-devtools/core / PluginCommand

Interface: PluginCommand ​

Defined in: index.ts:61

Command definition for Command Palette (accessible via Cmd+K / Ctrl+K). Commands allow users to quickly access plugin functionality.

Properties ​

action() ​

action: () => void | Promise<void>

Defined in: index.ts:69

Action to execute when command is triggered

Returns ​

void | Promise<void>


icon? ​

optional icon: string

Defined in: index.ts:67

Heroicons icon name (optional)


id ​

id: string

Defined in: index.ts:63

Unique command identifier (e.g., 'my-plugin:clear')


label ​

label: string

Defined in: index.ts:65

Display label in command palette


shortcut? ​

optional shortcut: string[]

Defined in: index.ts:71

Keyboard shortcut keys (e.g., ['Meta', 'K', 'C'])

Released under the MIT License.