The @salesforce/core library provides client-side management of Salesforce DX projects, org authentication, connections to Salesforce APIs, and other utilities. Much of the core functionality that powers the Salesforce CLI plugins comes from this library. You can use this functionality in your plugins too.
AuthInfo, Org, and Connection classes to interact with Salesforce orgs.
Messages class to work with messages in Markdown, JSON, or JavaScript.
ConfigFile class to work with configuration files.
SfError class to throw errors from your plugin.
SfProject class to work with Salesforce project directories.
A collection of commonly needed utilities. It includes high level support for parsing and working with JSON data, interacting with environment variables, a minimal lodash replacement, and support for common design patterns.
Testing library that provides utilities to write NUTs (non-unit-tests), such as integration, smoke, and e2e style testing. For example, you can write tests to make sure your plugin commands execute correctly using an isolated Salesforce project, scratch org, and different Salesforce CLI executables
The underlying framework of the entire Salesforce CLI and all its plugins.
You don’t need to know much about this library to develop your plugin. But in case you’re curious, here are the docs.
Third-Party Libraries
We encourage you to use libraries written by other developers in the npm community. Be sure, however, that you do your due diligence to make sure that you’re using libraries that are well-maintained by trustworthy developers.