Skip to content

Plugin.addCommand method

Plugin › addCommand

Official

Register a command globally. Registered commands will be available from the https://help.obsidian.md/Plugins/Command+palette Command palette. The command id and name will be automatically prefixed with this plugin's id and name.

Signature:

addCommand(command: Command): Command

Parameters:

Parameter Type Description
command Command

Returns: Command

Since: 0.9.7