What are the differences between the 'build' and 'quickbuild' orchestrator commands
How do we deploy packages
How to use the build and deploy commands correctly
Time to complete: 40 minutes
To build a package means to bundle up all your code in a neat little virtual box, ready to be used and 'unpacked' into environments as needed. When you build a package, you can use this package as many times and in as many environments as needed.
In later modules, we will also refer to a package build as an 'artifact'. A package is an artifact that is used in pipelines, but all artifacts are not necessarily packages as there can be many different types of artifacts.
The commands in the orchestrator follow the order as listed in your sfdx-project.json file to determine the order in which packages are built. The commands also factor in any dependencies and do not commence building a package until dependencies are resolved. More information on how package build order is determined is here.
The Orchestrator provides two types of build commands. build and quickbuild.
The build command builds all packages in order of dependencies and generates the artifacts to a supplied directory.
The quickbuild command does almost the same thing as the build command, but it ignores the validation of any dependencies and code coverage. You would use this command before deploying to a developer sandbox to validate code before attempting a build.
The deploy command deploys the package to the given alias (this can be a scratch org, sandbox or devhub org)
Utilize build command to build all packages in the repository