Quick Start
System Requirements
Move from sfdx (v7) to sf (v2)
Install Salesforce CLI
Uninstall Salesforce CLI or Plugins
Run Salesforce CLI Using a Docker Image
CLI Deprecation Policy
Next Steps
Release Notes
Previous PDF Versions
Salesforce CLI is a command-line interface that simplifies development and build automation when working with your Salesforce org. Use it to create and manage orgs, synchronize source to and from orgs, create and install packages, and more.
Salesforce CLI is based on oclif, an open-source framework for building command-line interfaces in Node.js. You run it on your local machine or continuous integration (CI) system. It supports the installation of custom plugins.
Are you still using sfdx (v7)? See Move from sfdx (v7) to sf (v2) if so.
Important
Run through these steps to install Salesforce CLI on your computer and optionally configure it for your specific environment.
Read the system requirements to ensure Salesforce CLI works correctly on your computer.
Install Salesforce CLI on your computer.
Follow the documentation for your computer’s operating system, such as Windows or macOS. You can also install using npm or from a TAR file.
Verify that you’ve installed Salesforce CLI correctly by opening a terminal (macOS, Linux) or command prompt (Windows) and running this command to see the list of all available CLI commands.
1sf commandsRun this command to see the version of Salesforce CLI you just installed.
1sf --versionOptionally configure Salesforce CLI so it works exactly how you want.
Here are a few examples of what you can do:
--help output.Read the weekly release notes to learn about new features, changes, and bug fixes.
Congratulations! You can now start using Salesforce CLI for all kinds of fun tasks. For example, read this documentation to learn how to use a sample GitHub repo to get started with Salesforce DX.
See Also