Skip to content

forcedotcom/sf-skills / plugins/builder/dx-org-lifecycle/skills/dx-org-devhub-configure

dx-org-devhub-configure

Verified

Enable Dev Hub on a Salesforce org, view its status and scratch org allocation, or read its current DevHubSettings preferences, using the Salesforce CLI (sf). Use when someone wants to turn on or enable Dev Hub, set up an org for scratch orgs or 2GP/unlocked packages, check whether Dev Hub is already enabled, see scratch org allocation (Active/Daily limits, remaining, and a pre-flight warning near the limit), see which Dev Hub preferences (packaging, org shape export, scratch org snapshots) are on or off, configure those preferences, list active scratch orgs, or list authenticated orgs when none is specified. Enabling deploys enableScratchOrgManagementPref, is irreversible, needs a System Administrator (ModifyAllData or ModifyMetadata), and does not work in sandboxes. DO NOT TRIGGER for creating or deleting individual scratch orgs.

FileKindSize
SKILL.mdskill md15.0 KB
examples/status-output.mdmarkdown2.6 KB
scripts/devhub.shexecutablescript34.6 KB
scripts/test-devhub.shexecutablescript8.6 KB

examples/status-output.md

View on GitHub
# Output examples

Sample `devhub.sh` transcripts to calibrate what to expect and how to relay it.
These are reference only — the script prints the authoritative output at runtime.

## Dev Hub is ON (status + allocation)

`status` mode prints the enablement line, the org edition, the signup-record
count, a one-line summary of which preferences are on, and the allocation table.

```text
Dev Hub status for 'MyDevHub':
  Dev Hub: ENABLED  (ScratchOrgInfo is queryable)
  Edition: Developer Edition
  Scratch org signup records: 3
  Enabled preferences: enableScratchOrgManagementPref enableScratchOrgSnapshotPref

Scratch org allocation for 'MyDevHub':
  Limit                        Used  Remaining        Max
  Active scratch orgs             2          1          3
  Daily scratch orgs              5          1          6
  WARN: only 1 active scratch org(s) remaining.
  NOTE: Daily scratch org usage at 83% (5/6).

  Active = orgs alive right now; Daily = successful creations in a rolling 24h window.
  Allocation is set by the Dev Hub's edition (e.g. Developer/trial 3 & 6;
  Enterprise 40 & 80; Unlimited/Performance 100 & 200) plus any purchased add-on.
```

## Current preferences (`--show-settings`)

`--show-settings` prints every `DevHubSettings` preference with an explicit
ON/OFF, one per line (requires Dev Hub to already be enabled).

```text
DevHub preferences for 'MyDevHub':
  enableScratchOrgManagementPref     ON
  enablePackaging2                   OFF
  enableScratchOrgSnapshotPref       ON
  enableShapeExportPref              OFF
```

## Dev Hub is OFF (prints how to enable it)

```text
Dev Hub status for 'my-org':
  Dev Hub: NOT ENABLED
  Detection: ScratchOrgInfo is queryable only when Dev Hub is on. A successful count means ENABLED. An INVALID_TYPE error means NOT ENABLED. Scratch org limits are not used, because they are reported even when Dev Hub is off.

  Scratch org allocation, Dev Hub preferences, and the scratch org list are not available until Dev Hub is enabled. An empty allocation or a failed exit from those modes means Dev Hub is off, not that the org is unauthenticated.

  Enable it (deploys enableScratchOrgManagementPref=true; irreversible):
    devhub.sh "my-org" --enable            # validate first (dry run)
    devhub.sh "my-org" --enable --apply    # actually enable
  Requires ModifyAllData or ModifyMetadata (System Administrator);
  not allowed in a sandbox or an org with a registered namespace.

  Manual alternative (Setup UI):
    1. Log in as a System Administrator.
    2. Setup > Quick Find > "Dev Hub" > Dev Hub > turn Enable Dev Hub On.
    Open it directly: sf org open --path "lightning/setup/DevHub/home" --target-org "my-org"
```
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall