busbar-actions/Busbar — sf-org-create

Create a Salesforce scratch org via direct API (no sf CLI). Auths the DevHub via busbar-auth and emits the new orgs credentials.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 7, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: busbar-actions/sf-org-create@fba369c5b186c83868b7fbf6be7a8ad343238ffa # no releases — HEAD as of 2026-07-11

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
target-instancePRIMARY OIDC path: instance URL of the Busbar-equipped DevHub to mint a short-lived token against (e.g. busbar-pilot-demo2). Passed to the binary as SF_INSTANCE_URL; with `id-token: write` granted, busbar-auth OIDC-exchanges in-process (no SF_ACCESS_TOKEN handoff).no""
org-nameOrg name for the new scratch.yes
admin-emailAdmin email for the scratch.yes
editionEdition (Developer, Enterprise, Group, Professional, Partner Developer, …).noDeveloper
duration-daysDuration in days (1..=30).no7
namespaceOptional namespace.no""
featuresOptional comma-separated features list.no""
descriptionOptional description.no""
snapshotOptional snapshot name or id (create-from-snapshot).no""
credentials-outputPath to write the resulting credentials JSON.no.busbar/scratch-credentials.json
settingsInline scratch-org-definition `settings` object as JSON. Deployed to the new org via the Metadata API after creation. Takes precedence over definition-file.no""
definition-filePath to a scratch-org-definition JSON; its `settings` block is deployed to the new org after creation.no""
busbar-packagebusbar (core) package version (04t id or alias) to install via the full Busbar setup sequence (packages, ECA policy, permset, handler, trust rules), run IN-PROCESS immediately after the new org's AuthCode is redeemed — the admin session never leaves the binary. Empty (default) skips setup entirely: the org is only created, matching prior behavior.no""
github-packagebusbar-github (adapter) package version (04t id or alias) to install. Required if busbar-package is set.no""
trust-specsPath to a trust-rule spec file/directory (relative to the checked-out repo) to establish OIDC trust during setup. Only used when busbar-package is set. Empty (default) skips the trust phase.no""
hub-instance-urlInstance URL of a Busbar Hub org to register the new org with. Only used when busbar-package is set. Empty (default) skips Hub registration.no""
org-typeType of org to create: scratch (default), sandbox, trial. NOT YET IMPLEMENTED in the binary — currently ignored.noscratch
template-idTemplate ID (for Trial orgs).no""
companyCompany name (for Trial orgs).no""
first-nameAdmin First Name (for Trial orgs).no""
last-nameAdmin Last Name (for Trial orgs).no""
sandbox-license-typeSandbox license type (Developer, Developer_Pro, Partial, Full).noDeveloper
source-idSource org ID for cloning (for Sandbox orgs).no""
versionRelease tag of the sf-org-create binary. Falls back to env.BUSBAR_ACTION_VERSION, then "latest".no""
binary-repoGitHub repo hosting prebuilt binary releases. Falls back to env.BUSBAR_ACTION_REPO, then busbar-actions/actions-dist.no""
namedescription
scratch_org_info_idThe DevHub-side ScratchOrgInfo record id.
scratch_org_idThe created scratch orgs 15-char id.
usernameThe created scratch orgs admin username.
login_urlLogin URL for the created scratch org.
credentials-pathPath to the JSON file containing the new orgs credential context.