Salesforce CLI: price, install, telemetry and what it is for

10 facts checked

The official command line tool for deploying metadata, managing orgs, running tests and building packages.

Salesforce CLI is the official command line tool from Salesforce. It deploys and retrieves metadata, creates scratch orgs and sandboxes, runs Apex tests, moves data and builds packages, on your own machine or inside a CI pipeline. It is a free download, open source under the Apache-2.0 license, and almost every other developer tool on this list is built on top of it.

Download Salesforce CLISetup guideSource on GitHub

Price

Free download

Type

Command line

Source code

Open source (Apache-2.0)

Made by

Salesforce

What Salesforce CLI does

  • Deploys and retrieves metadata between a local project and an org.
  • Creates and manages scratch orgs, sandboxes and org logins from the terminal.
  • Creates, versions and installs packages, including the managed packages behind AgentExchange listings.
  • Runs in continuous integration systems, so the same commands work on a laptop and in a pipeline.
  • Accepts plugins. Code Analyzer, sfdx-git-delta and sfdx-hardis on this list are all installed with sf plugins install.

When it helps, and when it does not

Reach for it when

You work with source control, deploy more than a handful of components, build a package, or want a repeatable script instead of clicking through Setup. It is also the base requirement for the VS Code extensions.

Look elsewhere when

You only need to look at a few records or fields. A browser extension such as Salesforce Inspector Reloaded gets you there faster, with nothing to install on the command line.

The full fact sheet

record: Applast checked

Type
Command line tool (the sf executable) for Windows, macOS and Linux source
Price
Free download. Salesforce publishes it as public installers and a public npm package. Its pages carry no price and no paid edition. source
Made by
Salesforce. This is an official Salesforce product. source
Open source
Yes, Apache-2.0 license source
Where your data goes
The CLI runs locally and connects to the orgs you log in to. Salesforce collects anonymous usage telemetry (commands and flags run, performance and error data) and you are enrolled automatically. Opt out with sf config set disable-telemetry=true --global. source
Access needed
The user who connects to an org needs the API Enabled permission source
Latest stable version
2.159.7, published November 11, 2026 source
Usage
584,310 npm downloads in the week of November 17 to 23, 2026 source
Install
npm install @salesforce/cli --global, or the installer for your operating system source
Support
Salesforce supports only the most current version source

First-hand note

The package versions of Org Overview 360, my free app on AgentExchange, were created and promoted with Salesforce CLI packaging commands. The review that followed is written up in I passed the security review in 11 days.

Alternatives and related tools

Nothing else on this list replaces Salesforce CLI. These tools sit on top of it.

The official extension pack that turns Visual Studio Code into the standard Salesforce IDE.

FreeOpen sourceBy Salesforce

One command that runs several static analysis engines over Apex, Lightning components and Flows.

FreeOpen sourceBy Salesforce

sfdx-git-delta

Command line

A Salesforce CLI plugin that builds a package.xml from the difference between two git commits.

FreeOpen source

sfdx-hardis

Command line

An open source toolbox for Salesforce CI/CD pipelines, metadata backup, org monitoring and documentation.

FreeOpen source

All of them side by side: Salesforce developer tools list.

Frequently asked questions

Is Salesforce CLI free?

Yes. Salesforce publishes it as a public download and as the public npm package @salesforce/cli under the Apache-2.0 license. There is no price on its pages and no paid edition.

What is the difference between sf and sfdx?

They are two generations of the same tool. sf (version 2) has been generally available since July 2023 and is the current one. The older sfdx (version 7) is deprecated and has to be uninstalled before you install the new one. The sf executable still understands sfdx style commands.

Does Salesforce CLI send data to Salesforce?

It collects anonymous usage telemetry by default: which commands and flags were run, plus performance and error data. You can turn it off with sf config set disable-telemetry=true --global or by setting the environment variable SF_DISABLE_TELEMETRY=true.

How do I install Salesforce CLI?

Either run npm install @salesforce/cli --global, or download the installer for macOS, Windows or Linux from the Salesforce developer site. The installers bundle Node.js. For the npm route Salesforce recommends the Active LTS version of Node.js.

Which version of Salesforce CLI is supported?

Only the most current one. Salesforce states that it supports only the most current version of Salesforce CLI, so keep it updated before you report a problem.

Sources

Every fact on this page comes from the tool's own pages, read on . Show the 7 pages.

Facts checked against each tool's own pages on November 24, 2026. No tool paid to be listed and there are no affiliate links. Logos belong to their owners and are shown only to identify each tool. Spotted something out of date? info@sfupdates.com.

← All Salesforce toolsSalesforce developer tools list →

📅 Winter '27 Key Dates

Winter '27 Production Rollout
Live on all instances
The rollout is complete.

Spring '27 Sandbox Preview
Jan 8, 2027
Test new features safely before production.

Spring '27 Production Rollout
Jan 16, Feb 6 and Feb 20, 2027
Main release weekends, from Salesforce Trust.