# management Documentation: [Chrome Management API](https://developer.chrome.com/docs/extensions/reference/management) A promise-based wrapper for the Chrome `management` API to manage extensions and apps. ## Methods - [createAppShortcut(id)](#createAppShortcut) - [generateAppForLink(url, title)](#generateAppForLink) - [getExtensionInfo(id)](#getExtensionInfo) - [getAllExtensionInfo()](#getAllExtensionInfo) - [getPermissionWarningsById(id)](#getPermissionWarningsById) - [getPermissionWarningsByManifest(manifestStr)](#getPermissionWarningsByManifest) - [getCurrentExtension()](#getCurrentExtension) - [launchExtensionApp(id)](#launchExtensionApp) - [setExtensionEnabled(id, enabled)](#setExtensionEnabled) - [setExtensionLaunchType(id, launchType)](#setExtensionLaunchType) - [uninstallExtension(id, showConfirmDialog?)](#uninstallExtension) - [uninstallCurrentExtension(showConfirmDialog?)](#uninstallCurrentExtension) ## Events - [onExtensionDisabled(callback)](#onExtensionDisabled) - [onExtensionEnabled(callback)](#onExtensionEnabled) - [onExtensionInstalled(callback)](#onExtensionInstalled) - [onExtensionUninstalled(callback)](#onExtensionUninstalled) --- ### createAppShortcut ``` createAppShortcut(id: string): Promise ``` Creates a desktop shortcut for the specified app ID. ### generateAppForLink ``` generateAppForLink(url: string, title: string): Promise ``` Generates a Chrome app for the given URL and title, returning its extension info. ### getExtensionInfo ``` getExtensionInfo(id: string): Promise ``` Retrieves information about the extension or app with the specified ID. ### getAllExtensionInfo ``` getAllExtensionInfo(): Promise ``` Retrieves information about all installed extensions and apps. ### getPermissionWarningsById ``` getPermissionWarningsById(id: string): Promise ``` Gets permission warning messages for the specified extension ID. ### getPermissionWarningsByManifest ``` getPermissionWarningsByManifest(manifestStr: string): Promise ``` Gets permission warning messages for the given manifest string. ### getCurrentExtension ``` getCurrentExtension(): Promise ``` Retrieves information about the current extension. ### launchExtensionApp ``` launchExtensionApp(id: string): Promise ``` Launches the specified extension app by ID. ### setExtensionEnabled ``` setExtensionEnabled(id: string, enabled: boolean): Promise ``` Enables or disables the specified extension or app. ### setExtensionLaunchType ``` setExtensionLaunchType(id: string, launchType: string): Promise ``` Sets the launch type (for example, regular or pinned) for the specified extension. ### uninstallExtension ``` uninstallExtension(id: string, showConfirmDialog?: boolean): Promise ``` Uninstalls the extension with the given ID, optionally showing a confirmation dialog. ### uninstallCurrentExtension ``` uninstallCurrentExtension(showConfirmDialog?: boolean): Promise ``` Uninstalls the current extension, optionally showing a confirmation dialog. ### onExtensionDisabled ``` onExtensionDisabled( callback: (info: chrome.management.ExtensionInfo) => void ): () => void ``` Adds a listener that fires when an extension or app is disabled. Returns an unsubscribe function. ### onExtensionEnabled ``` onExtensionEnabled( callback: (info: chrome.management.ExtensionInfo) => void ): () => void ``` Adds a listener that fires when an extension or app is enabled. Returns an unsubscribe function. ### onExtensionInstalled ``` onExtensionInstalled( callback: (info: chrome.management.ExtensionInfo) => void ): () => void ``` Adds a listener that fires when an extension or app is installed. Returns an unsubscribe function. ### onExtensionUninstalled ``` onExtensionUninstalled( callback: (extensionId: string) => void ): () => void ``` Adds a listener that fires when an extension or app is uninstalled, passing its ID. Returns an unsubscribe function.