What are the benefits of using a scratch org pool?
What are the different types of scratch org pools?
How do I set up a scratch org pool?
What is the prepare command?
How do I use the prepare command?
Time to Complete: 90 Minutes
What is a Scratch Org Pool?
We discussed what scratch orgs are in an earlier section. While scratch orgs are a great way of developing on the Salesforce platform, the time it takes to spin up an org and install all the dependencies grows with each iteration of development. What [email protected] has done is taken the scratch org capability and extended it to create a "pool" of scratch orgs available for development or for use as 'Just in time' Continuous Integration environments used for validating changes in your org.
A pool that can be used by developers to work on features. These scratch org pools will typically have a longer duration.
A pool that is used in your validation stage during the Continuous Integration pipeline
We will be discussing type 1 in this module and will do a "part 2" in the next module.
The prepare command, which is a part of the orchestrator functionality of sfpowerscripts was introduced in 2020 and provides scratch org pooling, specifically tailored for use in your CICD platform.
Prepare command helps you to build a pool of prebuilt scratch orgs which include managed packages as well as packages in your repository. This process allows you to considerably cut downtime in re-creating a scratch org during the validation process when a scratch org is used as a Just-in-time CI environment.
Options available for the prepare command are here:
You can also use the command below in the terminal to get more information