Scratch Org with Cumulus CI
I’m learning CCI to use it for Salesforce Indicators.
CCI is now available in Code Builder. Run the following command to install itpython -m pip install cumulusci
Except I can’t get it to work
So I’m just writing down some of the commands I use to come back to it next time.
CD to the folder of the parent where you want your repo to be.
gh repo clone SFDO-Community/Salesforce-Indicators [foldername]This creates the folder, clones the repo, and initialises Git locally, and sets the Remote to be the Salesforce Indicators repo.
Note you should not have to do this every time - local git should hold any of the changes you want to do, and then you can push them to a new branch when you are ready.
Change to the branch you want to work on in the scratch org.
Create the Scratch Org
This is a Flow built into Salesforce Indicators cumulusci.yml file.
The Scratch Org will be created with 30 days
cci flow run dev_org --org devSet the org to Default
cci org default devOpen the Org
cci org browserChoose the branch you want to test, and then deploy that branch
cci task run deploy --path force-app/main/default --unmanaged true
OR… I tried this today… CD to the folder of the parent where you want your repo to be.
gh repo clone SFDO-Community/Salesforce-Indicators [foldername]
It creates the folder.
Open the folder in VS Code