Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including sfdx-migration-automatic with all npm packages installed. Try it out:

sfdx-migration-automatic lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("sfdx-migration-automatic/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

sfdx-migration-automatic v1.5.0

sfdx-migration-automatic

SFDX plugin to dump/load record data to/from CSV files to easily migrate data between orgs

Version CircleCI Appveyor CI Codecov Greenkeeper Known Vulnerabilities Downloads/week License

```sh-session $ npm install -g sfdx-migration-automatic $ sfdx-migration-automatic COMMAND running command... $ sfdx-migration-automatic (-v|--version|version) sfdx-migration-automatic/1.5.0 darwin-x64 node-v8.14.0 $ sfdx-migration-automatic --help [COMMAND] USAGE $ sfdx-migration-automatic COMMAND ... ``` * [`sfdx-migration-automatic automig:dump [--json] [--loglevel trace|debug|info|warn|error|fatal]`](#sfdx-migration-automatic-automigdump---json---loglevel-tracedebuginfowarnerrorfatal) * [`sfdx-migration-automatic automig:load [--json] [--loglevel trace|debug|info|warn|error|fatal]`](#sfdx-migration-automatic-automigload---json---loglevel-tracedebuginfowarnerrorfatal)

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
  $ 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 username@example.com --objects Opportunity,Case,Account:related,Task:related 
  --outputdir ./dump
  $ sfdx automig:dump --targetusername username@example.com --config automig-dump-config.json

See code: src/commands/automig/dump.ts

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
  $ 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

  --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 username@example.com --inputdir ./data
  $ sfdx automig:load --targetusername username@example.com --inputdir ./data --mappingobjects 
  User:Email,RecordType:DeveloperName

See code: src/commands/automig/load.ts

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free