mergeMode
boolean
Enable deployment of contents of a folder that matches the alias of the environment using merge
source
Availability
✅
❌
From
September 24
mergeMode adds an additional mode for deploying aliasified packages with content inheritance. During package build, the default folder's content is merged with subfolders that matches the org with alias name, along with subfolders able to override inherited content. This reduces metadata duplication while using aliasifed packages.
Note in the image above that the AccountNumberDefault__c
field is replicated in each deployment directory that matches the alias.
The default folder is deployed to any type of environment, including production unlike when only used with aliasfy mode
The table below describes the behavior of each command when merge mode is enabled/disabled.
Default metadata is merged into each subfolder
Deploys subfolder that matches enviroment alias name. If there is no match, then default subfolder is deployed (Including production)
Only default is pushed
Only default is pulled
Default merging not available
Deploys subfolder that matches enviroment alias name. If there is no match, then default subfolder is deployed (Including production)
Default merging not available
Deploys subfolder that matches enviroment alias name. If there is no match, deploys default (Only sandboxes)
Only default is pushed
Only default is pushed
Default merging not available
Deploys subfolder that matches enviroment alias name. If there is no match, fails
Nothing to push
Nothing to pull
When merge mode is enabled, it also supports push/pull commands, the default subfolder is always used during this process, make sure it is not force ignored.
Before merge mode, the whole package was "force ignored." With merge mode, you have the option to allow push/pull from aliasfy packages by not ignoring the default subfolder.
aliasfy
boolean
Enable deployment of contents of a folder that matches the alias of the environment
source
Aliasified packages are available only for Source Package
Aliasify enables deployment of a subfolder in a source package that matches the target org. For example, you have a source package as listed below.
During Installation, only the metadata contents of the folder that matches the alias gets deployed. If the alias is not found, sfp will fallback to the 'default' folder. If the default folder is not found, an error will be displayed saying default folder or alias is missing.
Default folder are only deployed to sandboxes