sfdk-prepare
Prepare Salesforce DX projects for deployment
TLDR
Prepare sources using the recipe from RPM SPEC file
SYNOPSIS
sfdk-prepare [options]
PARAMETERS
--project-name
Specifies the name of the Salesforce project to be created. This will typically define the main project directory name.
--output-dir
Specify the output directory where the project should be generated. If not specified, the current directory is used.
--template
Selects the template to use for scaffolding the project. Common template are standard, empty or other specific project structures.
--namespace
Sets the namespace for the project's Salesforce components.
--api-version
Specifies the Salesforce API version to use for the project.
--default-username
Specifies the default username to use for connecting to a Salesforce org.
DESCRIPTION
The `sfdk-prepare` command is part of the Salesforce Development Kit (SFDK). It's a tool designed to automate the setup and preparation of a local development environment for Salesforce projects using SFDX. It handles tasks such as creating project directories, configuring essential files, downloading necessary dependencies, and potentially setting up a version control system. It simplifies the initial project setup process allowing developers to quickly start working on Salesforce projects without needing to manually configure everything from scratch. The command is typically used within a larger SFDX workflow to streamline Salesforce development.
CAVEATS
The `sfdk-prepare` command relies on the SFDX CLI being correctly installed and configured. Ensure that SFDX is installed before using `sfdk-prepare`. Also, ensure that you have the necessary permissions to create directories and files in the specified output directory.
EXAMPLE USAGE
Creating a new project:
`sfdk-prepare --project-name MyProject --template standard --output-dir ./projects`
Creating a project using standard template:
`sfdk-prepare --project-name MyProject`
HISTORY
The `sfdk-prepare` command was created to automate the initial steps of Salesforce development using SFDX. It emerged as a way to reduce the manual effort involved in setting up a project and ensuring a consistent development environment. Its usage has grown along with the adoption of SFDX in Salesforce development workflows.
SEE ALSO
sfdx(1)