sfdk-build-init
Initialize SAP Fiori development kit project
TLDR
Initialize the current directory as the build directory
Initialize the specified directory as the build directory
SYNOPSIS
sfdx-build-init [options]
PARAMETERS
--projectname
The name of the SFDX project to initialize. This usually corresponds to the directory name created.
--template
The template to use when creating the project. This allows for the creation of projects with pre-defined configurations, folder structures, or example files. Example: standard, empty, etc.
--outputdir
The directory where the new SFDX project should be created. If not specified, the current working directory is used.
--namespace
The namespace for all Apex Classes, Triggers, etc. This will be set inside the sfdx-project.json file.
--overwrite
Forces overwriting of any existing files or directories at the output path. This is useful if you want to ensure a clean project initialization, but use with caution as it can lead to data loss.
--defaultusername
Sets the default username for authorization against Salesforce orgs
--json
Outputs results in JSON format. Useful for scripting.
DESCRIPTION
The `sfdx-build-init` command is designed to streamline the initial setup and configuration of Salesforce DX (SFDX) projects, particularly within a CI/CD (Continuous Integration/Continuous Delivery) environment. It aims to automate common tasks like creating a project structure, configuring scratch org definitions, and setting up basic build scripts.
This command simplifies the process of creating new SFDX projects or integrating existing ones into a build automation pipeline. By providing a structured and repeatable approach, `sfdx-build-init` ensures consistency across different projects and reduces the manual effort required to get a project ready for automated builds and deployments. It can handle aspects like dependency management, source control integration (e.g., with Git), and environment setup, ensuring that projects are properly configured from the start.
It's often employed during the early stages of SFDX project development, providing a standardized base upon which developers can build and iterate.
ERROR HANDLING
The command should provide informative error messages for common issues like missing dependencies, invalid configuration files, or permission problems.
TEMPLATES
Templates provide pre-configured file structures and configurations for common scenarios.
SEE ALSO
sfdx(1)