Skip to content

toggleInstallCommunityPlugin

Installs or uninstalls a community plugin to match the desired state. Delegates to installCommunityPlugin / uninstallCommunityPlugin, so it is idempotent.

Import:

import { toggleInstallCommunityPlugin } from 'obsidian-dev-utils/obsidian/community-plugins';

Signature:

function toggleInstallCommunityPlugin(params: ToggleInstallCommunityPluginParams): Promise<void>

Parameters:

ParameterTypeDescription
paramsToggleInstallCommunityPluginParamsThe ToggleInstallCommunityPluginParams.

Returns: Promise<void> — A Promise that resolves once the plugin matches the desired installed state.


Links to this page: