@mshanemc/sfdx-migration-automatic
v0.3.1
Published
sfdx-migration-automatic ========================
Downloads
47
Readme
sfdx-migration-automatic
SFDX plugin to dump/load record data to/from CSV files to easily migrate data between orgs
$ npm install -g @mshanemc/sfdx-migration-automatic
$ @mshanemc/sfdx-migration-automatic COMMAND
running command...
$ @mshanemc/sfdx-migration-automatic (-v|--version|version)
@mshanemc/sfdx-migration-automatic/0.3.1 darwin-x64 node-v12.14.0
$ @mshanemc/sfdx-migration-automatic --help [COMMAND]
USAGE
$ @mshanemc/sfdx-migration-automatic COMMAND
...
@mshanemc/sfdx-migration-automatic automig:dump [--json] [--loglevel trace|debug|info|warn|error|fatal]
@mshanemc/sfdx-migration-automatic automig:load [--json] [--loglevel trace|debug|info|warn|error|fatal]
@mshanemc/sfdx-migration-automatic automig:dump [--json] [--loglevel trace|debug|info|warn|error|fatal]
Dump records in Salesforce org to CSV files for migration usage
USAGE
$ @mshanemc/sfdx-migration-automatic automig:dump [--json] [--loglevel trace|debug|info|warn|error|fatal]
OPTIONS
-d, --outputdir=outputdir output directory for dumped CSV files
-f, --config=config dump configuration file
-o, --objects=objects object names to dump, optionally paired with target scope (e.g.
Account,Contact,User:related)
-u, --targetusername=targetusername username or alias for the target org; overrides default target org
--apiversion=apiversion override the api version used for api requests made by this command
--excludebom do not prepend byte order mark (\ufeff) in output files
--json format output as json
--loglevel=(trace|debug|info|warn|error|fatal) [default: warn] logging level for this command invocation
EXAMPLES
$ sfdx automig:dump --targetusername [email protected] --objects Opportunity,Case,Account:related,Task:related
--outputdir ./dump
$ sfdx automig:dump --targetusername [email protected] --config automig-dump-config.json
See code: src/commands/automig/dump.ts
@mshanemc/sfdx-migration-automatic automig:load [--json] [--loglevel trace|debug|info|warn|error|fatal]
Load records from CSV files to Salesforce org, resolving relationships between records
USAGE
$ @mshanemc/sfdx-migration-automatic automig:load [--json] [--loglevel trace|debug|info|warn|error|fatal]
OPTIONS
-d, --inputdir=inputdir (required) directory which includes input data files in CSV
-m, --mappingobjects=mappingobjects list of object and key field name pair to map to existing records
(e.g. User:Email,RecordType:DeveloperName
-u, --targetusername=targetusername username or alias for the target org; overrides default target org
--apiversion=apiversion override the api version used for api requests made by this command
--concise emit brief command output to stdout
--deletebeforeload delete all records in target objects before loading
--json format output as json
--loglevel=(trace|debug|info|warn|error|fatal) [default: warn] logging level for this command invocation
--verbose emit additional command output to stdout
EXAMPLES
$ sfdx automig:load --targetusername [email protected] --inputdir ./data
$ sfdx automig:load --targetusername [email protected] --inputdir ./data --mappingobjects
User:Email,RecordType:DeveloperName
See code: src/commands/automig/load.ts