Scratch Org in Salesforce

Scratch Org in Salesforce helps Source Driven Development.

The scratch org is a source-driven and disposable deployment of Salesforce code and metadata, made for developers and automation (CI/CD). A scratch org is fully configurable, allowing developers to emulate different Salesforce editions with different features and preferences.

Scratch Org Expiry:
Specify the scratch org’s duration, which indicates when the scratch org expires (in days).
sfdx force:org:create -f config/project-scratch-def.json --durationdays 30