Create Scratch Org
sf_create_scratch_orgSet up a temporary Salesforce scratch org for development and testing. Provide alias, duration, and Dev Hub to get an isolated environment.
Instructions
Creates a Salesforce scratch org using the SF CLI. Scratch orgs are temporary, configurable environments for development and testing. Requires a Dev Hub org to be authorized.
definitionFile: path to project-scratch-def.json (optional, defaults to CLI default) alias: alias for the scratch org duration: number of days before expiry (1–30) devHubAlias: Dev Hub org alias
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | No | Alias for the scratch org | |
| duration | No | Scratch org duration in days (1-30) | |
| devHubAlias | No | Dev Hub org alias | |
| definitionFile | No | Path to project-scratch-def.json (optional) |