Skip to content

forcedotcom/sf-skills / plugins/builder/salesforce-development/skills/dx-org-manage

dx-org-manage

Verified

Use to EXECUTE Salesforce org operations immediately via the sf CLI (this skill runs them, it does NOT generate scripts): create scratch orgs (from edition, definition file, snapshot, or org shape), list/display/resume/delete scratch orgs, open orgs in browser. Trigger: 'create scratch org', 'create org from snapshot', 'delete scratch org', 'open my org'. Do NOT use for switching the default org (use dx-org-switch), deploying metadata (use platform-metadata-deploy), or creating/checking/listing/deleting org snapshots (use dx-org-snapshot-manage).

references/cli_flags.md

View on GitHub
# CLI Flags Reference

Complete reference for `sf org create snapshot` command flags.

## Required Flags

| Flag | Alias | Description | Example |
|------|-------|-------------|---------|
| `--source-org` | `-o` | ID or authenticated username/alias of scratch org to snapshot | `--source-org my-scratch` |
| `--name` | `-n` | Unique name for the snapshot | `--name MySnapshot` |
| `--target-dev-hub` | `-v` | Dev Hub org username or alias (required unless default is set) | `--target-dev-hub DevHub` |

## Optional Flags

| Flag | Alias | Description | Example |
|------|-------|-------------|---------|
| `--description` | `-d` | Description of snapshot contents | `--description "Package v1.2.0"` |
| `--api-version` | | Override the API version used for API requests | `--api-version 66.0` |

## Global Flags

| Flag | Description |
|------|-------------|
| `--json` | Format output as JSON (ALWAYS use this) |

## Usage Patterns

### Basic Snapshot Creation

```bash
sf org create snapshot --source-org my-scratch --name MySnapshot --json
```

### With Description

```bash
sf org create snapshot \
  --source-org my-scratch \
  --name MySnapshot \
  --description "Baseline with Package v1.2.0" \
  --json
```

### Using Org ID Instead of Alias

```bash
sf org create snapshot \
  --source-org 00D5g00000001XyEAI \
  --name MySnapshot \
  --json
```

### Specify Dev Hub Explicitly

```bash
sf org create snapshot \
  --source-org my-scratch \
  --name MySnapshot \
  --target-dev-hub MyDevHub \
  --json
```

## Important Notes

- **Source org auto-resolution**: Accepts org ID (starts with 00D) or username/alias — aliases are automatically resolved to org IDs
- **Description best practice**: Include version control reference (git tag, commit SHA) to track snapshot contents
- **Asynchronous creation**: Snapshot creation happens asynchronously — use `sf org get snapshot` to check status
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