Aliasfy Packages - Merge Mode
Last updated
Was this helpful?
Last updated
Was this helpful?
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 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
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.