Newer Version Available
Track Changes Between the Project and Scratch Org
When you start developing, you can change local files in your project directory or
remotely in your scratch org. Before you push local changes to the scratch org or pull remote
changes to the local Salesforce DX project, it’s helpful to see what changes you’ve
made.
If you're working in a Developer or Developer Pro sandbox
instead of a scratch org, see Track Changes Between the Project and the Sandbox (Beta).
-
To view the status of local or remote
files:
1sfdx force:source:status1STATE FULL NAME TYPE PROJECT PATH 2───────────── ───────── ───────── ─────────────────────────────────────────────────── 3Local Deleted MyClass . ApexClass /MyClass.cls-meta.xml 4Local Deleted MyClass . ApexClass /MyClass.cls 5Local Add OtherClass ApexClass /OtherClass.cls-meta.xml 6Local Add OtherClass ApexClass /OtherClass.cls 7Local Add Event QuickAction /Event.quickAction-meta.xml 8Remote Deleted MyWidgetClass ApexClass /MyWidgetClass.cls-meta.xml 9Remote Deleted MyWidgetClass ApexClass /MyWidgetClass.cls 10Remote Changed (Conflict) NewClass ApexClass /NewClass.cls-meta.xml 11Remote Changed (Conflict) NewClass ApexClass /NewClass.cls