Salesforce CLI Command Reference (Beta)
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)
force Namespace
Use commands in the force namespace to develop on
the Force.com platform.
-
alias Commands
Use the alias commands to manage username aliases. -
apex Commands
Use the apex commands to create Apex classes, execute anonymous blocks, view your logs, and run and view the results of Apex tests. -
auth Commands
Use the auth commands to authorize a Salesforce org for use with the Salesforce CLI. -
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. -
doc Commands
Use to display help for force commands. -
lightning Commands
Use the lightning commands to create and test Lightning component bundles. -
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 source into the format used in Salesforce DX projects. -
org Commands
Use the org commands to manage the orgs you use with Salesforce DX. Create and delete scratch orgs, list your created and authorized orgs, and open orgs in your browser. -
package Commands
Use the package commands to install managed and unmanaged packages. -
package1 Commands
Use the package1 commands to create and view package versions in your Dev Hub org. -
package2 Commands (Pilot)
Use the package2 commands to create, install, and manage second-generation packages. -
project Commands
Use the project commands to set up a project in the Salesforce DX format. -
schema Commands
Use the schema commands to view and edit the metadata for 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 see synchronization changes between your project and scratch orgs, and to prepare your source for deployment to non-scratch orgs. -
user Commands
Perform user-related admin tasks. -
visualforce Commands
Use the visualforce commands to create Visualforce pages and components.