Next Steps
Congratulations! You've successfully generated a Salesforce CLI plugin and added a few commands and flags. Now it's time to customize it for your specific purpose. Here are the next steps on your exciting journey:
- Examine the GitHub repos for these core Salesforce CLI plugins so you can learn how Salesforce designed and coded popular commands:
- plugin-deploy-retrieve: Contains source for commands such as
project deploy startandproject retrieve start. - plugin-org: Contains source for commands such as
org create sandbox,org create scratch, andorg list. - plugin-auth: Contains source for commands such as
org login webandorg login jwt. - plugin-packaging: Contains source for the
packagecommands.
- plugin-deploy-retrieve: Contains source for commands such as
- Read our design guidelines and principles to learn how to correctly design your command hierarchy, name your commands and flags, create interactive commands, and more.
- Code your business logic. This step is the "real" development work to implement your new commands. The section assumes that you've run through these Get Started examples and now need reference information to customize your plugin.
- If you run into coding problems, debug your plugin to determine the cause.
- As you write the code, you also write clear and useful messages, such as
--helpcommand output and errors.
- Write robust tests.
- Integrate your plugin with the
doctorcommand. - Maintain your beautiful plugin.
- If you previously created a plugin using the
sfdxframework and libraries, migrate it tosf.
Have fun!