Skip to content

createScratchOrgOnHub

createScratchOrgOnHub(hubAliasOrUsername, options): Promise<CreatedScratchOrg>

Defined in: packages/simply-cicd-core/src/sfOrg.ts:208

Creates a scratch org from a Dev Hub, as sf org create scratch --definition-file … --json does, and returns the same result shape. The org is authenticated and source tracking is enabled, as the CLI’s defaults.

string

The Dev Hub. Must already be authenticated.

CreateScratchOrgOnHubOptions

Promise<CreatedScratchOrg>

If signup fails or doesn’t finish within the wait.