Layout Assignments
@flxbl-io/sfp project layout-assignments
@flxbl-io/sfp project layout-assignments@flxbl-io/sfp project layout-assignments extract
@flxbl-io/sfp project layout-assignments extractUSAGE
$ @flxbl-io/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)
--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.
--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>
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Extract layout assignments from an object package into a YAML file in a UI package
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 --forceLast updated
Was this helpful?