sfdx-notifications
v2.2.0
Published
[](https://www.npmjs.com/package/sfdx-notifications)
Maintainers
Readme
Notifications for SFDX
Unofficial plugin for SFDX notifications. Adds special hook named "notification" that can be used by other commands to dispatch custom notification.
How to use
If you are using linux, see node-notifier requirements.
Install
sfdx plugins:install sfdx-notificationsManaging notifications
To list all possible commands, use
sfdx notificationsTo test if notifications work on your system, use
sfdx notifications:dispatchYou can register notifications for command by using
sfdx notificaitons:registerIf you want to stop receiving notifications for command, use
sfdx notifications:unregisterTo list registered notifications, use
sfdx notifications:listNotification hook
From version 2.1.0 onwards, notification hook is supported. It can be used to dispatch custom notifications from plugins.
// Notification supported by [node-notifier](https://www.npmjs.com/package/node-notifier)
const notification = {
title: "Your custom title",
message: "Your custom message",
label: "SFDX",
};
return this.config.runHook("notification", { notification });