force:data:bulk:* Commands Migration

We added four new sf commands that use Bulk API 2.0 to upsert and delete data to and from your org. All the sfdx commands use Bulk API 1.0.

If you’re still using version 7 of the sfdx executable of Salesforce CLI (also referred to as sfdx (v7)), move to version 2 of the sf executable (sf (v2)). See Move from sfdx (v7) to sf (v2) for details.

Note

These new sf commands use Bulk API 2.0.

  • data delete bulk
  • data delete resume
  • data upsert bulk
  • data upsert resume

We generally recommend that you start using the new sf commands instead of these equivalent sfdx commands that use Bulk API 1.0.

  • force:data:bulk:delete
  • force:data:bulk:upsert
  • force:data:bulk:status

However, one reason to keep using the force:data:bulk:upsert command is if you want to run the upsert serially with the --serial flag. The new Bulk API 2.0 commands don’t support serial execution. For this reason, and for users who want to continue using Bulk API 1.0, we aren’t deprecating the force:data:bulk:* commands at this time.