Skip to content

hardis:org:data:import

Description

Import/Load data in an org using a SFDX Data Loader Project

If you need to run this command in a production org, you need to either:

  • Define sfdmuCanModify in your .sfdx-hardis.yml config file. (Example: sfdmuCanModify: prod-instance.my.salesforce.com)
  • Define an environment variable SFDMU_CAN_MODIFY. (Example: SFDMU_CAN_MODIFY=prod-instance.my.salesforce.com)

See article:

How to detect bad words in Salesforce records using SFDX Data Loader and sfdx-hardis

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.
no-prompt
-r
boolean Do not prompt for Org, use default org
path
-p
option Path to the sfdmu workspace folder
project-name
-n
option Name of the sfdmu project to use (if not defined, you will be prompted to select one)
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:org:data:import
$ sf hardis:org:data:import --project-name MyDataProject --target-org my-org@example.com
$ sf hardis:org:data:import --path ./scripts/data/MyDataProject --no-prompt --target-org my-org@example.com
$ SFDMU_CAN_MODIFY=prod-instance.my.salesforce.com sf hardis:org:data:import --project-name MyDataProject --target-org prod@example.com