I am able to create a community and have a build-in sample community page deployed by executing sfdx force:source:push
command and having the following definition file:
{
"orgName": "Demo Company",
"edition": "Developer",
"features": ["Communities", "Sites"],
"settings": {
"orgPreferenceSettings" : {
"s1DesktopEnabled": true,
"networksEnabled": true
}
}
}
After push and running sfdx force:org:open -u SCRATCH_ALIAS
I can view a sample page in a builder:
However I do not see a way to execute the publishing action (marked with red arrow in screenshot) via sfdx
tool.
I am thinking of trying to hack a curl
command as a workaround, however I would prefer not to have to create a user and password for the scratch org, if it can be avoided (to me it seems a curl approach might be fragile solution).
Any tips are greatly welcome.