🖥️
Building Salesforce CLI Plugins
  • Introduction
  • What are we building?
  • Building CLI Plugin Project
    • Getting Started
    • Schema
    • Publish
    • Subscribe
    • Metrics
  • What's Next?
    • Testing
    • Releasing
    • Thank You!
Powered by GitBook
On this page
  • Prerequisites
  • Learning Resources

Introduction

Extending the Salesforce CLI by Writing Custom Plugins

NextWhat are we building?

Last updated 2 years ago

Learn how to build custom Salesforce CLI plugins using by using Node.js and the Salesforce CLI plugin development framework based in @salesforce/plugin-dev.

Prerequisites

Please make sure you have the following before starting the workshop:

  • Basic understanding of JavaScript, Node.js, and how to use a terminal

  • Basic experience with the Salesforce CLI (sfdx or sf)

  • You can install it using:

    • (Recommended)

  • Git/GitHub

    • If you already have it installed please run: sfdx update

  • A Salesforce Org ()

Learning Resources

oclif
Node.js (v18 LTS Recommended)
Official Binaries
nvm
Volta
Salesforce CLI Installed (latest version)
Visual Studio Code with Salesforce Extensions (Recommended)
Developer Edition is encouraged
[BLOG] Building a Salesforce CLI Plug-In
[BLOG] Building a CLI Application with oclif
[VIDEO] codeLive: How to Build a Salesforce CLI Plug-In?
[VIDEO] codeLive: How to Write NUTS Test Cases for Salesforce CLI Plug-In
[VIDEO] codeLive: Building a CLI Application with oclif
[VIDEO] Build a Salesforce Unified CLI Plugin that generates zen quotes | Mini Hacks Solved
[VIDEO] Build a Salesforce CLI plugin to invoke static methods of an Apex class | Mini Hacks Solved
[VIDEO] codeLive: Build and Design a CLI Plugin for working with Salesforce Bulk API v2.0
[VIDEO] Exploring the sf CLI | Developer Quick Takes
[PODCAST] Salesforce CLI Plugins with Shane McLaughlin | Episode 71
[DOCS] Quick Introduction to Developing sf Plugins
[CODE EXAMPLE] rest-api plugin