scratch-org-management

Automate Salesforce scratch org lifecycle management with the Salesforce CLI.

2|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/bhanu91221/claude-sfdx-iq --skill scratch-org-management
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scratch-org-management
Source: https://github.com/bhanu91221/claude-sfdx-iq/tree/main/skills/scratch-org-management
Command: npx skills add https://github.com/bhanu91221/claude-sfdx-iq --skill scratch-org-management

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scratch org management is often manual, error-prone, and slow when coordinating definition, creation, data seeding, and pooling. This skill standardizes and automates those tasks for Salesforce development teams.

Core Features & Use Cases

  • Scratch org definition and lifecycle automation: define orgs with project-scratch-def.json and automate create, push, pull, and delete.
  • Data seeding, org shapes, and snapshots: seed data and reuse org shapes and snapshots to accelerate new environments.
  • Pooling and CI readiness: implement pre-warmed scratch org pools to reduce wait times in development, testing, and CI workflows.

Quick Start

Define your scratch orgs using existing project definitions and begin automating their lifecycle with sf CLI.

Frequently Asked Questions about scratch-org-management

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate scratch org creation and lifecycle management with the Salesforce CLI?

Automate scratch org lifecycle management by defining orgs with project-scratch-def.json, then scripting create, push, pull, and delete operations with the sf CLI to reduce manual errors and wait times across development and CI workflows.

What is the best way to seed data into a Salesforce scratch org?

Scratch org data seeding applies standardized patterns to populate new environments during creation. Automating this seeding process ensures reproducible test data is consistently available for development, QA, and CI workflows without manual setup.

How do scratch org pooling strategies reduce wait times in CI workflows?

Scratch org pooling pre-warms environments by creating them in advance, reducing wait times when CI workflows or developers request an org. This strategy ensures ready-to-use scratch orgs are available immediately instead of waiting for on-demand creation.

Can I reuse org shapes and snapshots to accelerate scratch org creation?

Org shapes and snapshots capture environment configurations for reuse when creating new scratch orgs. Applying these features accelerates environment provisioning by replicating existing settings and metadata instead of building configurations from scratch.

Does this scratch org automation work with existing project-scratch-def.json files?

Yes, scratch org automation uses your existing project-scratch-def.json definitions to specify org configurations. You can begin automating the lifecycle directly with the sf CLI using your current project definitions without needing to redefine your org settings.

Why should I automate scratch org management instead of creating orgs manually?

Manual scratch org management is error-prone and slow when coordinating definition, creation, data seeding, and pooling. Automating these tasks standardizes the process, reduces errors, and ensures reproducible environments across development, QA, and CI workflows.