Salesforce CLI Command Reference
Spring '26 (API version 66.0)
Winter '26 (API version 65.0)
Summer '25 (API version 64.0)
Spring '25 (API version 63.0)
Winter '25 (API version 62.0)
Summer '24 (API version 61.0)
Spring '24 (API version 60.0)
Winter '24 (API version 59.0)
Summer '23 (API version 58.0)
Spring '23 (API version 57.0)
Winter '23 (API version 56.0)
Summer '22 (API version 55.0)
Spring '22 (API version 54.0)
Winter '22 (API version 53.0)
Summer '21 (API version 52.0)
Spring '21 (API version 51.0)
Winter '21 (API version 50.0)
Summer '20 (API version 49.0)
Spring '20 (API version 48.0)
Winter '20 (API version 47.0)
Summer '19 (API version 46.0)
Spring '19 (API version 45.0)
Winter '19 (API version 44.0)
Summer '18 (API version 43.0)
Spring '18 (API version 42.0)
Winter '18 (API version 41.0)
Summer '17 (API version 40.0)
Help for Salesforce CLI Commands
CLI Deprecation Policy
force Namespace
Commands to develop on the Salesforce Platform.
-
alias Commands
Use the alias commands to manage username aliases. -
analytics Commands
Work with analytics assets. -
apex Commands
Use the apex commands to create Apex classes, execute anonymous blocks, view your logs, run Apex tests, and view Apex test results. -
auth Commands
Use the auth commands to authorize a Salesforce org for use with the Salesforce CLI. -
community Commands
Use the community commands to create and publish a community, and view a list of available templates in you org. -
config Commands
Use the config commands to view and set your Salesforce CLI configuration values. Set your default Dev Hub and scratch org, and your default instance URL, either globally or at the project level. -
data Commands
Use the data commands to manipulate records in your org. Commands are available to help you work with various APIs. Import CSV files with the Bulk API. Export and import data that includes master-detail relationships with the SObject Tree Save API. Perform simple CRUD operations on individual records with the REST API. -
lightning Commands
Use the lightning commands to create Aura components and Lightning web components and to test Aura components. As of API version 45.0, you can build Lightning components using two programming models: Lightning Web Components, and the original model, Aura Components. Lightning web components and Aura components can coexist and interoperate on a page. -
limits Commands
Use the limits commands to view your org’s limits and how close you are to reaching them. -
mdapi Commands
Use the mdapi commands to retrieve and deploy Metadata API–formatted files that represent components in an org, or to convert Metadata API–formatted metadata into the source format used in Salesforce DX projects. -
org Commands
Use the org commands to manage the orgs you use with Salesforce CLI. Create and delete scratch orgs, list your created and authorized orgs, and open orgs in your browser. -
package Commands
Use the package commands to develop and install packages. -
package1 Commands
Use the package1 commands to create and view first-generation package versions in your Dev Hub org. -
project Commands
Use the project commands to set up a Salesforce DX project. -
schema Commands
Use the schema commands to view information about the standard and custom objects in your org. -
source Commands
Use the source commands to push and pull source to and from your scratch orgs, to deploy and retrieve source to and from non-source-tracked orgs, to see synchronization changes between your project and scratch orgs, and to convert your source to the metadata format for Metadata API deployments. -
user Commands
Use the user commands to perform user-related admin tasks. -
visualforce Commands
Use the visualforce commands to create Visualforce pages and components.