sfdx-browserforce-plugin
sfdx plugin for executing various tasks using browser automation
Installation
$ sfdx plugins:install @amtrack/sfdx-browserforce-plugin
Usage
$ sfdx browserforce --help
Usage: sfdx browserforce:COMMAND
Help topics, type sfdx help TOPIC for more details:
browserforce:shape commands for shape
$ sfdx browserforce:shape --help
sfdx browserforce:shape commands: (get help with sfdx help browserforce:shape:COMMAND)
browserforce:shape:apply apply an org shape
$ sfdx browserforce:shape:apply --help
Usage: sfdx browserforce:shape:apply
apply an org shape
Flags:
-f, --definitionfile DEFINITIONFILE path to a browserforce definition file
-u, --targetusername TARGETUSERNAME username for the target org
help text for browserforce:shape:apply
Examples
Org Shape
Check and apply org shape for scratch orgs, sandboxes and production orgs
$ sfdx browserforce:shape:apply -f config/browserforce-shape-def.json -u myscratchorg
The schema of the config/browserforce-shape-def.json
is similar to config/project-scratch-def.json
.
"orgPreferences": {
"enabled": [
"ExternalSharing"
]
}
Supported Org Preferences
Sharing Settings
ExternalSharing
CustomerPortal
(Warning: cannot be disabled once enabled)
Planned Features (contributions welcome)
Org Preferences
General Settings
Live Agent Settings
Account Settings
AccountSharedAccounts
(Allow users to relate a contact to multiple accounts)
Contact Field History
Omni-Channel Settings
Email-to-Case Settings
Email to Salesforce
Entitlement Settings
Campaign Influence Settings
Company Information
{
"language": "English",
"locale": "German.*Germany",
"timezone": "Berlin",
"workflowUser": "User User"
}
Changeset Management
Create outbound changesets from a given package.xml
.
$ sfdx browserforce:changeset:create -f src/package.xml -u myscratchorg
Contributing
Please see CONTRIBUTING.md for getting started.
License
MIT © Matthias Rolke