
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@salesforce/plugin-telemetry
Advanced tools
A plugin to record command usage and error telemetry for the Salesforce CLI.
This plugin is bundled with the CLI and will automatically collect usage data on all commands and plugins. To disable data collection, see this help document.
Note: This plugin should be included at a CLI level ONLY. No CLI plugins should include or depend on this plugin.
All command usage is recorded by initializing on the init oclif hook, recording all events to a log file, then spawning a process on exit to send the data to appinsights.
To debug the telemetry spawned process, run a command with the environment variables SF_TELEMETRY_DEBUG=true and DEBUG=sf:telemetry.
SF_TELEMETRY_DEBUG=true DEBUG=sf:telemetry* ./bin/dev telemetry
To build the plugin locally, make sure to have yarn installed and run the following commands:
# Clone the repository
git clone git@github.com:salesforcecli/plugin-telemetry
# Install the dependencies and compile
yarn install
yarn build
To use your plugin, run using the local ./bin/dev or ./bin/dev.cmd file.
# Run using local run file.
./bin/dev telemetry
There should be no differences when running via the Salesforce CLI or using the local run file. However, it can be useful to link the plugin to do some additional testing or run your commands from anywhere on your machine.
# Link your plugin to the sfdx cli
sf plugins:link .
# To verify
sf plugins
FAQs
Command usage and error telemetry for the Salesforce CLI
The npm package @salesforce/plugin-telemetry receives a total of 174,711 weekly downloads. As such, @salesforce/plugin-telemetry popularity was classified as popular.
We found that @salesforce/plugin-telemetry demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 47 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.