Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Create and Manage Org Shapes
An org shape captures Metadata API settings, not all metadata types. For example, customizations that appear in the org, such as Lightning Experience Themes, aren’t included as part of org shape. See Settings in the Metadata API Guide for the complete list.
An org shape includes org preference and permissions. It doesn’t include data entries such as AddressSettings.
-
Authorize both your Dev Hub org and the source org. Run this command for each org.
1sf auth web login --alias -
Create the org shape for the source org. This command kicks off an asynchronous process to
create the org shape.
1sf org create shape --target-org <source org username/alias> 2Successfully created org shape for 3SRB0000000TXbnOCG. -
Check the status of the shape:create command.
1sf org shape list1=== Org Shapes 2ALIAS USERNAME ORG ID SHAPE STATUS CREATED BY CREATED DATE 3────── ──────── ────────────────── ──────────── ────────── ───────────── 4SrcOrg me@my.org 00DB1230000Ifx5MAC InProgress me@my.org 2020-08-06You can use the org shape after the status is Active:
1=== Org Shapes 2ALIAS USERNAME ORG ID SHAPE STATUS CREATED BY CREATED DATE 3────── ───────── ────────────────── ──────────── ──────────── ──────────── 4SrcOrg me@my.org 00DB1230000Ifx5MAC Active me@my.org 2020-08-06
If you don’t want to create scratch orgs based on this shape, you can delete the org shape. To delete an org shape:
1sf org delete shape --target-org <username/alias>