Sandbox Pool Initialization
sfp-pro | sfp (community) | |
---|---|---|
Availability | ✅ | ❌ |
From | September '24 |
The sfp pool sandbox init
command is used to create and initialize a pool of Salesforce sandboxes.
Usage
Flags
-f, --poolconfig=<path>
: Path to the sandbox pool configuration file (default: 'config/sandbox-pool-config.json')-v, --targetdevhubusername=<devhub-alias>
: Alias of the target Dev Hub org-r, --repo=<owner/repo>
: GitHub repository in the format owner/repo
Configuration File
The configuration file should be a JSON file containing an array of pool configurations. Each configuration should include:
pool
: Name of the sandbox pool (will be converted to uppercase)count
: Number of sandboxes to create for this poolsourceSB
: Source sandbox name (use 'production' for creating from scratch)branch
: Git branch associated with this pooldefaultExpirationHours
: (Optional) Default expiration time in hours (default: 24)extendedExpirationHours
: (Optional) Extended expiration time in hours (default: 24)averageOrgCreationTime
: (Optional) Average time in hours for sandbox creation (default: 2)
Process
Reads the configuration file
Authenticates with GitHub
Creates sandboxes for each pool configuration
Sets up GitHub repository variables for tracking sandboxes
Example
This command initializes sandbox pools as defined in my-sandbox-pools.json
, using the Dev Hub 'my-devhub', and creates corresponding variables in the GitHub repository 'myorg/myrepo'.
Last updated