Newer Version Available

This content describes an older version of this product. View Latest

Create a Snapshot for Use with Namespaced Scratch Orgs

You can use a namespace when creating a scratch org from a snapshot. That way, you can deploy namespaced metadata to the scratch org. However, you can���t use a namespaced scratch org to create a snapshot. Snapshots are intended to include only dependent packages, metadata, and test data.
  1. Create and register the namespace in the Dev Hub org and add it to the sfdx-project.json file.
  2. When you create the scratch org that you plan to use as the source of the snapshot, be sure to indicate the --no-namespace flag.
  3. Create the scratch org snapshot.
  4. Create a scratch org based on the snapshot.