Salesforce CLI

Salesforce Delete Scratch org using sf cli

Sometimes we need to delete existing scratch org. Here is the command to delete it. Before we delete any scratch org we need to find the name of the …

Get org information in sf cli in vs code

Display information about an org. Display information about your default org Using following command to get your org details like access token, clien…

Get User details using SF command in terminal

Display Salesforce user details. Display default admin user Information Using following sf command, we can get profile name, org ID, access token, in…

Generate Password for scratch org admin user

By default, every new scratch orgs have one admin user with no password. Use the generate password CLI command to generate or change a password for …

Open connected scratch org from vs code

Open any of  your default scratch org, or another specified org, in a browser from salesforce cli terminal or connected VS code. Open default org in …

SF command to Logout of connected orgs

Log out from connected Default org Run the following salesforce cli command to logout from current active org. After running this command it will ask…

Web authorize and Connect org to vs code

Authorize developer org using web login  using the following command to open the default Salesforce login page (https://login.salesforce.com) and you…

List and Remove all expired scratch orgs

List all connected Orgs in Vs Code Using following salesforce cli command to get all salesorce orgs with connection status. sf org list --all Remove …

How to Run Apex tests in an org from VS Code Using SF CLI

We can Execute the apex test classes from vs code ide using salesforce cli. Also run specific test class or, specific test method or test suits with …

Get apex log list and apex log files in sf cli

Using salesforce CLI, we can list all logs or get specific logs form vs code connected orgs. Get list of all apex log files sf cli command Using sf a…

How to run apex code form VS Code using sfdx cli

Using  sf apex run salesforce cli command to run piece of apex code from CLI of vs code and also run any apex file in your project. Execute anonymou…

Create apex class and triggers from salesforce CLI

Creating apex class and apex triggers from salesforce cli is similar. here is some sameple code snippet to create it. Create Apex class form Salesfor…

The Most Frequently Used Salesforce CLI Commands

The Salesforce Command Line Interface (CLI) is a free and open-source tool that streamlines and automates processes across the Salesforce platform.to…

Check Salesforce CLI Version information in cmd

If you want to know about your installed salesforce cli version or want to check if sfdx cli installed on your computer or not. Run the following com…

Update salesfoce CLI to latest version

You can update salesforce cli to latest version with following ways. Open powershell/ bash file then run below command on your choice.  Update Sales…

How to install Salesforce Cli

What is Salesforce CLI? CLI stands for Command Line Interface, Salesforce developed a free and open-source tool that helps simplify and automate task…