Using the new Salesforce CLI (Beta) to expirement with CI/CD pipelines https://github.com/salesforcecli/cli
We're using a yarn workspace to install the new Salesforce CLI.
yarn add @salesforce/cli
Yarn is installed locally, so we run our commands with yarn.
yarn sf
yarn plugin import workspace-tools
yarn install
Verify packages are all working as expected:
$yarn workspaces foreach -R run verify-sf
Deploy the source files in a directory:
$sf deploy metadata --source-dir path/to/source
Deploy demo package:
$yarn sf deploy metadata --source-dir packages/demo-package
Deploy foobar package:
$yarn sf deploy metadata --source-dir packages/foobar-package
Deploy all packages located in workspace:
$yarn workspaces foreach -R run deploy
Cloudbuild configuration added & trigger added on push to main branch