hardis:scratch:pull
Description
This commands pulls the updates you performed in your scratch or sandbox org, into your local files
Then, you probably want to stage and commit the files containing the updates you want to keep, as explained in this video.
- Calls
sf project retrieve start
under the hood - If there are errors, proposes to automatically add erroneous item in
.forceignore
, then pull again - If you don't see your updated items in the results, you can manually retrieve using SF Extension Org Browser or Salesforce CLI
- If you want to always retrieve sources like CustomApplication that are not always detected as updates by project:retrieve:start , you can define property autoRetrieveWhenPull in .sfdx-hardis.yml
Example:
autoRetrieveWhenPull:
- CustomApplication:MyCustomApplication
- CustomApplication:MyOtherCustomApplication
- CustomApplication:MyThirdCustomApp
Parameters
Name | Type | Description | Default | Required | Options |
---|---|---|---|---|---|
debug -d |
boolean | Activate debug mode (more logs) | |||
flags-dir | option | undefined | |||
json | boolean | Format output as json. | |||
skipauth | boolean | Skip authentication check when a default username is required | |||
target-org -o |
option | undefined | |||
websocket | option | Websocket host:port for VsCode SFDX Hardis UI integration |
Examples
$ sf hardis:scratch:pull