Salesforce CLI
Work In Progress
This page is a work in progress, accuracy of the content is not guaranteed and is subject to change at any time.
The Salesforce CLI is a powerful tool that allows developers to interact with Salesforce orgs in a programmatic way. It's a command line tool that can be used for deployment and retrieval of metadata, creating Sandboxes or Scratch orgs, and creating records, amongst other things.
danger
The SFDX CLI has been deprecated and replaced by the SF CLI. Any use of the SFDX CLI and its associated commands should be replaced with the SF CLI.
Installation
The Salesforce CLI can be installed by following the instructions on the official Salesforce documentation.
tip
We recommend installing the CLI via npm as it allows for easy management of the CLI version. For example, pinning the version due to issues with a newer version, or setting it on a project by project basis.