Scratch Org with Cumulus CI

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 it
python -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.

First of all update the CLI (this is via NPM because that is how I installed the CLI

npm update --global @salesforce/cli

Then update Cumulus

pipx upgrade cumulusci

If you have not used the github code in a little while do the following from the Command Pallet (or use the three dots on the Github menue

Git: Fetch

This will fetch any new branches.

When you are on a branch do a Git Pull (or go to github icon, then three dots, then Pull).

Git: Pull

This will update any code from github to your branch.

  • Change to the branch you want to work on in the scratch org.

  • Create the Scratch Org

    1. This is a Flow built into Salesforce Indicators cumulusci.yml file.

    2. The Scratch Org will be created with 30 days

cci flow run dev_org --org dev
  • Set the org to Default

cci org default dev
  • Open the Org

cci org browser
  • Choose the branch you want to test, and then deploy that branch

cci task run deploy --path force-app/main/default --unmanaged true
Jodie Miners
February 6, 2024

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

Jodie Miners
December 20, 2025

This also initalises Git.