Project
sfp project layout-assignments extract
sfp project layout-assignments extractUSAGE
$ sfp project layout-assignments extract -s <value> -t <value> [--json] [--strip] [--force] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-s, --source-package=<value> (required) Path of the package whose object-meta.xml files are the starting point (the
dependency magnet)
-t, --target-package=<value> (required) Path of the package that will own the generated layout-assignments.yml
(typically the UI package)
--force Overwrite the target `mutators/layout-assignments.yml` if it already exists. Without
this flag, the command fails when the target file is present so hand-curated entries
aren't silently lost on re-run.
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
--strip Also remove the extracted entries from the source package's object-meta.xml files. Use
this as a one-shot migration; routine stripping should happen at build time via the
`ignoreLayoutAssignments` descriptor flag.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Extract layout assignments from an object package into a YAML file in a UI package
Scan the object-meta.xml files in a source package and write every strippable actionOverride (Flexipage, Visualforce,
LightningComponent) and every recordType compactLayoutAssignment into postDeploy/layout-assignments.yml under the
target package. The target package becomes the source of truth; pair this with the `ignoreLayoutAssignments`
descriptor flag on the source package and `applyLayoutAssignments` on the target package to decouple the dependency
between the two.
EXAMPLES
$ sfp project layout-assignments extract --source-package src/core-crm --target-package src/ui-crm
$ sfp project layout-assignments extract --source-package src/core-crm --target-package src/ui-crm --strip
$ sfp project layout-assignments extract --source-package src/core-crm --target-package src/ui-crm --forcesfp project preflight
sfp project preflightLast updated
Was this helpful?