PDI · Question #76
A development team wants to use a deployment script lo automatically deploy lo a sandbox during their development cycles. Which two tools can they use to run a script that deploys to a sandbox? Choose
The correct answer is A. VS Code B. SFDX CLI. For automated deployments to a sandbox via scripting, the Salesforce CLI is the primary tool, which can be invoked from various environments, including integrated development environments like VS Code.
Question
A development team wants to use a deployment script lo automatically deploy lo a sandbox during their development cycles. Which two tools can they use to run a script that deploys to a sandbox? Choose 2 answers
Options
- AVS Code
- BSFDX CLI
- CChange Sets
- DDeveloper Console
How the community answered
(39 responses)- A92% (36)
- C3% (1)
- D5% (2)
Why each option
For automated deployments to a sandbox via scripting, the Salesforce CLI is the primary tool, which can be invoked from various environments, including integrated development environments like VS Code.
Visual Studio Code (VS Code) with the Salesforce Extension Pack provides a robust environment for Salesforce development and allows developers to execute Salesforce CLI commands, including deployment scripts, directly from its integrated terminal.
The Salesforce CLI (Command Line Interface) is specifically designed for programmatic interaction with Salesforce orgs, including source code deployment. It is the fundamental tool used in scripts for automated deployments.
Change Sets are an administrative tool within the Salesforce UI for declarative deployments and are not scriptable for automated processes.
The Developer Console is an in-browser IDE for manual code development and execution, not designed for running automated deployment scripts.
Concept tested: Automated deployment tools (Salesforce CLI, VS Code)
Source: https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_deploy_source.htm
Topics
Community Discussion
No community discussion yet for this question.