PDI · Question #71
What should be used to create scratch orgs?
The correct answer is B. Salesforce CLI. Scratch orgs are temporary, source-driven Salesforce environments primarily created and managed using programmatic tools. The Salesforce CLI is the official and most common tool for creating and interacting with scratch orgs.
Question
What should be used to create scratch orgs?
Options
- ADeveloper Console
- BSalesforce CLI
- CWorkbench
- DSandbox refresh
How the community answered
(42 responses)- A5% (2)
- B93% (39)
- D2% (1)
Why each option
Scratch orgs are temporary, source-driven Salesforce environments primarily created and managed using programmatic tools. The Salesforce CLI is the official and most common tool for creating and interacting with scratch orgs.
The Developer Console is an in-browser IDE for developing Apex, Visualforce, and Lightning components, not for creating scratch orgs.
The Salesforce CLI (Command Line Interface) is the dedicated tool for creating, configuring, and managing scratch orgs. It allows developers to quickly spin up ephemeral Salesforce environments for development and testing by defining the org's shape and features in a `project-scratch-def.json` file.
Workbench is a web-based suite of tools for interacting with Salesforce APIs, primarily for data and metadata operations, not for creating scratch orgs.
Sandbox refresh is an operation for updating existing sandboxes, which are persistent environments, and does not create scratch orgs.
Concept tested: Salesforce CLI and scratch org creation
Source: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_create.htm
Topics
Community Discussion
No community discussion yet for this question.