sfp-pro | sfp (community) | |
---|---|---|
The sfp pool sandbox init
command is used to create and initialize a pool of Salesforce sandboxes.
-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
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 pool
sourceSB
: Source sandbox name (use 'production' for creating from scratch)
branch
: Git branch associated with this pool
defaultExpirationHours
: (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)
Reads the configuration file
Authenticates with GitHub
Creates sandboxes for each pool configuration
Sets up GitHub repository variables for tracking sandboxes
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'.
Availability
✅
❌
From
September '24