A simplified Salesforce CLI plugin
npm install simple-sf-cli
> We value your feedback! Please share your thoughts on how we can enhance your ci-cd with SimpleSfCli User Feedback form
Simple SF CLI is a lightweight, 19 kb Node.js-powered command-line tool (unpacked size: ~81kb) crafted to streamline your Salesforce DX (SF) workflows. Convert, package, and deploy your SFDX projects to Salesforce in record-breaking 5-7 secondsโall without Salesforce CLI or plugins.
npx no local installations needed.Before using the simpleSfCli plugin, ensure you meet the following requirements:
- [ ] Create a Private Key and Self-Signed Digital Certificate
Generate a private key and a self-signed digital certificate. This is essential for establishing a secure JWT-based connection with Salesforce.
- [ ] Create a Custom Connected App
Set up a connected app in your Salesforce instance and upload the digital certificate to it. This enables API-based authentication for your application.
If you are not familiar with setting up the JWT flow for Salesforce authentication, please refer to Salesforce's guide:
Create a Private Key and Self-Signed Digital Certificate.
> You do not need to install the Salesforce CLI (sf cli) to complete these steps or use the simpleSfCli plugin. This plugin is designed to simplify interactions with Salesforce without relying on the Salesforce CLI.
- โก Lightning-Fast Deployments: Push your SFDX projects to Sandbox or Production faster than it takes to install Salesforce CLI.
- ๐ Automated package.xml Generation: Leverage Metadata API for seamless deployments.
- โ๏ธ Selective Deployments: Exclude specific metadata components with ease.
- ๐ค CI/CD Ready: Integrates smoothly with tools like GitHub Actions, Bitbucket, and more.
- ๐ Comprehensive Logs: Detailed error tracking for hassle-free debugging.
Elevate your Salesforce deployment game with Simple SF CLI โ the ultimate tool for developers on the move.
Try it now:
``bash`
npm install -g simple-sf-cli
`bash`
simpleSfCli \
--username myUser@example.com \
--clientId myClientId \
--privateKey ./server.key \
--env PRODUCTION \
--exclude Profile,NamedCredential
for instant execution:`bash
npx simple-sf-cli \
--username myUser@example.com \
--clientId myClientId \
--privateKey ./server.key \
--env PRODUCTION \
--exclude Profile,NamedCredential
`$3
`bash
simpleSfCli --helpOptions:
-V, --version output the version number
-u, --username* Salesforce username
-c, --clientId* Salesforce client ID
-k, --privateKey* Salesforce private key
-e, --env* Production or Sandbox [Default]
-e, --exclude List of metadata types to exclude, e.g.,NamedCredential, Profile
-s, --source Path to the SFDX source directory, unless "force-app/main/default"
-h, --help display help for command
-t, --testLevel NoTestRun,RunSpecifiedTests,RunLocalTests,RunLocalTests
-v, --validateOnly Validates the metadata without deployment
Note: * is a Required option
`$3
You can exclude specific metadata types from the deployment using the --exclude option:
`bash
simple-sf-cli --source --output --exclude NamedCredential,Profile
`$3
$3
| Option | Description |
|------------------------------|-------------------------------------------------------------------------------------------------------|
|
-V, --version | Outputs the current version of simpleSfCli. |
| -u, --username* | Required. Specifies the Salesforce username. |
| -c, --clientId* | Required. Specifies the Salesforce Client ID. |
| -k, --privateKey* | Required. Specifies the path to the Salesforce private key file. |
| -e, --env* | Required. Sets the target Salesforce environment. Can be Production or Sandbox (default). |
| -e, --exclude | Excludes specific metadata types from deployment. List metadata types separated by commas. |
| -s, --source | Specifies the path to the SFDX source directory. Defaults to force-app/main/default if not provided. |
| -h, --help` | Displays detailed help for the command. |Note: * is a Required option
---