@simplysf/simply-cicd 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1621 -0
- package/lib/commands/simply/cicd/build/cleanup-scratch-orgs.d.ts +21 -0
- package/lib/commands/simply/cicd/build/cleanup-scratch-orgs.js +47 -0
- package/lib/commands/simply/cicd/build/cleanup-scratch-orgs.js.map +1 -0
- package/lib/commands/simply/cicd/build/create-fallback-tag.d.ts +25 -0
- package/lib/commands/simply/cicd/build/create-fallback-tag.js +63 -0
- package/lib/commands/simply/cicd/build/create-fallback-tag.js.map +1 -0
- package/lib/commands/simply/cicd/build/create-package-version.d.ts +32 -0
- package/lib/commands/simply/cicd/build/create-package-version.js +110 -0
- package/lib/commands/simply/cicd/build/create-package-version.js.map +1 -0
- package/lib/commands/simply/cicd/build/create-scratch.d.ts +25 -0
- package/lib/commands/simply/cicd/build/create-scratch.js +63 -0
- package/lib/commands/simply/cicd/build/create-scratch.js.map +1 -0
- package/lib/commands/simply/cicd/build/delete-scratch.d.ts +21 -0
- package/lib/commands/simply/cicd/build/delete-scratch.js +53 -0
- package/lib/commands/simply/cicd/build/delete-scratch.js.map +1 -0
- package/lib/commands/simply/cicd/build/determine-package-changes.d.ts +17 -0
- package/lib/commands/simply/cicd/build/determine-package-changes.js +44 -0
- package/lib/commands/simply/cicd/build/determine-package-changes.js.map +1 -0
- package/lib/commands/simply/cicd/build/generate-flexipage-diff.d.ts +20 -0
- package/lib/commands/simply/cicd/build/generate-flexipage-diff.js +47 -0
- package/lib/commands/simply/cicd/build/generate-flexipage-diff.js.map +1 -0
- package/lib/commands/simply/cicd/build/generate-flow-diff.d.ts +20 -0
- package/lib/commands/simply/cicd/build/generate-flow-diff.js +47 -0
- package/lib/commands/simply/cicd/build/generate-flow-diff.js.map +1 -0
- package/lib/commands/simply/cicd/build/install-dependencies.d.ts +18 -0
- package/lib/commands/simply/cicd/build/install-dependencies.js +58 -0
- package/lib/commands/simply/cicd/build/install-dependencies.js.map +1 -0
- package/lib/commands/simply/cicd/build/lwc-jest.d.ts +14 -0
- package/lib/commands/simply/cicd/build/lwc-jest.js +37 -0
- package/lib/commands/simply/cicd/build/lwc-jest.js.map +1 -0
- package/lib/commands/simply/cicd/build/push-scratch.d.ts +19 -0
- package/lib/commands/simply/cicd/build/push-scratch.js +57 -0
- package/lib/commands/simply/cicd/build/push-scratch.js.map +1 -0
- package/lib/commands/simply/cicd/build/test-scratch.d.ts +18 -0
- package/lib/commands/simply/cicd/build/test-scratch.js +58 -0
- package/lib/commands/simply/cicd/build/test-scratch.js.map +1 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/deploy-unpackaged.d.ts +29 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/deploy-unpackaged.js +36 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/deploy-unpackaged.js.map +1 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/deployment-close-out.d.ts +23 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/deployment-close-out.js +82 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/deployment-close-out.js.map +1 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/install-packaged.d.ts +21 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/install-packaged.js +57 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/install-packaged.js.map +1 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/post-deploy.d.ts +29 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/post-deploy.js +36 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/post-deploy.js.map +1 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/post-destructive.d.ts +29 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/post-destructive.js +36 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/post-destructive.js.map +1 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/pre-destructive.d.ts +29 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/pre-destructive.js +36 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/pre-destructive.js.map +1 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.d.ts +28 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.js +89 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.js.map +1 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/validate.d.ts +15 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/validate.js +49 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/validate.js.map +1 -0
- package/lib/commands/simply/cicd/deploy/project/deploy-unpackaged.d.ts +28 -0
- package/lib/commands/simply/cicd/deploy/project/deploy-unpackaged.js +36 -0
- package/lib/commands/simply/cicd/deploy/project/deploy-unpackaged.js.map +1 -0
- package/lib/commands/simply/cicd/deploy/project/install-packaged.d.ts +24 -0
- package/lib/commands/simply/cicd/deploy/project/install-packaged.js +69 -0
- package/lib/commands/simply/cicd/deploy/project/install-packaged.js.map +1 -0
- package/lib/commands/simply/cicd/deploy/project/post-deploy.d.ts +28 -0
- package/lib/commands/simply/cicd/deploy/project/post-deploy.js +36 -0
- package/lib/commands/simply/cicd/deploy/project/post-deploy.js.map +1 -0
- package/lib/commands/simply/cicd/deploy/project/post-destructive.d.ts +28 -0
- package/lib/commands/simply/cicd/deploy/project/post-destructive.js +36 -0
- package/lib/commands/simply/cicd/deploy/project/post-destructive.js.map +1 -0
- package/lib/commands/simply/cicd/deploy/project/pre-destructive.d.ts +28 -0
- package/lib/commands/simply/cicd/deploy/project/pre-destructive.js +36 -0
- package/lib/commands/simply/cicd/deploy/project/pre-destructive.js.map +1 -0
- package/lib/commands/simply/cicd/deploy/project/run-apex-tests.d.ts +26 -0
- package/lib/commands/simply/cicd/deploy/project/run-apex-tests.js +66 -0
- package/lib/commands/simply/cicd/deploy/project/run-apex-tests.js.map +1 -0
- package/lib/commands/simply/cicd/deploy/project/validate.d.ts +14 -0
- package/lib/commands/simply/cicd/deploy/project/validate.js +51 -0
- package/lib/commands/simply/cicd/deploy/project/validate.js.map +1 -0
- package/lib/commands/simply/cicd/deploy/validate.d.ts +14 -0
- package/lib/commands/simply/cicd/deploy/validate.js +50 -0
- package/lib/commands/simply/cicd/deploy/validate.js.map +1 -0
- package/lib/commands/simply/cicd/notify/happy-soup.d.ts +32 -0
- package/lib/commands/simply/cicd/notify/happy-soup.js +193 -0
- package/lib/commands/simply/cicd/notify/happy-soup.js.map +1 -0
- package/lib/commands/simply/cicd/notify/project.d.ts +51 -0
- package/lib/commands/simply/cicd/notify/project.js +376 -0
- package/lib/commands/simply/cicd/notify/project.js.map +1 -0
- package/lib/commands/simply/cicd/notify/teams.d.ts +18 -0
- package/lib/commands/simply/cicd/notify/teams.js +77 -0
- package/lib/commands/simply/cicd/notify/teams.js.map +1 -0
- package/lib/commands/simply/cicd/sfdx-dependabot.d.ts +84 -0
- package/lib/commands/simply/cicd/sfdx-dependabot.js +469 -0
- package/lib/commands/simply/cicd/sfdx-dependabot.js.map +1 -0
- package/lib/common/build/cleanupScratchOrgs.d.ts +7 -0
- package/lib/common/build/cleanupScratchOrgs.js +91 -0
- package/lib/common/build/cleanupScratchOrgs.js.map +1 -0
- package/lib/common/build/createFallbackTag.d.ts +24 -0
- package/lib/common/build/createFallbackTag.js +96 -0
- package/lib/common/build/createFallbackTag.js.map +1 -0
- package/lib/common/build/createPackageVersion.d.ts +27 -0
- package/lib/common/build/createPackageVersion.js +164 -0
- package/lib/common/build/createPackageVersion.js.map +1 -0
- package/lib/common/build/createScratchOrg.d.ts +14 -0
- package/lib/common/build/createScratchOrg.js +191 -0
- package/lib/common/build/createScratchOrg.js.map +1 -0
- package/lib/common/build/deleteScratchOrg.d.ts +12 -0
- package/lib/common/build/deleteScratchOrg.js +58 -0
- package/lib/common/build/deleteScratchOrg.js.map +1 -0
- package/lib/common/build/determinePackageChanges.d.ts +13 -0
- package/lib/common/build/determinePackageChanges.js +98 -0
- package/lib/common/build/determinePackageChanges.js.map +1 -0
- package/lib/common/build/devHubs.d.ts +8 -0
- package/lib/common/build/devHubs.js +30 -0
- package/lib/common/build/devHubs.js.map +1 -0
- package/lib/common/build/flags.d.ts +36 -0
- package/lib/common/build/flags.js +120 -0
- package/lib/common/build/flags.js.map +1 -0
- package/lib/common/build/flexipageDelta.d.ts +31 -0
- package/lib/common/build/flexipageDelta.js +92 -0
- package/lib/common/build/flexipageDelta.js.map +1 -0
- package/lib/common/build/flowDelta.d.ts +30 -0
- package/lib/common/build/flowDelta.js +91 -0
- package/lib/common/build/flowDelta.js.map +1 -0
- package/lib/common/build/installDependencies.d.ts +7 -0
- package/lib/common/build/installDependencies.js +36 -0
- package/lib/common/build/installDependencies.js.map +1 -0
- package/lib/common/build/lwcJest.d.ts +9 -0
- package/lib/common/build/lwcJest.js +36 -0
- package/lib/common/build/lwcJest.js.map +1 -0
- package/lib/common/build/pushScratch.d.ts +8 -0
- package/lib/common/build/pushScratch.js +63 -0
- package/lib/common/build/pushScratch.js.map +1 -0
- package/lib/common/build/scratchOrgInfo.d.ts +10 -0
- package/lib/common/build/scratchOrgInfo.js +21 -0
- package/lib/common/build/scratchOrgInfo.js.map +1 -0
- package/lib/common/build/skipGuard.d.ts +8 -0
- package/lib/common/build/skipGuard.js +41 -0
- package/lib/common/build/skipGuard.js.map +1 -0
- package/lib/common/build/testScratch.d.ts +14 -0
- package/lib/common/build/testScratch.js +45 -0
- package/lib/common/build/testScratch.js.map +1 -0
- package/lib/common/deploy/deployCommon.d.ts +101 -0
- package/lib/common/deploy/deployCommon.js +361 -0
- package/lib/common/deploy/deployCommon.js.map +1 -0
- package/lib/common/deploy/deployHappySoup.d.ts +54 -0
- package/lib/common/deploy/deployHappySoup.js +143 -0
- package/lib/common/deploy/deployHappySoup.js.map +1 -0
- package/lib/common/deploy/deployProject.d.ts +24 -0
- package/lib/common/deploy/deployProject.js +114 -0
- package/lib/common/deploy/deployProject.js.map +1 -0
- package/lib/common/deploy/flags.d.ts +34 -0
- package/lib/common/deploy/flags.js +91 -0
- package/lib/common/deploy/flags.js.map +1 -0
- package/lib/common/deploy/runDeployStage.d.ts +16 -0
- package/lib/common/deploy/runDeployStage.js +65 -0
- package/lib/common/deploy/runDeployStage.js.map +1 -0
- package/lib/common/deploy/stageCommand.d.ts +106 -0
- package/lib/common/deploy/stageCommand.js +131 -0
- package/lib/common/deploy/stageCommand.js.map +1 -0
- package/lib/common/deploy/validate.d.ts +11 -0
- package/lib/common/deploy/validate.js +54 -0
- package/lib/common/deploy/validate.js.map +1 -0
- package/lib/common/env.d.ts +9 -0
- package/lib/common/env.js +47 -0
- package/lib/common/env.js.map +1 -0
- package/lib/common/exec/sfCli.d.ts +27 -0
- package/lib/common/exec/sfCli.js +50 -0
- package/lib/common/exec/sfCli.js.map +1 -0
- package/lib/common/flags/env.d.ts +44 -0
- package/lib/common/flags/env.js +81 -0
- package/lib/common/flags/env.js.map +1 -0
- package/lib/common/git.d.ts +19 -0
- package/lib/common/git.js +79 -0
- package/lib/common/git.js.map +1 -0
- package/lib/common/logger.d.ts +10 -0
- package/lib/common/logger.js +33 -0
- package/lib/common/logger.js.map +1 -0
- package/lib/common/notify/getCommitStories.d.ts +16 -0
- package/lib/common/notify/getCommitStories.js +69 -0
- package/lib/common/notify/getCommitStories.js.map +1 -0
- package/lib/common/notify/renderTemplate.d.ts +3 -0
- package/lib/common/notify/renderTemplate.js +24 -0
- package/lib/common/notify/renderTemplate.js.map +1 -0
- package/lib/common/notify/sendNotification.d.ts +2 -0
- package/lib/common/notify/sendNotification.js +50 -0
- package/lib/common/notify/sendNotification.js.map +1 -0
- package/lib/common/notify/templates.d.ts +11 -0
- package/lib/common/notify/templates.js +85 -0
- package/lib/common/notify/templates.js.map +1 -0
- package/lib/common/schemas/deployConfig.d.ts +25 -0
- package/lib/common/schemas/deployConfig.js +55 -0
- package/lib/common/schemas/deployConfig.js.map +1 -0
- package/lib/common/schemas/deployProgress.d.ts +10 -0
- package/lib/common/schemas/deployProgress.js +27 -0
- package/lib/common/schemas/deployProgress.js.map +1 -0
- package/lib/common/schemas/deployRules.d.ts +34 -0
- package/lib/common/schemas/deployRules.js +40 -0
- package/lib/common/schemas/deployRules.js.map +1 -0
- package/lib/common/sfApex.d.ts +22 -0
- package/lib/common/sfApex.js +158 -0
- package/lib/common/sfApex.js.map +1 -0
- package/lib/common/sfAuth.d.ts +30 -0
- package/lib/common/sfAuth.js +99 -0
- package/lib/common/sfAuth.js.map +1 -0
- package/lib/common/sfConfig.d.ts +6 -0
- package/lib/common/sfConfig.js +45 -0
- package/lib/common/sfConfig.js.map +1 -0
- package/lib/common/sfPackages.d.ts +12 -0
- package/lib/common/sfPackages.js +53 -0
- package/lib/common/sfPackages.js.map +1 -0
- package/lib/common/sfPlugins.d.ts +11 -0
- package/lib/common/sfPlugins.js +134 -0
- package/lib/common/sfPlugins.js.map +1 -0
- package/lib/common/sfdxDependabot/updater.d.ts +14 -0
- package/lib/common/sfdxDependabot/updater.js +94 -0
- package/lib/common/sfdxDependabot/updater.js.map +1 -0
- package/lib/common/vcs/gitlab.d.ts +21 -0
- package/lib/common/vcs/gitlab.js +208 -0
- package/lib/common/vcs/gitlab.js.map +1 -0
- package/lib/common/vcs/index.d.ts +4 -0
- package/lib/common/vcs/index.js +26 -0
- package/lib/common/vcs/index.js.map +1 -0
- package/lib/common/vcs/types.d.ts +69 -0
- package/lib/common/vcs/types.js +17 -0
- package/lib/common/vcs/types.js.map +1 -0
- package/lib/config/defaultDeploymentPlugins.d.ts +2 -0
- package/lib/config/defaultDeploymentPlugins.js +18 -0
- package/lib/config/defaultDeploymentPlugins.js.map +1 -0
- package/lib/config/trustedPlugins.d.ts +2 -0
- package/lib/config/trustedPlugins.js +18 -0
- package/lib/config/trustedPlugins.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +17 -0
- package/lib/index.js.map +1 -0
- package/messages/simply.cicd.build.cleanup-scratch-orgs.md +11 -0
- package/messages/simply.cicd.build.create-fallback-tag.md +21 -0
- package/messages/simply.cicd.build.create-package-version.md +49 -0
- package/messages/simply.cicd.build.create-scratch.md +21 -0
- package/messages/simply.cicd.build.delete-scratch.md +13 -0
- package/messages/simply.cicd.build.determine-package-changes.md +15 -0
- package/messages/simply.cicd.build.generate-flexipage-diff.md +11 -0
- package/messages/simply.cicd.build.generate-flow-diff.md +11 -0
- package/messages/simply.cicd.build.install-dependencies.md +17 -0
- package/messages/simply.cicd.build.lwc-jest.md +11 -0
- package/messages/simply.cicd.build.md +75 -0
- package/messages/simply.cicd.build.push-scratch.md +21 -0
- package/messages/simply.cicd.build.test-scratch.md +17 -0
- package/messages/simply.cicd.deploy.happy-soup.deploy-unpackaged.md +11 -0
- package/messages/simply.cicd.deploy.happy-soup.deployment-close-out.md +39 -0
- package/messages/simply.cicd.deploy.happy-soup.install-packaged.md +15 -0
- package/messages/simply.cicd.deploy.happy-soup.post-deploy.md +11 -0
- package/messages/simply.cicd.deploy.happy-soup.post-destructive.md +11 -0
- package/messages/simply.cicd.deploy.happy-soup.pre-destructive.md +11 -0
- package/messages/simply.cicd.deploy.happy-soup.tag-deployment.md +35 -0
- package/messages/simply.cicd.deploy.happy-soup.validate.md +25 -0
- package/messages/simply.cicd.deploy.md +75 -0
- package/messages/simply.cicd.deploy.project.deploy-unpackaged.md +11 -0
- package/messages/simply.cicd.deploy.project.install-packaged.md +23 -0
- package/messages/simply.cicd.deploy.project.post-deploy.md +11 -0
- package/messages/simply.cicd.deploy.project.post-destructive.md +11 -0
- package/messages/simply.cicd.deploy.project.pre-destructive.md +11 -0
- package/messages/simply.cicd.deploy.project.run-apex-tests.md +15 -0
- package/messages/simply.cicd.deploy.project.validate.md +25 -0
- package/messages/simply.cicd.deploy.validate.md +25 -0
- package/messages/simply.cicd.md +3 -0
- package/messages/simply.cicd.notify.happy-soup.md +73 -0
- package/messages/simply.cicd.notify.project.md +125 -0
- package/messages/simply.cicd.notify.teams.md +27 -0
- package/messages/simply.cicd.sfdx-dependabot.md +91 -0
- package/package.json +214 -0
package/README.md
ADDED
|
@@ -0,0 +1,1621 @@
|
|
|
1
|
+
# @simplysf/simply-cicd
|
|
2
|
+
|
|
3
|
+
[](https://npmjs.com/@simplysf/simply-cicd) [](https://npmjs.com/@simplysf/simply-cicd) [](https://raw.githubusercontent.com/SimplySF/simply-node/main/LICENSE.txt)
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
sf plugins install @simplysf/simply-cicd
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Issues
|
|
12
|
+
|
|
13
|
+
Please report any issues at https://github.com/SimplySF/simply-node/issues
|
|
14
|
+
|
|
15
|
+
## Contributing
|
|
16
|
+
|
|
17
|
+
This package is part of the [`@simplysf/simply`](https://github.com/SimplySF/simply-node) monorepo. See the repo's [CONTRIBUTING.md](https://github.com/SimplySF/simply-node/blob/main/CONTRIBUTING.md) for the repo structure, how to set up and build the project, our commit conventions, and how to submit a pull request. Please also read our [Code of Conduct](https://github.com/SimplySF/simply-node/blob/main/CODE_OF_CONDUCT.md).
|
|
18
|
+
|
|
19
|
+
## Commands
|
|
20
|
+
|
|
21
|
+
<!-- commands -->
|
|
22
|
+
|
|
23
|
+
- [`sf simply cicd build cleanup-scratch-orgs`](#sf-simply-cicd-build-cleanup-scratch-orgs)
|
|
24
|
+
- [`sf simply cicd build create-fallback-tag`](#sf-simply-cicd-build-create-fallback-tag)
|
|
25
|
+
- [`sf simply cicd build create-package-version`](#sf-simply-cicd-build-create-package-version)
|
|
26
|
+
- [`sf simply cicd build create-scratch`](#sf-simply-cicd-build-create-scratch)
|
|
27
|
+
- [`sf simply cicd build delete-scratch`](#sf-simply-cicd-build-delete-scratch)
|
|
28
|
+
- [`sf simply cicd build determine-package-changes`](#sf-simply-cicd-build-determine-package-changes)
|
|
29
|
+
- [`sf simply cicd build generate-flexipage-diff`](#sf-simply-cicd-build-generate-flexipage-diff)
|
|
30
|
+
- [`sf simply cicd build generate-flow-diff`](#sf-simply-cicd-build-generate-flow-diff)
|
|
31
|
+
- [`sf simply cicd build install-dependencies`](#sf-simply-cicd-build-install-dependencies)
|
|
32
|
+
- [`sf simply cicd build lwc-jest`](#sf-simply-cicd-build-lwc-jest)
|
|
33
|
+
- [`sf simply cicd build push-scratch`](#sf-simply-cicd-build-push-scratch)
|
|
34
|
+
- [`sf simply cicd build test-scratch`](#sf-simply-cicd-build-test-scratch)
|
|
35
|
+
- [`sf simply cicd deploy happy-soup deploy-unpackaged`](#sf-simply-cicd-deploy-happy-soup-deploy-unpackaged)
|
|
36
|
+
- [`sf simply cicd deploy happy-soup deployment-close-out`](#sf-simply-cicd-deploy-happy-soup-deployment-close-out)
|
|
37
|
+
- [`sf simply cicd deploy happy-soup install-packaged`](#sf-simply-cicd-deploy-happy-soup-install-packaged)
|
|
38
|
+
- [`sf simply cicd deploy happy-soup post-deploy`](#sf-simply-cicd-deploy-happy-soup-post-deploy)
|
|
39
|
+
- [`sf simply cicd deploy happy-soup post-destructive`](#sf-simply-cicd-deploy-happy-soup-post-destructive)
|
|
40
|
+
- [`sf simply cicd deploy happy-soup pre-destructive`](#sf-simply-cicd-deploy-happy-soup-pre-destructive)
|
|
41
|
+
- [`sf simply cicd deploy happy-soup tag-deployment`](#sf-simply-cicd-deploy-happy-soup-tag-deployment)
|
|
42
|
+
- [`sf simply cicd deploy happy-soup validate`](#sf-simply-cicd-deploy-happy-soup-validate)
|
|
43
|
+
- [`sf simply cicd deploy project deploy-unpackaged`](#sf-simply-cicd-deploy-project-deploy-unpackaged)
|
|
44
|
+
- [`sf simply cicd deploy project install-packaged`](#sf-simply-cicd-deploy-project-install-packaged)
|
|
45
|
+
- [`sf simply cicd deploy project post-deploy`](#sf-simply-cicd-deploy-project-post-deploy)
|
|
46
|
+
- [`sf simply cicd deploy project post-destructive`](#sf-simply-cicd-deploy-project-post-destructive)
|
|
47
|
+
- [`sf simply cicd deploy project pre-destructive`](#sf-simply-cicd-deploy-project-pre-destructive)
|
|
48
|
+
- [`sf simply cicd deploy project run-apex-tests`](#sf-simply-cicd-deploy-project-run-apex-tests)
|
|
49
|
+
- [`sf simply cicd deploy project validate`](#sf-simply-cicd-deploy-project-validate)
|
|
50
|
+
- [`sf simply cicd deploy validate`](#sf-simply-cicd-deploy-validate)
|
|
51
|
+
- [`sf simply cicd notify happy-soup`](#sf-simply-cicd-notify-happy-soup)
|
|
52
|
+
- [`sf simply cicd notify project`](#sf-simply-cicd-notify-project)
|
|
53
|
+
- [`sf simply cicd notify teams`](#sf-simply-cicd-notify-teams)
|
|
54
|
+
- [`sf simply cicd sfdx-dependabot`](#sf-simply-cicd-sfdx-dependabot)
|
|
55
|
+
|
|
56
|
+
## `sf simply cicd build cleanup-scratch-orgs`
|
|
57
|
+
|
|
58
|
+
Delete scratch orgs older than 3 hours from every configured Dev Hub.
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
USAGE
|
|
62
|
+
$ sf simply cicd build cleanup-scratch-orgs --dev-hub-name <value>... --dev-hub-username <value>... --dev-hub-client-id <value>...
|
|
63
|
+
--dev-hub-instance-url <value>... --jwt-key-file <value> [--json] [--flags-dir <value>] [--debug] [--disabled]
|
|
64
|
+
|
|
65
|
+
FLAGS
|
|
66
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
67
|
+
--dev-hub-client-id=<value>... (required) Connected app client ID for a Dev Hub.
|
|
68
|
+
--dev-hub-instance-url=<value>... (required) Login instance URL for a Dev Hub.
|
|
69
|
+
--dev-hub-name=<value>... (required) Friendly name of a Dev Hub. Repeat this flag alongside
|
|
70
|
+
--dev-hub-username, --dev-hub-client-id, and --dev-hub-instance-url (in the same
|
|
71
|
+
order) for each Dev Hub to try.
|
|
72
|
+
--dev-hub-username=<value>... (required) Username of a Dev Hub.
|
|
73
|
+
--disabled [env: SIMPLY_CICD_DISABLED] Skip this job entirely, logging a warning instead of
|
|
74
|
+
running it.
|
|
75
|
+
--jwt-key-file=<value> (required) [env: SIMPLY_CICD_JWT_KEY_FILE] Path to the JWT private key file used
|
|
76
|
+
for authentication.
|
|
77
|
+
|
|
78
|
+
GLOBAL FLAGS
|
|
79
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
80
|
+
--json Format output as json.
|
|
81
|
+
|
|
82
|
+
DESCRIPTION
|
|
83
|
+
Delete scratch orgs older than 3 hours from every configured Dev Hub.
|
|
84
|
+
|
|
85
|
+
For each Dev Hub, queries `ActiveScratchOrg` records created more than 3 hours ago and bulk-deletes them. Useful for
|
|
86
|
+
keeping a shared Dev Hub's scratch org allotment from being exhausted by abandoned CI runs.
|
|
87
|
+
|
|
88
|
+
EXAMPLES
|
|
89
|
+
$ sf simply cicd build cleanup-scratch-orgs --dev-hub-name main --dev-hub-username devhub@example.com --dev-hub-client-id 3MVG9... --dev-hub-instance-url https://login.salesforce.com --jwt-key-file ./server.key
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
_See code: [lib/commands/simply/cicd/build/cleanup-scratch-orgs.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/build/cleanup-scratch-orgs.js)_
|
|
93
|
+
|
|
94
|
+
## `sf simply cicd build create-fallback-tag`
|
|
95
|
+
|
|
96
|
+
Create a fallback git tag carrying forward the previous package version's ID, for builds that didn't produce a new package version.
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
USAGE
|
|
100
|
+
$ sf simply cicd build create-fallback-tag --ci-commit-ref-name <value> --ci-pipeline-id <value> --ci-project-path <value>
|
|
101
|
+
--project-access-token <value> [--json] [--flags-dir <value>] [--vcs-host <value>] [--vcs-provider gitlab] [--debug]
|
|
102
|
+
[--disabled] [--last-tag <value>] [--out <value>]
|
|
103
|
+
|
|
104
|
+
FLAGS
|
|
105
|
+
--ci-commit-ref-name=<value> (required) [env: SIMPLY_CICD_CI_COMMIT_REF_NAME] Git branch or ref name being built.
|
|
106
|
+
--ci-pipeline-id=<value> (required) [env: SIMPLY_CICD_CI_PIPELINE_ID] CI pipeline ID, used to name the
|
|
107
|
+
temporary authenticated git remote.
|
|
108
|
+
--ci-project-path=<value> (required) [env: SIMPLY_CICD_CI_PROJECT_PATH] CI project's git path (e.g.
|
|
109
|
+
group/project), used to build the authenticated git remote URL.
|
|
110
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
111
|
+
--disabled [env: SIMPLY_CICD_DISABLED] Skip this job entirely, logging a warning instead of
|
|
112
|
+
running it.
|
|
113
|
+
--last-tag=<value> Manually specify the last tag to increment, instead of resolving it from git.
|
|
114
|
+
--out=<value> [default: subscriberPackageVersionId.env] Output dotenv file path.
|
|
115
|
+
--project-access-token=<value> (required) [env: SIMPLY_CICD_PROJECT_ACCESS_TOKEN] Access token used to authenticate
|
|
116
|
+
git remote operations (tagging, pushing).
|
|
117
|
+
--vcs-host=<value> [default: gitlab.com, env: SIMPLY_CICD_VCS_HOST] Hostname of the VCS instance hosting
|
|
118
|
+
this project.
|
|
119
|
+
--vcs-provider=<option> [default: gitlab, env: SIMPLY_CICD_VCS_PROVIDER] The VCS platform hosting this
|
|
120
|
+
project.
|
|
121
|
+
<options: gitlab>
|
|
122
|
+
|
|
123
|
+
GLOBAL FLAGS
|
|
124
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
125
|
+
--json Format output as json.
|
|
126
|
+
|
|
127
|
+
DESCRIPTION
|
|
128
|
+
Create a fallback git tag carrying forward the previous package version's ID, for builds that didn't produce a new
|
|
129
|
+
package version.
|
|
130
|
+
|
|
131
|
+
Resolves the last tag to increment (either `--last-tag`, or the closest reachable tag matching the project's version
|
|
132
|
+
prefix), extracts its annotated `04t` package version ID, and creates/pushes a new tag with an incremented numeric
|
|
133
|
+
suffix (e.g. `v1.1.0` -> `v1.1.0-1` -> `v1.1.0-2`) annotated with that same package ID. Soft no-ops (does not error)
|
|
134
|
+
when no last tag, or no valid package ID within it, can be found — a build with nothing to fall back to just has
|
|
135
|
+
nothing to do here.
|
|
136
|
+
|
|
137
|
+
Skipped automatically when `PACKAGE_CHANGED=TRUE` is set in the environment (see `build determine-package-changes`) —
|
|
138
|
+
a real package version will be created instead.
|
|
139
|
+
|
|
140
|
+
EXAMPLES
|
|
141
|
+
$ sf simply cicd build create-fallback-tag --ci-commit-ref-name main --ci-project-path group/project --project-access-token glpat-... --ci-pipeline-id 123
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
_See code: [lib/commands/simply/cicd/build/create-fallback-tag.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/build/create-fallback-tag.js)_
|
|
145
|
+
|
|
146
|
+
## `sf simply cicd build create-package-version`
|
|
147
|
+
|
|
148
|
+
Create a new package version, verify minimum code coverage, and create/push a version-tracking git tag.
|
|
149
|
+
|
|
150
|
+
```
|
|
151
|
+
USAGE
|
|
152
|
+
$ sf simply cicd build create-package-version --ci-commit-ref-name <value> --ci-pipeline-id <value> --ci-project-path <value>
|
|
153
|
+
--project-access-token <value> --jwt-key-file <value> --ci-commit-sha <value> --ci-pipeline-url <value>
|
|
154
|
+
--devhub-tooling-username <value> --devhub-tooling-client-id <value> --devhub-tooling-instance-url <value> [--json]
|
|
155
|
+
[--flags-dir <value>] [--vcs-host <value>] [--vcs-provider gitlab] [--debug] [--disabled] [--ci-pipeline-source
|
|
156
|
+
<value>] [--always-create-package] [--code-coverage-minimum <value>] [--package-release-branch-prefix <value>]
|
|
157
|
+
|
|
158
|
+
FLAGS
|
|
159
|
+
--always-create-package Create a package version even when this isn't a release-branch build.
|
|
160
|
+
--ci-commit-ref-name=<value> (required) [env: SIMPLY_CICD_CI_COMMIT_REF_NAME] Git branch or ref name being
|
|
161
|
+
built.
|
|
162
|
+
--ci-commit-sha=<value> (required) [env: SIMPLY_CICD_CI_COMMIT_SHA] Commit SHA to tag as the package
|
|
163
|
+
version's source.
|
|
164
|
+
--ci-pipeline-id=<value> (required) [env: SIMPLY_CICD_CI_PIPELINE_ID] CI pipeline ID, used to name the
|
|
165
|
+
temporary authenticated git remote.
|
|
166
|
+
--ci-pipeline-source=<value> [env: SIMPLY_CICD_CI_PIPELINE_SOURCE] Source trigger of the CI pipeline (e.g.
|
|
167
|
+
merge_request_event). When set to merge_request_event, package creation is
|
|
168
|
+
skipped.
|
|
169
|
+
--ci-pipeline-url=<value> (required) [env: SIMPLY_CICD_CI_PIPELINE_URL] URL of the CI pipeline, used as
|
|
170
|
+
the package version's description.
|
|
171
|
+
--ci-project-path=<value> (required) [env: SIMPLY_CICD_CI_PROJECT_PATH] CI project's git path (e.g.
|
|
172
|
+
group/project), used to build the authenticated git remote URL.
|
|
173
|
+
--code-coverage-minimum=<value> [default: 75] Minimum Apex code coverage percentage required for the new
|
|
174
|
+
package version.
|
|
175
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
176
|
+
--devhub-tooling-client-id=<value> (required) [env: SIMPLY_CICD_DEVHUB_TOOLING_CLIENT_ID] Connected app client
|
|
177
|
+
ID for the tooling Dev Hub.
|
|
178
|
+
--devhub-tooling-instance-url=<value> (required) [env: SIMPLY_CICD_DEVHUB_TOOLING_INSTANCE_URL] Login instance URL
|
|
179
|
+
for the tooling Dev Hub.
|
|
180
|
+
--devhub-tooling-username=<value> (required) [env: SIMPLY_CICD_DEVHUB_TOOLING_USERNAME] Username of the Dev Hub
|
|
181
|
+
used for tooling operations like package version creation.
|
|
182
|
+
--disabled [env: SIMPLY_CICD_DISABLED] Skip this job entirely, logging a warning instead
|
|
183
|
+
of running it.
|
|
184
|
+
--jwt-key-file=<value> (required) [env: SIMPLY_CICD_JWT_KEY_FILE] Path to the JWT private key file
|
|
185
|
+
used for authentication.
|
|
186
|
+
--package-release-branch-prefix=<value> Prefix identifying release branches. Determines whether this build creates a
|
|
187
|
+
package version and how the resulting git tag is named.
|
|
188
|
+
--project-access-token=<value> (required) [env: SIMPLY_CICD_PROJECT_ACCESS_TOKEN] Access token used to
|
|
189
|
+
authenticate git remote operations (tagging, pushing).
|
|
190
|
+
--vcs-host=<value> [default: gitlab.com, env: SIMPLY_CICD_VCS_HOST] Hostname of the VCS instance
|
|
191
|
+
hosting this project.
|
|
192
|
+
--vcs-provider=<option> [default: gitlab, env: SIMPLY_CICD_VCS_PROVIDER] The VCS platform hosting
|
|
193
|
+
this project.
|
|
194
|
+
<options: gitlab>
|
|
195
|
+
|
|
196
|
+
GLOBAL FLAGS
|
|
197
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
198
|
+
--json Format output as json.
|
|
199
|
+
|
|
200
|
+
DESCRIPTION
|
|
201
|
+
Create a new package version, verify minimum code coverage, and create/push a version-tracking git tag.
|
|
202
|
+
|
|
203
|
+
Skips entirely (without error) when the pipeline was triggered by a merge request, or when this isn't a release-branch
|
|
204
|
+
build and `--always-create-package` wasn't passed. Otherwise, creates a new version of the default package directory's
|
|
205
|
+
package, polls until creation finishes, verifies the resulting version's Apex code coverage meets
|
|
206
|
+
`--code-coverage-minimum` (or the project's own `plugins.simply.coverageRequirement.minimumCoverageRequired`, if
|
|
207
|
+
declared in `sfdx-project.json`), and creates/pushes a git tag annotated with the new package version's `04t` ID.
|
|
208
|
+
|
|
209
|
+
Skipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).
|
|
210
|
+
|
|
211
|
+
EXAMPLES
|
|
212
|
+
$ sf simply cicd build create-package-version --ci-commit-ref-name main --ci-commit-sha a1b2c3d --ci-pipeline-id 123 --ci-pipeline-url https://gitlab.example.com/pipelines/123 --ci-project-path group/project --project-access-token glpat-... --devhub-tooling-username devhub-tooling@example.com --devhub-tooling-client-id 3MVG9... --devhub-tooling-instance-url https://login.salesforce.com --jwt-key-file ./server.key
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
_See code: [lib/commands/simply/cicd/build/create-package-version.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/build/create-package-version.js)_
|
|
216
|
+
|
|
217
|
+
## `sf simply cicd build create-scratch`
|
|
218
|
+
|
|
219
|
+
Create a scratch org, trying each configured Dev Hub in order.
|
|
220
|
+
|
|
221
|
+
```
|
|
222
|
+
USAGE
|
|
223
|
+
$ sf simply cicd build create-scratch --dev-hub-name <value>... --dev-hub-username <value>... --dev-hub-client-id <value>...
|
|
224
|
+
--dev-hub-instance-url <value>... --jwt-key-file <value> [--json] [--flags-dir <value>] [--debug] [--disabled]
|
|
225
|
+
[--scratch-definition-file <value>] [--scratch-duration-days <value>]
|
|
226
|
+
|
|
227
|
+
FLAGS
|
|
228
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
229
|
+
--dev-hub-client-id=<value>... (required) Connected app client ID for a Dev Hub.
|
|
230
|
+
--dev-hub-instance-url=<value>... (required) Login instance URL for a Dev Hub.
|
|
231
|
+
--dev-hub-name=<value>... (required) Friendly name of a Dev Hub. Repeat this flag alongside
|
|
232
|
+
--dev-hub-username, --dev-hub-client-id, and --dev-hub-instance-url (in the same
|
|
233
|
+
order) for each Dev Hub to try.
|
|
234
|
+
--dev-hub-username=<value>... (required) Username of a Dev Hub.
|
|
235
|
+
--disabled [env: SIMPLY_CICD_DISABLED] Skip this job entirely, logging a warning instead of
|
|
236
|
+
running it.
|
|
237
|
+
--jwt-key-file=<value> (required) [env: SIMPLY_CICD_JWT_KEY_FILE] Path to the JWT private key file used
|
|
238
|
+
for authentication.
|
|
239
|
+
--scratch-definition-file=<value> Definition file used to create the scratch org, if not specified in
|
|
240
|
+
sfdx-project.json.
|
|
241
|
+
--scratch-duration-days=<value> [default: 1] Duration of the scratch org in days.
|
|
242
|
+
|
|
243
|
+
GLOBAL FLAGS
|
|
244
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
245
|
+
--json Format output as json.
|
|
246
|
+
|
|
247
|
+
DESCRIPTION
|
|
248
|
+
Create a scratch org, trying each configured Dev Hub in order.
|
|
249
|
+
|
|
250
|
+
Reads the default package directory's `definitionFile` from `sfdx-project.json` (falling back to
|
|
251
|
+
`--scratch-definition-file`), and attempts creation against each `--dev-hub-*` in order. A Dev Hub that has hit its
|
|
252
|
+
daily scratch org limit is skipped in favor of the next one. Writes the resulting org's auth fields to
|
|
253
|
+
`SCRATCH_ORG_INFO.json` for later build steps, best-effort sets a default `CountryCode`, and assigns any permission
|
|
254
|
+
sets/licenses declared under the default package directory's `packageMetadataAccess`.
|
|
255
|
+
|
|
256
|
+
Skipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).
|
|
257
|
+
|
|
258
|
+
EXAMPLES
|
|
259
|
+
$ sf simply cicd build create-scratch --dev-hub-name main --dev-hub-username devhub@example.com --dev-hub-client-id 3MVG9... --dev-hub-instance-url https://login.salesforce.com --jwt-key-file ./server.key
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
_See code: [lib/commands/simply/cicd/build/create-scratch.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/build/create-scratch.js)_
|
|
263
|
+
|
|
264
|
+
## `sf simply cicd build delete-scratch`
|
|
265
|
+
|
|
266
|
+
Delete the scratch org created by `build create-scratch`.
|
|
267
|
+
|
|
268
|
+
```
|
|
269
|
+
USAGE
|
|
270
|
+
$ sf simply cicd build delete-scratch --dev-hub-name <value>... --dev-hub-username <value>... --dev-hub-client-id <value>...
|
|
271
|
+
--dev-hub-instance-url <value>... --jwt-key-file <value> [--json] [--flags-dir <value>] [--debug] [--disabled]
|
|
272
|
+
|
|
273
|
+
FLAGS
|
|
274
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
275
|
+
--dev-hub-client-id=<value>... (required) Connected app client ID for a Dev Hub.
|
|
276
|
+
--dev-hub-instance-url=<value>... (required) Login instance URL for a Dev Hub.
|
|
277
|
+
--dev-hub-name=<value>... (required) Friendly name of a Dev Hub. Repeat this flag alongside
|
|
278
|
+
--dev-hub-username, --dev-hub-client-id, and --dev-hub-instance-url (in the same
|
|
279
|
+
order) for each Dev Hub to try.
|
|
280
|
+
--dev-hub-username=<value>... (required) Username of a Dev Hub.
|
|
281
|
+
--disabled [env: SIMPLY_CICD_DISABLED] Skip this job entirely, logging a warning instead of
|
|
282
|
+
running it.
|
|
283
|
+
--jwt-key-file=<value> (required) [env: SIMPLY_CICD_JWT_KEY_FILE] Path to the JWT private key file used
|
|
284
|
+
for authentication.
|
|
285
|
+
|
|
286
|
+
GLOBAL FLAGS
|
|
287
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
288
|
+
--json Format output as json.
|
|
289
|
+
|
|
290
|
+
DESCRIPTION
|
|
291
|
+
Delete the scratch org created by `build create-scratch`.
|
|
292
|
+
|
|
293
|
+
Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`) to find which Dev Hub owns the scratch org,
|
|
294
|
+
authenticates to that Dev Hub and the scratch org, and deletes it. Deletion failures are logged rather than thrown,
|
|
295
|
+
since a scratch org left behind after a failed deletion just needs manual cleanup and shouldn't fail an
|
|
296
|
+
otherwise-successful pipeline run.
|
|
297
|
+
|
|
298
|
+
Skipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).
|
|
299
|
+
|
|
300
|
+
EXAMPLES
|
|
301
|
+
$ sf simply cicd build delete-scratch --dev-hub-name main --dev-hub-username devhub@example.com --dev-hub-client-id 3MVG9... --dev-hub-instance-url https://login.salesforce.com --jwt-key-file ./server.key
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
_See code: [lib/commands/simply/cicd/build/delete-scratch.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/build/delete-scratch.js)_
|
|
305
|
+
|
|
306
|
+
## `sf simply cicd build determine-package-changes`
|
|
307
|
+
|
|
308
|
+
Determine if any package-relevant files have changed since the last release tag.
|
|
309
|
+
|
|
310
|
+
```
|
|
311
|
+
USAGE
|
|
312
|
+
$ sf simply cicd build determine-package-changes [--json] [--flags-dir <value>] [--debug] [--disabled] [--out <value>]
|
|
313
|
+
|
|
314
|
+
FLAGS
|
|
315
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
316
|
+
--disabled [env: SIMPLY_CICD_DISABLED] Skip this job entirely, logging a warning instead of running it.
|
|
317
|
+
--out=<value> [default: changes.env] Output dotenv file path.
|
|
318
|
+
|
|
319
|
+
GLOBAL FLAGS
|
|
320
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
321
|
+
--json Format output as json.
|
|
322
|
+
|
|
323
|
+
DESCRIPTION
|
|
324
|
+
Determine if any package-relevant files have changed since the last release tag.
|
|
325
|
+
|
|
326
|
+
Reads the default package directory from `sfdx-project.json`, finds the closest reachable git tag matching its version
|
|
327
|
+
prefix, and diffs that tag against `HEAD` for the package directory and `sfdx-project.json` itself. Writes
|
|
328
|
+
`PACKAGE_CHANGED=TRUE|FALSE` and `LAST_TAG=<tag>` to the output file. Any failure during detection (missing/invalid
|
|
329
|
+
sfdx-project.json, git errors) defaults to `PACKAGE_CHANGED=TRUE`, so a build never silently skips work it should have
|
|
330
|
+
done.
|
|
331
|
+
|
|
332
|
+
EXAMPLES
|
|
333
|
+
$ sf simply cicd build determine-package-changes --out changes.env
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
_See code: [lib/commands/simply/cicd/build/determine-package-changes.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/build/determine-package-changes.js)_
|
|
337
|
+
|
|
338
|
+
## `sf simply cicd build generate-flexipage-diff`
|
|
339
|
+
|
|
340
|
+
Generate a FlexiPage delta between two commits and post the results to the merge request.
|
|
341
|
+
|
|
342
|
+
```
|
|
343
|
+
USAGE
|
|
344
|
+
$ sf simply cicd build generate-flexipage-diff --ci-project-id <value> --ci-merge-request-iid <value> --from <value> --to <value>
|
|
345
|
+
--project-access-token <value> [--json] [--flags-dir <value>] [--out <value>] [--debug] [--disabled]
|
|
346
|
+
|
|
347
|
+
FLAGS
|
|
348
|
+
--ci-merge-request-iid=<value> (required) [env: SIMPLY_CICD_CI_MERGE_REQUEST_IID] GitLab CI merge request internal
|
|
349
|
+
ID.
|
|
350
|
+
--ci-project-id=<value> (required) [env: SIMPLY_CICD_CI_PROJECT_ID] GitLab CI project ID.
|
|
351
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
352
|
+
--disabled [env: SIMPLY_CICD_DISABLED] Skip this job entirely, logging a warning instead of
|
|
353
|
+
running it.
|
|
354
|
+
--from=<value> (required) Base commit SHA to diff from.
|
|
355
|
+
--out=<value> Output directory or file path for the delta results.
|
|
356
|
+
--project-access-token=<value> (required) [env: SIMPLY_CICD_PROJECT_ACCESS_TOKEN] Project access token used to post
|
|
357
|
+
the diff results back to the merge request.
|
|
358
|
+
--to=<value> (required) Head commit SHA to diff to.
|
|
359
|
+
|
|
360
|
+
GLOBAL FLAGS
|
|
361
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
362
|
+
--json Format output as json.
|
|
363
|
+
|
|
364
|
+
DESCRIPTION
|
|
365
|
+
Generate a FlexiPage delta between two commits and post the results to the merge request.
|
|
366
|
+
|
|
367
|
+
Runs the upstream `flexipage-delta` binary to diff `**/*.flexipage-meta.xml` files between `--from` and `--to`, then
|
|
368
|
+
`flexipage-delta-gitlab` to post the results back to the GitLab merge request. Both binaries are GitLab-specific, so
|
|
369
|
+
this command isn't routed through the VCS provider abstraction. Failures are logged, not thrown — a diff-posting step
|
|
370
|
+
shouldn't fail the build.
|
|
371
|
+
|
|
372
|
+
EXAMPLES
|
|
373
|
+
$ sf simply cicd build generate-flexipage-diff --ci-project-id 123 --ci-merge-request-iid 45 --from abc123 --to def456 --project-access-token glpat-...
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
_See code: [lib/commands/simply/cicd/build/generate-flexipage-diff.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/build/generate-flexipage-diff.js)_
|
|
377
|
+
|
|
378
|
+
## `sf simply cicd build generate-flow-diff`
|
|
379
|
+
|
|
380
|
+
Generate a Flow delta between two commits and post the results to the merge request.
|
|
381
|
+
|
|
382
|
+
```
|
|
383
|
+
USAGE
|
|
384
|
+
$ sf simply cicd build generate-flow-diff --ci-project-id <value> --ci-merge-request-iid <value> --from <value> --to <value>
|
|
385
|
+
--project-access-token <value> [--json] [--flags-dir <value>] [--out <value>] [--debug] [--disabled]
|
|
386
|
+
|
|
387
|
+
FLAGS
|
|
388
|
+
--ci-merge-request-iid=<value> (required) [env: SIMPLY_CICD_CI_MERGE_REQUEST_IID] GitLab CI merge request internal
|
|
389
|
+
ID.
|
|
390
|
+
--ci-project-id=<value> (required) [env: SIMPLY_CICD_CI_PROJECT_ID] GitLab CI project ID.
|
|
391
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
392
|
+
--disabled [env: SIMPLY_CICD_DISABLED] Skip this job entirely, logging a warning instead of
|
|
393
|
+
running it.
|
|
394
|
+
--from=<value> (required) Base commit SHA to diff from.
|
|
395
|
+
--out=<value> Output directory or file path for the delta results.
|
|
396
|
+
--project-access-token=<value> (required) [env: SIMPLY_CICD_PROJECT_ACCESS_TOKEN] Project access token used to post
|
|
397
|
+
the diff results back to the merge request.
|
|
398
|
+
--to=<value> (required) Head commit SHA to diff to.
|
|
399
|
+
|
|
400
|
+
GLOBAL FLAGS
|
|
401
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
402
|
+
--json Format output as json.
|
|
403
|
+
|
|
404
|
+
DESCRIPTION
|
|
405
|
+
Generate a Flow delta between two commits and post the results to the merge request.
|
|
406
|
+
|
|
407
|
+
Runs the upstream `flow-delta` binary to diff `**/*.flow-meta.xml` files between `--from` and `--to`, then
|
|
408
|
+
`flow-delta-gitlab` to post the results back to the GitLab merge request. Both binaries are GitLab-specific, so this
|
|
409
|
+
command isn't routed through the VCS provider abstraction. Failures are logged, not thrown — a diff-posting step
|
|
410
|
+
shouldn't fail the build.
|
|
411
|
+
|
|
412
|
+
EXAMPLES
|
|
413
|
+
$ sf simply cicd build generate-flow-diff --ci-project-id 123 --ci-merge-request-iid 45 --from abc123 --to def456 --project-access-token glpat-...
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
_See code: [lib/commands/simply/cicd/build/generate-flow-diff.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/build/generate-flow-diff.js)_
|
|
417
|
+
|
|
418
|
+
## `sf simply cicd build install-dependencies`
|
|
419
|
+
|
|
420
|
+
Install packaged dependencies into the scratch org created by `build create-scratch`.
|
|
421
|
+
|
|
422
|
+
```
|
|
423
|
+
USAGE
|
|
424
|
+
$ sf simply cicd build install-dependencies --jwt-key-file <value> [--json] [--flags-dir <value>] [--debug] [--disabled] [--install-type
|
|
425
|
+
All|Delta|Upgrade]
|
|
426
|
+
|
|
427
|
+
FLAGS
|
|
428
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
429
|
+
--disabled [env: SIMPLY_CICD_DISABLED] Skip this job entirely, logging a warning instead of running it.
|
|
430
|
+
--install-type=<option> [default: Upgrade] The type of dependency installation to perform.
|
|
431
|
+
<options: All|Delta|Upgrade>
|
|
432
|
+
--jwt-key-file=<value> (required) [env: SIMPLY_CICD_JWT_KEY_FILE] Path to the JWT private key file used for
|
|
433
|
+
authentication.
|
|
434
|
+
|
|
435
|
+
GLOBAL FLAGS
|
|
436
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
437
|
+
--json Format output as json.
|
|
438
|
+
|
|
439
|
+
DESCRIPTION
|
|
440
|
+
Install packaged dependencies into the scratch org created by `build create-scratch`.
|
|
441
|
+
|
|
442
|
+
Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`), authenticates as that scratch org, and installs its
|
|
443
|
+
packaged dependencies.
|
|
444
|
+
|
|
445
|
+
Skipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).
|
|
446
|
+
|
|
447
|
+
EXAMPLES
|
|
448
|
+
$ sf simply cicd build install-dependencies --jwt-key-file ./server.key
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
_See code: [lib/commands/simply/cicd/build/install-dependencies.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/build/install-dependencies.js)_
|
|
452
|
+
|
|
453
|
+
## `sf simply cicd build lwc-jest`
|
|
454
|
+
|
|
455
|
+
Install the LWC Jest test libraries and run the project's LWC Jest tests with coverage.
|
|
456
|
+
|
|
457
|
+
```
|
|
458
|
+
USAGE
|
|
459
|
+
$ sf simply cicd build lwc-jest [--json] [--flags-dir <value>] [--debug] [--disabled]
|
|
460
|
+
|
|
461
|
+
FLAGS
|
|
462
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
463
|
+
--disabled [env: SIMPLY_CICD_DISABLED] Skip this job entirely, logging a warning instead of running it.
|
|
464
|
+
|
|
465
|
+
GLOBAL FLAGS
|
|
466
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
467
|
+
--json Format output as json.
|
|
468
|
+
|
|
469
|
+
DESCRIPTION
|
|
470
|
+
Install the LWC Jest test libraries and run the project's LWC Jest tests with coverage.
|
|
471
|
+
|
|
472
|
+
Installs `@salesforce/sfdx-lwc-jest` and `@sa11y/jest`, then runs `sfdx-lwc-jest --coverage -- --passWithNoTests`.
|
|
473
|
+
Failures are logged, not thrown.
|
|
474
|
+
|
|
475
|
+
EXAMPLES
|
|
476
|
+
$ sf simply cicd build lwc-jest
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
_See code: [lib/commands/simply/cicd/build/lwc-jest.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/build/lwc-jest.js)_
|
|
480
|
+
|
|
481
|
+
## `sf simply cicd build push-scratch`
|
|
482
|
+
|
|
483
|
+
Push source to the scratch org created by `build create-scratch`.
|
|
484
|
+
|
|
485
|
+
```
|
|
486
|
+
USAGE
|
|
487
|
+
$ sf simply cicd build push-scratch --jwt-key-file <value> [--json] [--flags-dir <value>] [--debug] [--disabled]
|
|
488
|
+
[--ignore-warnings] [--scratch-org-source-dir <value>]
|
|
489
|
+
|
|
490
|
+
FLAGS
|
|
491
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
492
|
+
--disabled [env: SIMPLY_CICD_DISABLED] Skip this job entirely, logging a warning instead of
|
|
493
|
+
running it.
|
|
494
|
+
--ignore-warnings Append --ignore-warnings to the underlying sf project deploy start call.
|
|
495
|
+
--jwt-key-file=<value> (required) [env: SIMPLY_CICD_JWT_KEY_FILE] Path to the JWT private key file used for
|
|
496
|
+
authentication.
|
|
497
|
+
--scratch-org-source-dir=<value> Source directory to push to the scratch org, in addition to the default package
|
|
498
|
+
directory.
|
|
499
|
+
|
|
500
|
+
GLOBAL FLAGS
|
|
501
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
502
|
+
--json Format output as json.
|
|
503
|
+
|
|
504
|
+
DESCRIPTION
|
|
505
|
+
Push source to the scratch org created by `build create-scratch`.
|
|
506
|
+
|
|
507
|
+
Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`), authenticates as that scratch org, strips metadata
|
|
508
|
+
types the scratch org push doesn't support (Einstein Conversation Agent file types), and runs `sf project deploy
|
|
509
|
+
start`. When `--scratch-org-source-dir` is given, also deploys the default package directory's `seedMetadata.path`, if
|
|
510
|
+
declared in `sfdx-project.json`.
|
|
511
|
+
|
|
512
|
+
Skipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).
|
|
513
|
+
|
|
514
|
+
EXAMPLES
|
|
515
|
+
$ sf simply cicd build push-scratch --jwt-key-file ./server.key
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
_See code: [lib/commands/simply/cicd/build/push-scratch.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/build/push-scratch.js)_
|
|
519
|
+
|
|
520
|
+
## `sf simply cicd build test-scratch`
|
|
521
|
+
|
|
522
|
+
Run Apex tests against the scratch org created by `build create-scratch`.
|
|
523
|
+
|
|
524
|
+
```
|
|
525
|
+
USAGE
|
|
526
|
+
$ sf simply cicd build test-scratch --jwt-key-file <value> [--json] [--flags-dir <value>] [--debug] [--disabled]
|
|
527
|
+
[--disable-apex-tests]
|
|
528
|
+
|
|
529
|
+
FLAGS
|
|
530
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
531
|
+
--disable-apex-tests Skip running Apex tests, without skipping the rest of the job.
|
|
532
|
+
--disabled [env: SIMPLY_CICD_DISABLED] Skip this job entirely, logging a warning instead of running it.
|
|
533
|
+
--jwt-key-file=<value> (required) [env: SIMPLY_CICD_JWT_KEY_FILE] Path to the JWT private key file used for
|
|
534
|
+
authentication.
|
|
535
|
+
|
|
536
|
+
GLOBAL FLAGS
|
|
537
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
538
|
+
--json Format output as json.
|
|
539
|
+
|
|
540
|
+
DESCRIPTION
|
|
541
|
+
Run Apex tests against the scratch org created by `build create-scratch`.
|
|
542
|
+
|
|
543
|
+
Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`), authenticates as that scratch org, and runs its
|
|
544
|
+
Apex tests with `RunLocalTests`.
|
|
545
|
+
|
|
546
|
+
Skipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).
|
|
547
|
+
|
|
548
|
+
EXAMPLES
|
|
549
|
+
$ sf simply cicd build test-scratch --jwt-key-file ./server.key
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
_See code: [lib/commands/simply/cicd/build/test-scratch.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/build/test-scratch.js)_
|
|
553
|
+
|
|
554
|
+
## `sf simply cicd deploy happy-soup deploy-unpackaged`
|
|
555
|
+
|
|
556
|
+
Run the deploy-unpackaged stage of a happy-soup deployment.
|
|
557
|
+
|
|
558
|
+
```
|
|
559
|
+
USAGE
|
|
560
|
+
$ sf simply cicd deploy happy-soup deploy-unpackaged --ci-job-token <value> [--json] [--flags-dir <value>] [--alias <value>] [--auth-url <value>]
|
|
561
|
+
[--client-id <value>] [--instance-url <value>] [--jwt-key-file <value>] [--username <value>] [--debug]
|
|
562
|
+
[--deploy-config-file <value>] [--deploy-progress-file <value>] [--deploy-rules-file <value>] [--source-branch-name
|
|
563
|
+
<value>] [--start-from <value>] [--test-level <value>] [--test-suite <value>] [--tests <value>] [--vcs-host <value>]
|
|
564
|
+
[--vcs-provider gitlab]
|
|
565
|
+
|
|
566
|
+
FLAGS
|
|
567
|
+
--alias=<value> [env: SIMPLY_CICD_ALIAS] Salesforce org alias.
|
|
568
|
+
--auth-url=<value> [env: SIMPLY_CICD_AUTH_URL] Salesforce authorization (SFDX auth) URL, used as an
|
|
569
|
+
alternative to JWT authentication.
|
|
570
|
+
--ci-job-token=<value> (required) [env: SIMPLY_CICD_CI_JOB_TOKEN] The CI job token used to authenticate
|
|
571
|
+
read-only repository clones.
|
|
572
|
+
--client-id=<value> [env: SIMPLY_CICD_CLIENT_ID] Connected app client ID, used for JWT authentication.
|
|
573
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
574
|
+
--deploy-config-file=<value> [env: SIMPLY_CICD_DEPLOY_CONFIG_FILE] Path to the deployment configuration file. If
|
|
575
|
+
not provided, derived from --source-branch-name.
|
|
576
|
+
--deploy-progress-file=<value> [default: DEPLOY_PROGRESS.json, env: SIMPLY_CICD_DEPLOY_PROGRESS_FILE] Path to the
|
|
577
|
+
deployment progress file.
|
|
578
|
+
--deploy-rules-file=<value> [default: config/deploy-rules.json, env: SIMPLY_CICD_DEPLOY_RULES_FILE] Path to the
|
|
579
|
+
deployment rules file.
|
|
580
|
+
--instance-url=<value> [env: SIMPLY_CICD_INSTANCE_URL] Salesforce login/instance URL, used for JWT
|
|
581
|
+
authentication.
|
|
582
|
+
--jwt-key-file=<value> [env: SIMPLY_CICD_JWT_KEY_FILE] Path to the JWT private key file.
|
|
583
|
+
--source-branch-name=<value> [env: SIMPLY_CICD_SOURCE_BRANCH_NAME] The source branch name for the deployment, used
|
|
584
|
+
to derive the deployment config file path if --deploy-config-file is not provided.
|
|
585
|
+
--start-from=<value> Start (or resume) the deployment from a specific job name, overriding the progress
|
|
586
|
+
file.
|
|
587
|
+
--test-level=<value> [default: RunLocalTests, env: SIMPLY_CICD_TEST_LEVEL] The Apex test level to run.
|
|
588
|
+
--test-suite=<value> [env: SIMPLY_CICD_TEST_SUITE] The Apex test suite to run. If specified, overrides
|
|
589
|
+
--test-level.
|
|
590
|
+
--tests=<value> [env: SIMPLY_CICD_TESTS] Specific Apex tests to run.
|
|
591
|
+
--username=<value> [env: SIMPLY_CICD_USERNAME] Salesforce username, used for JWT authentication.
|
|
592
|
+
--vcs-host=<value> [default: gitlab.com, env: SIMPLY_CICD_VCS_HOST] The source-control host to talk to
|
|
593
|
+
(e.g. gitlab.com).
|
|
594
|
+
--vcs-provider=<option> [default: gitlab, env: SIMPLY_CICD_VCS_PROVIDER] The source-control-hosting platform
|
|
595
|
+
to talk to.
|
|
596
|
+
<options: gitlab>
|
|
597
|
+
|
|
598
|
+
GLOBAL FLAGS
|
|
599
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
600
|
+
--json Format output as json.
|
|
601
|
+
|
|
602
|
+
DESCRIPTION
|
|
603
|
+
Run the deploy-unpackaged stage of a happy-soup deployment.
|
|
604
|
+
|
|
605
|
+
Runs the `bin/unpackagedDeploy.sh` script (if present) for each configured deployment that participates in this stage,
|
|
606
|
+
cloning each repo fresh and resuming from the deployment progress file unless --start-from is given.
|
|
607
|
+
|
|
608
|
+
EXAMPLES
|
|
609
|
+
$ sf simply cicd deploy happy-soup deploy-unpackaged --ci-job-token $CI_JOB_TOKEN --alias my-org --source-branch-name release/uat
|
|
610
|
+
```
|
|
611
|
+
|
|
612
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/deploy-unpackaged.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/deploy-unpackaged.js)_
|
|
613
|
+
|
|
614
|
+
## `sf simply cicd deploy happy-soup deployment-close-out`
|
|
615
|
+
|
|
616
|
+
Archive the deployment config file used for a happy-soup deployment.
|
|
617
|
+
|
|
618
|
+
```
|
|
619
|
+
USAGE
|
|
620
|
+
$ sf simply cicd deploy happy-soup deployment-close-out --ci-commit-ref-name <value> --ci-pipeline-id <value> --ci-project-path <value>
|
|
621
|
+
--project-access-token <value> [--json] [--flags-dir <value>] [--debug] [--deploy-config-file <value>]
|
|
622
|
+
[--deploy-progress-file <value>] [--deploy-rules-file <value>] [--deploy-release-date <value>] [--source-branch-name
|
|
623
|
+
<value>] [--vcs-host <value>] [--vcs-provider gitlab]
|
|
624
|
+
|
|
625
|
+
FLAGS
|
|
626
|
+
--ci-commit-ref-name=<value> (required) [env: SIMPLY_CICD_CI_COMMIT_REF_NAME] The commit ref (branch) to fetch and
|
|
627
|
+
switch to before archiving.
|
|
628
|
+
--ci-pipeline-id=<value> (required) [env: SIMPLY_CICD_CI_PIPELINE_ID] The CI pipeline ID, used to build the
|
|
629
|
+
authenticated push remote.
|
|
630
|
+
--ci-project-path=<value> (required) [env: SIMPLY_CICD_CI_PROJECT_PATH] The project path (e.g. group/project),
|
|
631
|
+
used to build the authenticated push remote.
|
|
632
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
633
|
+
--deploy-config-file=<value> [env: SIMPLY_CICD_DEPLOY_CONFIG_FILE] Path to the deployment configuration file to
|
|
634
|
+
archive, if --deploy-release-date is not provided.
|
|
635
|
+
--deploy-progress-file=<value> [default: DEPLOY_PROGRESS.json, env: SIMPLY_CICD_DEPLOY_PROGRESS_FILE] Path to the
|
|
636
|
+
deployment progress file.
|
|
637
|
+
--deploy-release-date=<value> The release date (e.g. 2026-01-15) used to resolve the source file as
|
|
638
|
+
`deployment-configs/<date>.json`, taking priority over --deploy-config-file.
|
|
639
|
+
--deploy-rules-file=<value> [default: config/deploy-rules.json, env: SIMPLY_CICD_DEPLOY_RULES_FILE] Path to the
|
|
640
|
+
deployment rules file.
|
|
641
|
+
--project-access-token=<value> (required) [env: SIMPLY_CICD_PROJECT_ACCESS_TOKEN] A project access token with write
|
|
642
|
+
access, used to push the archive commit.
|
|
643
|
+
--source-branch-name=<value> [env: SIMPLY_CICD_SOURCE_BRANCH_NAME] The source branch name for the deployment, used
|
|
644
|
+
to derive the deployment config file path if --deploy-config-file is not provided.
|
|
645
|
+
--vcs-host=<value> [default: gitlab.com, env: SIMPLY_CICD_VCS_HOST] The source-control host to talk to
|
|
646
|
+
(e.g. gitlab.com).
|
|
647
|
+
--vcs-provider=<option> [default: gitlab, env: SIMPLY_CICD_VCS_PROVIDER] The source-control-hosting platform
|
|
648
|
+
to talk to.
|
|
649
|
+
<options: gitlab>
|
|
650
|
+
|
|
651
|
+
GLOBAL FLAGS
|
|
652
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
653
|
+
--json Format output as json.
|
|
654
|
+
|
|
655
|
+
DESCRIPTION
|
|
656
|
+
Archive the deployment config file used for a happy-soup deployment.
|
|
657
|
+
|
|
658
|
+
Fetches and switches to the commit ref, then copies the deployment config file that was used (either
|
|
659
|
+
--deploy-release-date resolved to `deployment-configs/<date>.json`, or the explicit/derived deploy config file) to
|
|
660
|
+
`config/deploy.json` and commits it. If no source file can be found, an existing obsolete `config/deploy.json` is
|
|
661
|
+
removed instead. Both cases push the change with a `[skip ci]` commit message.
|
|
662
|
+
|
|
663
|
+
EXAMPLES
|
|
664
|
+
$ sf simply cicd deploy happy-soup deployment-close-out --ci-commit-ref-name main --ci-pipeline-id 123 --ci-project-path group/project --project-access-token $PROJECT_ACCESS_TOKEN --deploy-release-date 2026-01-15
|
|
665
|
+
```
|
|
666
|
+
|
|
667
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/deployment-close-out.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/deployment-close-out.js)_
|
|
668
|
+
|
|
669
|
+
## `sf simply cicd deploy happy-soup install-packaged`
|
|
670
|
+
|
|
671
|
+
Install packaged dependencies into the target org for a happy-soup deployment.
|
|
672
|
+
|
|
673
|
+
```
|
|
674
|
+
USAGE
|
|
675
|
+
$ sf simply cicd deploy happy-soup install-packaged [--json] [--flags-dir <value>] [--alias <value>] [--auth-url <value>] [--client-id <value>]
|
|
676
|
+
[--instance-url <value>] [--jwt-key-file <value>] [--username <value>] [--debug] [--deploy-progress-file <value>]
|
|
677
|
+
[--deploy-rules-file <value>] [--install-type All|Delta|Upgrade]
|
|
678
|
+
|
|
679
|
+
FLAGS
|
|
680
|
+
--alias=<value> [env: SIMPLY_CICD_ALIAS] Salesforce org alias.
|
|
681
|
+
--auth-url=<value> [env: SIMPLY_CICD_AUTH_URL] Salesforce authorization (SFDX auth) URL, used as an
|
|
682
|
+
alternative to JWT authentication.
|
|
683
|
+
--client-id=<value> [env: SIMPLY_CICD_CLIENT_ID] Connected app client ID, used for JWT authentication.
|
|
684
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
685
|
+
--deploy-progress-file=<value> [default: DEPLOY_PROGRESS.json, env: SIMPLY_CICD_DEPLOY_PROGRESS_FILE] Path to the
|
|
686
|
+
deployment progress file.
|
|
687
|
+
--deploy-rules-file=<value> [default: config/deploy-rules.json, env: SIMPLY_CICD_DEPLOY_RULES_FILE] Path to the
|
|
688
|
+
deployment rules file.
|
|
689
|
+
--install-type=<option> [default: Upgrade] The type of dependency installation to perform.
|
|
690
|
+
<options: All|Delta|Upgrade>
|
|
691
|
+
--instance-url=<value> [env: SIMPLY_CICD_INSTANCE_URL] Salesforce login/instance URL, used for JWT
|
|
692
|
+
authentication.
|
|
693
|
+
--jwt-key-file=<value> [env: SIMPLY_CICD_JWT_KEY_FILE] Path to the JWT private key file.
|
|
694
|
+
--username=<value> [env: SIMPLY_CICD_USERNAME] Salesforce username, used for JWT authentication.
|
|
695
|
+
|
|
696
|
+
GLOBAL FLAGS
|
|
697
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
698
|
+
--json Format output as json.
|
|
699
|
+
|
|
700
|
+
DESCRIPTION
|
|
701
|
+
Install packaged dependencies into the target org for a happy-soup deployment.
|
|
702
|
+
|
|
703
|
+
Authenticates to the target org and installs the packaged dependencies declared in `sfdx-project.json`.
|
|
704
|
+
|
|
705
|
+
EXAMPLES
|
|
706
|
+
$ sf simply cicd deploy happy-soup install-packaged --alias my-org
|
|
707
|
+
```
|
|
708
|
+
|
|
709
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/install-packaged.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/install-packaged.js)_
|
|
710
|
+
|
|
711
|
+
## `sf simply cicd deploy happy-soup post-deploy`
|
|
712
|
+
|
|
713
|
+
Run the post-deploy stage of a happy-soup deployment.
|
|
714
|
+
|
|
715
|
+
```
|
|
716
|
+
USAGE
|
|
717
|
+
$ sf simply cicd deploy happy-soup post-deploy --ci-job-token <value> [--json] [--flags-dir <value>] [--alias <value>] [--auth-url <value>]
|
|
718
|
+
[--client-id <value>] [--instance-url <value>] [--jwt-key-file <value>] [--username <value>] [--debug]
|
|
719
|
+
[--deploy-config-file <value>] [--deploy-progress-file <value>] [--deploy-rules-file <value>] [--source-branch-name
|
|
720
|
+
<value>] [--start-from <value>] [--test-level <value>] [--test-suite <value>] [--tests <value>] [--vcs-host <value>]
|
|
721
|
+
[--vcs-provider gitlab]
|
|
722
|
+
|
|
723
|
+
FLAGS
|
|
724
|
+
--alias=<value> [env: SIMPLY_CICD_ALIAS] Salesforce org alias.
|
|
725
|
+
--auth-url=<value> [env: SIMPLY_CICD_AUTH_URL] Salesforce authorization (SFDX auth) URL, used as an
|
|
726
|
+
alternative to JWT authentication.
|
|
727
|
+
--ci-job-token=<value> (required) [env: SIMPLY_CICD_CI_JOB_TOKEN] The CI job token used to authenticate
|
|
728
|
+
read-only repository clones.
|
|
729
|
+
--client-id=<value> [env: SIMPLY_CICD_CLIENT_ID] Connected app client ID, used for JWT authentication.
|
|
730
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
731
|
+
--deploy-config-file=<value> [env: SIMPLY_CICD_DEPLOY_CONFIG_FILE] Path to the deployment configuration file. If
|
|
732
|
+
not provided, derived from --source-branch-name.
|
|
733
|
+
--deploy-progress-file=<value> [default: DEPLOY_PROGRESS.json, env: SIMPLY_CICD_DEPLOY_PROGRESS_FILE] Path to the
|
|
734
|
+
deployment progress file.
|
|
735
|
+
--deploy-rules-file=<value> [default: config/deploy-rules.json, env: SIMPLY_CICD_DEPLOY_RULES_FILE] Path to the
|
|
736
|
+
deployment rules file.
|
|
737
|
+
--instance-url=<value> [env: SIMPLY_CICD_INSTANCE_URL] Salesforce login/instance URL, used for JWT
|
|
738
|
+
authentication.
|
|
739
|
+
--jwt-key-file=<value> [env: SIMPLY_CICD_JWT_KEY_FILE] Path to the JWT private key file.
|
|
740
|
+
--source-branch-name=<value> [env: SIMPLY_CICD_SOURCE_BRANCH_NAME] The source branch name for the deployment, used
|
|
741
|
+
to derive the deployment config file path if --deploy-config-file is not provided.
|
|
742
|
+
--start-from=<value> Start (or resume) the deployment from a specific job name, overriding the progress
|
|
743
|
+
file.
|
|
744
|
+
--test-level=<value> [default: RunLocalTests, env: SIMPLY_CICD_TEST_LEVEL] The Apex test level to run.
|
|
745
|
+
--test-suite=<value> [env: SIMPLY_CICD_TEST_SUITE] The Apex test suite to run. If specified, overrides
|
|
746
|
+
--test-level.
|
|
747
|
+
--tests=<value> [env: SIMPLY_CICD_TESTS] Specific Apex tests to run.
|
|
748
|
+
--username=<value> [env: SIMPLY_CICD_USERNAME] Salesforce username, used for JWT authentication.
|
|
749
|
+
--vcs-host=<value> [default: gitlab.com, env: SIMPLY_CICD_VCS_HOST] The source-control host to talk to
|
|
750
|
+
(e.g. gitlab.com).
|
|
751
|
+
--vcs-provider=<option> [default: gitlab, env: SIMPLY_CICD_VCS_PROVIDER] The source-control-hosting platform
|
|
752
|
+
to talk to.
|
|
753
|
+
<options: gitlab>
|
|
754
|
+
|
|
755
|
+
GLOBAL FLAGS
|
|
756
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
757
|
+
--json Format output as json.
|
|
758
|
+
|
|
759
|
+
DESCRIPTION
|
|
760
|
+
Run the post-deploy stage of a happy-soup deployment.
|
|
761
|
+
|
|
762
|
+
Runs the `bin/postDeploy.sh` script (if present) for each configured deployment that participates in this stage,
|
|
763
|
+
cloning each repo fresh and resuming from the deployment progress file unless --start-from is given.
|
|
764
|
+
|
|
765
|
+
EXAMPLES
|
|
766
|
+
$ sf simply cicd deploy happy-soup post-deploy --ci-job-token $CI_JOB_TOKEN --alias my-org --source-branch-name release/uat
|
|
767
|
+
```
|
|
768
|
+
|
|
769
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/post-deploy.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/post-deploy.js)_
|
|
770
|
+
|
|
771
|
+
## `sf simply cicd deploy happy-soup post-destructive`
|
|
772
|
+
|
|
773
|
+
Run the post-destructive stage of a happy-soup deployment.
|
|
774
|
+
|
|
775
|
+
```
|
|
776
|
+
USAGE
|
|
777
|
+
$ sf simply cicd deploy happy-soup post-destructive --ci-job-token <value> [--json] [--flags-dir <value>] [--alias <value>] [--auth-url <value>]
|
|
778
|
+
[--client-id <value>] [--instance-url <value>] [--jwt-key-file <value>] [--username <value>] [--debug]
|
|
779
|
+
[--deploy-config-file <value>] [--deploy-progress-file <value>] [--deploy-rules-file <value>] [--source-branch-name
|
|
780
|
+
<value>] [--start-from <value>] [--test-level <value>] [--test-suite <value>] [--tests <value>] [--vcs-host <value>]
|
|
781
|
+
[--vcs-provider gitlab]
|
|
782
|
+
|
|
783
|
+
FLAGS
|
|
784
|
+
--alias=<value> [env: SIMPLY_CICD_ALIAS] Salesforce org alias.
|
|
785
|
+
--auth-url=<value> [env: SIMPLY_CICD_AUTH_URL] Salesforce authorization (SFDX auth) URL, used as an
|
|
786
|
+
alternative to JWT authentication.
|
|
787
|
+
--ci-job-token=<value> (required) [env: SIMPLY_CICD_CI_JOB_TOKEN] The CI job token used to authenticate
|
|
788
|
+
read-only repository clones.
|
|
789
|
+
--client-id=<value> [env: SIMPLY_CICD_CLIENT_ID] Connected app client ID, used for JWT authentication.
|
|
790
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
791
|
+
--deploy-config-file=<value> [env: SIMPLY_CICD_DEPLOY_CONFIG_FILE] Path to the deployment configuration file. If
|
|
792
|
+
not provided, derived from --source-branch-name.
|
|
793
|
+
--deploy-progress-file=<value> [default: DEPLOY_PROGRESS.json, env: SIMPLY_CICD_DEPLOY_PROGRESS_FILE] Path to the
|
|
794
|
+
deployment progress file.
|
|
795
|
+
--deploy-rules-file=<value> [default: config/deploy-rules.json, env: SIMPLY_CICD_DEPLOY_RULES_FILE] Path to the
|
|
796
|
+
deployment rules file.
|
|
797
|
+
--instance-url=<value> [env: SIMPLY_CICD_INSTANCE_URL] Salesforce login/instance URL, used for JWT
|
|
798
|
+
authentication.
|
|
799
|
+
--jwt-key-file=<value> [env: SIMPLY_CICD_JWT_KEY_FILE] Path to the JWT private key file.
|
|
800
|
+
--source-branch-name=<value> [env: SIMPLY_CICD_SOURCE_BRANCH_NAME] The source branch name for the deployment, used
|
|
801
|
+
to derive the deployment config file path if --deploy-config-file is not provided.
|
|
802
|
+
--start-from=<value> Start (or resume) the deployment from a specific job name, overriding the progress
|
|
803
|
+
file.
|
|
804
|
+
--test-level=<value> [default: RunLocalTests, env: SIMPLY_CICD_TEST_LEVEL] The Apex test level to run.
|
|
805
|
+
--test-suite=<value> [env: SIMPLY_CICD_TEST_SUITE] The Apex test suite to run. If specified, overrides
|
|
806
|
+
--test-level.
|
|
807
|
+
--tests=<value> [env: SIMPLY_CICD_TESTS] Specific Apex tests to run.
|
|
808
|
+
--username=<value> [env: SIMPLY_CICD_USERNAME] Salesforce username, used for JWT authentication.
|
|
809
|
+
--vcs-host=<value> [default: gitlab.com, env: SIMPLY_CICD_VCS_HOST] The source-control host to talk to
|
|
810
|
+
(e.g. gitlab.com).
|
|
811
|
+
--vcs-provider=<option> [default: gitlab, env: SIMPLY_CICD_VCS_PROVIDER] The source-control-hosting platform
|
|
812
|
+
to talk to.
|
|
813
|
+
<options: gitlab>
|
|
814
|
+
|
|
815
|
+
GLOBAL FLAGS
|
|
816
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
817
|
+
--json Format output as json.
|
|
818
|
+
|
|
819
|
+
DESCRIPTION
|
|
820
|
+
Run the post-destructive stage of a happy-soup deployment.
|
|
821
|
+
|
|
822
|
+
Runs the `bin/postDestructive.sh` script (if present) for each configured deployment that participates in this stage,
|
|
823
|
+
cloning each repo fresh and resuming from the deployment progress file unless --start-from is given.
|
|
824
|
+
|
|
825
|
+
EXAMPLES
|
|
826
|
+
$ sf simply cicd deploy happy-soup post-destructive --ci-job-token $CI_JOB_TOKEN --alias my-org --source-branch-name release/uat
|
|
827
|
+
```
|
|
828
|
+
|
|
829
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/post-destructive.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/post-destructive.js)_
|
|
830
|
+
|
|
831
|
+
## `sf simply cicd deploy happy-soup pre-destructive`
|
|
832
|
+
|
|
833
|
+
Run the pre-destructive stage of a happy-soup deployment.
|
|
834
|
+
|
|
835
|
+
```
|
|
836
|
+
USAGE
|
|
837
|
+
$ sf simply cicd deploy happy-soup pre-destructive --ci-job-token <value> [--json] [--flags-dir <value>] [--alias <value>] [--auth-url <value>]
|
|
838
|
+
[--client-id <value>] [--instance-url <value>] [--jwt-key-file <value>] [--username <value>] [--debug]
|
|
839
|
+
[--deploy-config-file <value>] [--deploy-progress-file <value>] [--deploy-rules-file <value>] [--source-branch-name
|
|
840
|
+
<value>] [--start-from <value>] [--test-level <value>] [--test-suite <value>] [--tests <value>] [--vcs-host <value>]
|
|
841
|
+
[--vcs-provider gitlab]
|
|
842
|
+
|
|
843
|
+
FLAGS
|
|
844
|
+
--alias=<value> [env: SIMPLY_CICD_ALIAS] Salesforce org alias.
|
|
845
|
+
--auth-url=<value> [env: SIMPLY_CICD_AUTH_URL] Salesforce authorization (SFDX auth) URL, used as an
|
|
846
|
+
alternative to JWT authentication.
|
|
847
|
+
--ci-job-token=<value> (required) [env: SIMPLY_CICD_CI_JOB_TOKEN] The CI job token used to authenticate
|
|
848
|
+
read-only repository clones.
|
|
849
|
+
--client-id=<value> [env: SIMPLY_CICD_CLIENT_ID] Connected app client ID, used for JWT authentication.
|
|
850
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
851
|
+
--deploy-config-file=<value> [env: SIMPLY_CICD_DEPLOY_CONFIG_FILE] Path to the deployment configuration file. If
|
|
852
|
+
not provided, derived from --source-branch-name.
|
|
853
|
+
--deploy-progress-file=<value> [default: DEPLOY_PROGRESS.json, env: SIMPLY_CICD_DEPLOY_PROGRESS_FILE] Path to the
|
|
854
|
+
deployment progress file.
|
|
855
|
+
--deploy-rules-file=<value> [default: config/deploy-rules.json, env: SIMPLY_CICD_DEPLOY_RULES_FILE] Path to the
|
|
856
|
+
deployment rules file.
|
|
857
|
+
--instance-url=<value> [env: SIMPLY_CICD_INSTANCE_URL] Salesforce login/instance URL, used for JWT
|
|
858
|
+
authentication.
|
|
859
|
+
--jwt-key-file=<value> [env: SIMPLY_CICD_JWT_KEY_FILE] Path to the JWT private key file.
|
|
860
|
+
--source-branch-name=<value> [env: SIMPLY_CICD_SOURCE_BRANCH_NAME] The source branch name for the deployment, used
|
|
861
|
+
to derive the deployment config file path if --deploy-config-file is not provided.
|
|
862
|
+
--start-from=<value> Start (or resume) the deployment from a specific job name, overriding the progress
|
|
863
|
+
file.
|
|
864
|
+
--test-level=<value> [default: RunLocalTests, env: SIMPLY_CICD_TEST_LEVEL] The Apex test level to run.
|
|
865
|
+
--test-suite=<value> [env: SIMPLY_CICD_TEST_SUITE] The Apex test suite to run. If specified, overrides
|
|
866
|
+
--test-level.
|
|
867
|
+
--tests=<value> [env: SIMPLY_CICD_TESTS] Specific Apex tests to run.
|
|
868
|
+
--username=<value> [env: SIMPLY_CICD_USERNAME] Salesforce username, used for JWT authentication.
|
|
869
|
+
--vcs-host=<value> [default: gitlab.com, env: SIMPLY_CICD_VCS_HOST] The source-control host to talk to
|
|
870
|
+
(e.g. gitlab.com).
|
|
871
|
+
--vcs-provider=<option> [default: gitlab, env: SIMPLY_CICD_VCS_PROVIDER] The source-control-hosting platform
|
|
872
|
+
to talk to.
|
|
873
|
+
<options: gitlab>
|
|
874
|
+
|
|
875
|
+
GLOBAL FLAGS
|
|
876
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
877
|
+
--json Format output as json.
|
|
878
|
+
|
|
879
|
+
DESCRIPTION
|
|
880
|
+
Run the pre-destructive stage of a happy-soup deployment.
|
|
881
|
+
|
|
882
|
+
Runs the `bin/preDestructive.sh` script (if present) for each configured deployment that participates in this stage,
|
|
883
|
+
cloning each repo fresh and resuming from the deployment progress file unless --start-from is given.
|
|
884
|
+
|
|
885
|
+
EXAMPLES
|
|
886
|
+
$ sf simply cicd deploy happy-soup pre-destructive --ci-job-token $CI_JOB_TOKEN --alias my-org --source-branch-name release/uat
|
|
887
|
+
```
|
|
888
|
+
|
|
889
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/pre-destructive.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/pre-destructive.js)_
|
|
890
|
+
|
|
891
|
+
## `sf simply cicd deploy happy-soup tag-deployment`
|
|
892
|
+
|
|
893
|
+
Tag the current commit with details about a happy-soup deployment.
|
|
894
|
+
|
|
895
|
+
```
|
|
896
|
+
USAGE
|
|
897
|
+
$ sf simply cicd deploy happy-soup tag-deployment --ci-merge-request-iid <value> --ci-merge-request-project-url <value> --ci-pipeline-id <value>
|
|
898
|
+
--ci-pipeline-url <value> --ci-project-path <value> --project-access-token <value> [--json] [--flags-dir <value>]
|
|
899
|
+
[--alias <value>] [--auth-url <value>] [--client-id <value>] [--instance-url <value>] [--jwt-key-file <value>]
|
|
900
|
+
[--username <value>] [--debug] [--deploy-progress-file <value>] [--deploy-rules-file <value>] [--vcs-host <value>]
|
|
901
|
+
[--vcs-provider gitlab]
|
|
902
|
+
|
|
903
|
+
FLAGS
|
|
904
|
+
--alias=<value> [env: SIMPLY_CICD_ALIAS] Salesforce org alias.
|
|
905
|
+
--auth-url=<value> [env: SIMPLY_CICD_AUTH_URL] Salesforce authorization (SFDX auth) URL, used as
|
|
906
|
+
an alternative to JWT authentication.
|
|
907
|
+
--ci-merge-request-iid=<value> (required) [env: SIMPLY_CICD_CI_MERGE_REQUEST_IID] The merge request's
|
|
908
|
+
internal ID (IID), used to build the merge request link in the tag message.
|
|
909
|
+
--ci-merge-request-project-url=<value> (required) [env: SIMPLY_CICD_CI_MERGE_REQUEST_PROJECT_URL] The project's URL,
|
|
910
|
+
used to build the merge request link in the tag message.
|
|
911
|
+
--ci-pipeline-id=<value> (required) [env: SIMPLY_CICD_CI_PIPELINE_ID] The CI pipeline ID.
|
|
912
|
+
--ci-pipeline-url=<value> (required) [env: SIMPLY_CICD_CI_PIPELINE_URL] The CI pipeline URL, included in
|
|
913
|
+
the tag message if provided.
|
|
914
|
+
--ci-project-path=<value> (required) [env: SIMPLY_CICD_CI_PROJECT_PATH] The project path (e.g.
|
|
915
|
+
group/project), used to build the authenticated push remote.
|
|
916
|
+
--client-id=<value> [env: SIMPLY_CICD_CLIENT_ID] Connected app client ID, used for JWT
|
|
917
|
+
authentication.
|
|
918
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
919
|
+
--deploy-progress-file=<value> [default: DEPLOY_PROGRESS.json, env: SIMPLY_CICD_DEPLOY_PROGRESS_FILE] Path to
|
|
920
|
+
the deployment progress file.
|
|
921
|
+
--deploy-rules-file=<value> [default: config/deploy-rules.json, env: SIMPLY_CICD_DEPLOY_RULES_FILE] Path
|
|
922
|
+
to the deployment rules file.
|
|
923
|
+
--instance-url=<value> [env: SIMPLY_CICD_INSTANCE_URL] Salesforce login/instance URL, used for JWT
|
|
924
|
+
authentication.
|
|
925
|
+
--jwt-key-file=<value> [env: SIMPLY_CICD_JWT_KEY_FILE] Path to the JWT private key file.
|
|
926
|
+
--project-access-token=<value> (required) [env: SIMPLY_CICD_PROJECT_ACCESS_TOKEN] A project access token with
|
|
927
|
+
write access, used to push the tag.
|
|
928
|
+
--username=<value> [env: SIMPLY_CICD_USERNAME] Salesforce username, used for JWT authentication.
|
|
929
|
+
--vcs-host=<value> [default: gitlab.com, env: SIMPLY_CICD_VCS_HOST] The source-control host to
|
|
930
|
+
talk to (e.g. gitlab.com).
|
|
931
|
+
--vcs-provider=<option> [default: gitlab, env: SIMPLY_CICD_VCS_PROVIDER] The source-control-hosting
|
|
932
|
+
platform to talk to.
|
|
933
|
+
<options: gitlab>
|
|
934
|
+
|
|
935
|
+
GLOBAL FLAGS
|
|
936
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
937
|
+
--json Format output as json.
|
|
938
|
+
|
|
939
|
+
DESCRIPTION
|
|
940
|
+
Tag the current commit with details about a happy-soup deployment.
|
|
941
|
+
|
|
942
|
+
Authenticates to the target org, derives an org domain prefix from its instance URL, and creates an annotated git tag
|
|
943
|
+
(`deployed--<org-domain-prefix>-<timestamp>`) recording the deployment time (America/New_York) and, if provided, the
|
|
944
|
+
associated pipeline and merge request links. The tag is pushed to the source repository.
|
|
945
|
+
|
|
946
|
+
EXAMPLES
|
|
947
|
+
$ sf simply cicd deploy happy-soup tag-deployment --alias my-org --ci-pipeline-id 123 --ci-pipeline-url https://gitlab.example.com/group/project/-/pipelines/123 --ci-project-path group/project --ci-merge-request-iid 45 --ci-merge-request-project-url https://gitlab.example.com/group/project --project-access-token $PROJECT_ACCESS_TOKEN
|
|
948
|
+
```
|
|
949
|
+
|
|
950
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.js)_
|
|
951
|
+
|
|
952
|
+
## `sf simply cicd deploy happy-soup validate`
|
|
953
|
+
|
|
954
|
+
Validate deployment configuration files for a happy-soup deployment.
|
|
955
|
+
|
|
956
|
+
```
|
|
957
|
+
USAGE
|
|
958
|
+
$ sf simply cicd deploy happy-soup validate [--json] [--flags-dir <value>] [--deploy-config-file <value>] [--deploy-progress-file <value>]
|
|
959
|
+
[--deploy-rules-file <value>] [--source-branch-name <value>]
|
|
960
|
+
|
|
961
|
+
FLAGS
|
|
962
|
+
--deploy-config-file=<value> [env: SIMPLY_CICD_DEPLOY_CONFIG_FILE] Path to the deployment configuration file. If
|
|
963
|
+
not provided, derived from --source-branch-name.
|
|
964
|
+
--deploy-progress-file=<value> [default: DEPLOY_PROGRESS.json, env: SIMPLY_CICD_DEPLOY_PROGRESS_FILE] Path to the
|
|
965
|
+
deployment progress file.
|
|
966
|
+
--deploy-rules-file=<value> [default: config/deploy-rules.json, env: SIMPLY_CICD_DEPLOY_RULES_FILE] Path to the
|
|
967
|
+
deployment rules file.
|
|
968
|
+
--source-branch-name=<value> [env: SIMPLY_CICD_SOURCE_BRANCH_NAME] The source branch name for the deployment, used
|
|
969
|
+
to derive the deployment config file path if --deploy-config-file is not provided.
|
|
970
|
+
|
|
971
|
+
GLOBAL FLAGS
|
|
972
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
973
|
+
--json Format output as json.
|
|
974
|
+
|
|
975
|
+
DESCRIPTION
|
|
976
|
+
Validate deployment configuration files for a happy-soup deployment.
|
|
977
|
+
|
|
978
|
+
Validates the deployment config file (explicit, or derived from --source-branch-name) and, if --deploy-rules-file is
|
|
979
|
+
given, the deployment rules file. A missing file is skipped with a warning; a malformed or schema-invalid file fails
|
|
980
|
+
the command.
|
|
981
|
+
|
|
982
|
+
EXAMPLES
|
|
983
|
+
$ sf simply cicd deploy happy-soup validate --source-branch-name release/uat
|
|
984
|
+
|
|
985
|
+
$ sf simply cicd deploy happy-soup validate --deploy-config-file deployment-configs/uat.json --deploy-rules-file config/deploy-rules.json
|
|
986
|
+
```
|
|
987
|
+
|
|
988
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/validate.js)_
|
|
989
|
+
|
|
990
|
+
## `sf simply cicd deploy project deploy-unpackaged`
|
|
991
|
+
|
|
992
|
+
Run the deploy-unpackaged stage of a project deployment.
|
|
993
|
+
|
|
994
|
+
```
|
|
995
|
+
USAGE
|
|
996
|
+
$ sf simply cicd deploy project deploy-unpackaged --ci-job-token <value> [--json] [--flags-dir <value>] [--alias <value>] [--auth-url <value>]
|
|
997
|
+
[--client-id <value>] [--instance-url <value>] [--jwt-key-file <value>] [--username <value>] [--debug]
|
|
998
|
+
[--deploy-config-file <value>] [--deploy-progress-file <value>] [--deploy-rules-file <value>] [--start-from <value>]
|
|
999
|
+
[--test-level <value>] [--test-suite <value>] [--tests <value>] [--vcs-host <value>] [--vcs-provider gitlab]
|
|
1000
|
+
|
|
1001
|
+
FLAGS
|
|
1002
|
+
--alias=<value> [env: SIMPLY_CICD_ALIAS] Salesforce org alias.
|
|
1003
|
+
--auth-url=<value> [env: SIMPLY_CICD_AUTH_URL] Salesforce authorization (SFDX auth) URL, used as an
|
|
1004
|
+
alternative to JWT authentication.
|
|
1005
|
+
--ci-job-token=<value> (required) [env: SIMPLY_CICD_CI_JOB_TOKEN] The CI job token used to authenticate
|
|
1006
|
+
read-only repository clones.
|
|
1007
|
+
--client-id=<value> [env: SIMPLY_CICD_CLIENT_ID] Connected app client ID, used for JWT authentication.
|
|
1008
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
1009
|
+
--deploy-config-file=<value> [default: config/deploy.json, env: SIMPLY_CICD_DEPLOY_CONFIG_FILE] Path to the
|
|
1010
|
+
deployment configuration file.
|
|
1011
|
+
--deploy-progress-file=<value> [default: DEPLOY_PROGRESS.json, env: SIMPLY_CICD_DEPLOY_PROGRESS_FILE] Path to the
|
|
1012
|
+
deployment progress file.
|
|
1013
|
+
--deploy-rules-file=<value> [default: config/deploy-rules.json, env: SIMPLY_CICD_DEPLOY_RULES_FILE] Path to the
|
|
1014
|
+
deployment rules file.
|
|
1015
|
+
--instance-url=<value> [env: SIMPLY_CICD_INSTANCE_URL] Salesforce login/instance URL, used for JWT
|
|
1016
|
+
authentication.
|
|
1017
|
+
--jwt-key-file=<value> [env: SIMPLY_CICD_JWT_KEY_FILE] Path to the JWT private key file.
|
|
1018
|
+
--start-from=<value> Start (or resume) the deployment from a specific job name, overriding the progress
|
|
1019
|
+
file.
|
|
1020
|
+
--test-level=<value> [default: RunLocalTests, env: SIMPLY_CICD_TEST_LEVEL] The Apex test level to run.
|
|
1021
|
+
--test-suite=<value> [env: SIMPLY_CICD_TEST_SUITE] The Apex test suite to run. If specified, overrides
|
|
1022
|
+
--test-level.
|
|
1023
|
+
--tests=<value> [env: SIMPLY_CICD_TESTS] Specific Apex tests to run.
|
|
1024
|
+
--username=<value> [env: SIMPLY_CICD_USERNAME] Salesforce username, used for JWT authentication.
|
|
1025
|
+
--vcs-host=<value> [default: gitlab.com, env: SIMPLY_CICD_VCS_HOST] The source-control host to talk to
|
|
1026
|
+
(e.g. gitlab.com).
|
|
1027
|
+
--vcs-provider=<option> [default: gitlab, env: SIMPLY_CICD_VCS_PROVIDER] The source-control-hosting platform
|
|
1028
|
+
to talk to.
|
|
1029
|
+
<options: gitlab>
|
|
1030
|
+
|
|
1031
|
+
GLOBAL FLAGS
|
|
1032
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
1033
|
+
--json Format output as json.
|
|
1034
|
+
|
|
1035
|
+
DESCRIPTION
|
|
1036
|
+
Run the deploy-unpackaged stage of a project deployment.
|
|
1037
|
+
|
|
1038
|
+
Runs the `bin/unpackagedDeploy.sh` script (if present) against the local project directory, resuming from the
|
|
1039
|
+
deployment progress file unless --start-from is given.
|
|
1040
|
+
|
|
1041
|
+
EXAMPLES
|
|
1042
|
+
$ sf simply cicd deploy project deploy-unpackaged --ci-job-token $CI_JOB_TOKEN --alias my-org
|
|
1043
|
+
```
|
|
1044
|
+
|
|
1045
|
+
_See code: [lib/commands/simply/cicd/deploy/project/deploy-unpackaged.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/deploy/project/deploy-unpackaged.js)_
|
|
1046
|
+
|
|
1047
|
+
## `sf simply cicd deploy project install-packaged`
|
|
1048
|
+
|
|
1049
|
+
Install packaged dependencies and the project's own package into the target org.
|
|
1050
|
+
|
|
1051
|
+
```
|
|
1052
|
+
USAGE
|
|
1053
|
+
$ sf simply cicd deploy project install-packaged --ci-job-token <value> [--json] [--flags-dir <value>] [--alias <value>] [--auth-url <value>]
|
|
1054
|
+
[--client-id <value>] [--instance-url <value>] [--jwt-key-file <value>] [--username <value>] [--debug]
|
|
1055
|
+
[--deploy-config-file <value>] [--deploy-progress-file <value>] [--deploy-rules-file <value>]
|
|
1056
|
+
[--subscriber-package-version-id <value>] [--install-type All|Delta|Upgrade]
|
|
1057
|
+
|
|
1058
|
+
FLAGS
|
|
1059
|
+
--alias=<value> [env: SIMPLY_CICD_ALIAS] Salesforce org alias.
|
|
1060
|
+
--auth-url=<value> [env: SIMPLY_CICD_AUTH_URL] Salesforce authorization (SFDX auth) URL, used as
|
|
1061
|
+
an alternative to JWT authentication.
|
|
1062
|
+
--ci-job-token=<value> (required) [env: SIMPLY_CICD_CI_JOB_TOKEN] The CI job token used to
|
|
1063
|
+
authenticate read-only repository clones.
|
|
1064
|
+
--client-id=<value> [env: SIMPLY_CICD_CLIENT_ID] Connected app client ID, used for JWT
|
|
1065
|
+
authentication.
|
|
1066
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
1067
|
+
--deploy-config-file=<value> [default: config/deploy.json, env: SIMPLY_CICD_DEPLOY_CONFIG_FILE] Path to
|
|
1068
|
+
the deployment configuration file.
|
|
1069
|
+
--deploy-progress-file=<value> [default: DEPLOY_PROGRESS.json, env: SIMPLY_CICD_DEPLOY_PROGRESS_FILE] Path
|
|
1070
|
+
to the deployment progress file.
|
|
1071
|
+
--deploy-rules-file=<value> [default: config/deploy-rules.json, env: SIMPLY_CICD_DEPLOY_RULES_FILE] Path
|
|
1072
|
+
to the deployment rules file.
|
|
1073
|
+
--install-type=<option> [default: Upgrade] The type of dependency installation to perform.
|
|
1074
|
+
<options: All|Delta|Upgrade>
|
|
1075
|
+
--instance-url=<value> [env: SIMPLY_CICD_INSTANCE_URL] Salesforce login/instance URL, used for JWT
|
|
1076
|
+
authentication.
|
|
1077
|
+
--jwt-key-file=<value> [env: SIMPLY_CICD_JWT_KEY_FILE] Path to the JWT private key file.
|
|
1078
|
+
--subscriber-package-version-id=<value> The subscriber package version ID (04t...) to install. If not provided, the
|
|
1079
|
+
ID is looked up from the git tag annotation at HEAD.
|
|
1080
|
+
--username=<value> [env: SIMPLY_CICD_USERNAME] Salesforce username, used for JWT authentication.
|
|
1081
|
+
|
|
1082
|
+
GLOBAL FLAGS
|
|
1083
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
1084
|
+
--json Format output as json.
|
|
1085
|
+
|
|
1086
|
+
DESCRIPTION
|
|
1087
|
+
Install packaged dependencies and the project's own package into the target org.
|
|
1088
|
+
|
|
1089
|
+
Installs the packaged dependencies declared in `sfdx-project.json`, then installs the project's own main package —
|
|
1090
|
+
prioritizing --subscriber-package-version-id if given, otherwise looking for a `04t...` package ID annotated on the
|
|
1091
|
+
git tag pointing at HEAD.
|
|
1092
|
+
|
|
1093
|
+
EXAMPLES
|
|
1094
|
+
$ sf simply cicd deploy project install-packaged --ci-job-token $CI_JOB_TOKEN --alias my-org
|
|
1095
|
+
```
|
|
1096
|
+
|
|
1097
|
+
_See code: [lib/commands/simply/cicd/deploy/project/install-packaged.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/deploy/project/install-packaged.js)_
|
|
1098
|
+
|
|
1099
|
+
## `sf simply cicd deploy project post-deploy`
|
|
1100
|
+
|
|
1101
|
+
Run the post-deploy stage of a project deployment.
|
|
1102
|
+
|
|
1103
|
+
```
|
|
1104
|
+
USAGE
|
|
1105
|
+
$ sf simply cicd deploy project post-deploy --ci-job-token <value> [--json] [--flags-dir <value>] [--alias <value>] [--auth-url <value>]
|
|
1106
|
+
[--client-id <value>] [--instance-url <value>] [--jwt-key-file <value>] [--username <value>] [--debug]
|
|
1107
|
+
[--deploy-config-file <value>] [--deploy-progress-file <value>] [--deploy-rules-file <value>] [--start-from <value>]
|
|
1108
|
+
[--test-level <value>] [--test-suite <value>] [--tests <value>] [--vcs-host <value>] [--vcs-provider gitlab]
|
|
1109
|
+
|
|
1110
|
+
FLAGS
|
|
1111
|
+
--alias=<value> [env: SIMPLY_CICD_ALIAS] Salesforce org alias.
|
|
1112
|
+
--auth-url=<value> [env: SIMPLY_CICD_AUTH_URL] Salesforce authorization (SFDX auth) URL, used as an
|
|
1113
|
+
alternative to JWT authentication.
|
|
1114
|
+
--ci-job-token=<value> (required) [env: SIMPLY_CICD_CI_JOB_TOKEN] The CI job token used to authenticate
|
|
1115
|
+
read-only repository clones.
|
|
1116
|
+
--client-id=<value> [env: SIMPLY_CICD_CLIENT_ID] Connected app client ID, used for JWT authentication.
|
|
1117
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
1118
|
+
--deploy-config-file=<value> [default: config/deploy.json, env: SIMPLY_CICD_DEPLOY_CONFIG_FILE] Path to the
|
|
1119
|
+
deployment configuration file.
|
|
1120
|
+
--deploy-progress-file=<value> [default: DEPLOY_PROGRESS.json, env: SIMPLY_CICD_DEPLOY_PROGRESS_FILE] Path to the
|
|
1121
|
+
deployment progress file.
|
|
1122
|
+
--deploy-rules-file=<value> [default: config/deploy-rules.json, env: SIMPLY_CICD_DEPLOY_RULES_FILE] Path to the
|
|
1123
|
+
deployment rules file.
|
|
1124
|
+
--instance-url=<value> [env: SIMPLY_CICD_INSTANCE_URL] Salesforce login/instance URL, used for JWT
|
|
1125
|
+
authentication.
|
|
1126
|
+
--jwt-key-file=<value> [env: SIMPLY_CICD_JWT_KEY_FILE] Path to the JWT private key file.
|
|
1127
|
+
--start-from=<value> Start (or resume) the deployment from a specific job name, overriding the progress
|
|
1128
|
+
file.
|
|
1129
|
+
--test-level=<value> [default: RunLocalTests, env: SIMPLY_CICD_TEST_LEVEL] The Apex test level to run.
|
|
1130
|
+
--test-suite=<value> [env: SIMPLY_CICD_TEST_SUITE] The Apex test suite to run. If specified, overrides
|
|
1131
|
+
--test-level.
|
|
1132
|
+
--tests=<value> [env: SIMPLY_CICD_TESTS] Specific Apex tests to run.
|
|
1133
|
+
--username=<value> [env: SIMPLY_CICD_USERNAME] Salesforce username, used for JWT authentication.
|
|
1134
|
+
--vcs-host=<value> [default: gitlab.com, env: SIMPLY_CICD_VCS_HOST] The source-control host to talk to
|
|
1135
|
+
(e.g. gitlab.com).
|
|
1136
|
+
--vcs-provider=<option> [default: gitlab, env: SIMPLY_CICD_VCS_PROVIDER] The source-control-hosting platform
|
|
1137
|
+
to talk to.
|
|
1138
|
+
<options: gitlab>
|
|
1139
|
+
|
|
1140
|
+
GLOBAL FLAGS
|
|
1141
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
1142
|
+
--json Format output as json.
|
|
1143
|
+
|
|
1144
|
+
DESCRIPTION
|
|
1145
|
+
Run the post-deploy stage of a project deployment.
|
|
1146
|
+
|
|
1147
|
+
Runs the `bin/postDeploy.sh` script (if present) against the local project directory, resuming from the deployment
|
|
1148
|
+
progress file unless --start-from is given.
|
|
1149
|
+
|
|
1150
|
+
EXAMPLES
|
|
1151
|
+
$ sf simply cicd deploy project post-deploy --ci-job-token $CI_JOB_TOKEN --alias my-org
|
|
1152
|
+
```
|
|
1153
|
+
|
|
1154
|
+
_See code: [lib/commands/simply/cicd/deploy/project/post-deploy.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/deploy/project/post-deploy.js)_
|
|
1155
|
+
|
|
1156
|
+
## `sf simply cicd deploy project post-destructive`
|
|
1157
|
+
|
|
1158
|
+
Run the post-destructive stage of a project deployment.
|
|
1159
|
+
|
|
1160
|
+
```
|
|
1161
|
+
USAGE
|
|
1162
|
+
$ sf simply cicd deploy project post-destructive --ci-job-token <value> [--json] [--flags-dir <value>] [--alias <value>] [--auth-url <value>]
|
|
1163
|
+
[--client-id <value>] [--instance-url <value>] [--jwt-key-file <value>] [--username <value>] [--debug]
|
|
1164
|
+
[--deploy-config-file <value>] [--deploy-progress-file <value>] [--deploy-rules-file <value>] [--start-from <value>]
|
|
1165
|
+
[--test-level <value>] [--test-suite <value>] [--tests <value>] [--vcs-host <value>] [--vcs-provider gitlab]
|
|
1166
|
+
|
|
1167
|
+
FLAGS
|
|
1168
|
+
--alias=<value> [env: SIMPLY_CICD_ALIAS] Salesforce org alias.
|
|
1169
|
+
--auth-url=<value> [env: SIMPLY_CICD_AUTH_URL] Salesforce authorization (SFDX auth) URL, used as an
|
|
1170
|
+
alternative to JWT authentication.
|
|
1171
|
+
--ci-job-token=<value> (required) [env: SIMPLY_CICD_CI_JOB_TOKEN] The CI job token used to authenticate
|
|
1172
|
+
read-only repository clones.
|
|
1173
|
+
--client-id=<value> [env: SIMPLY_CICD_CLIENT_ID] Connected app client ID, used for JWT authentication.
|
|
1174
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
1175
|
+
--deploy-config-file=<value> [default: config/deploy.json, env: SIMPLY_CICD_DEPLOY_CONFIG_FILE] Path to the
|
|
1176
|
+
deployment configuration file.
|
|
1177
|
+
--deploy-progress-file=<value> [default: DEPLOY_PROGRESS.json, env: SIMPLY_CICD_DEPLOY_PROGRESS_FILE] Path to the
|
|
1178
|
+
deployment progress file.
|
|
1179
|
+
--deploy-rules-file=<value> [default: config/deploy-rules.json, env: SIMPLY_CICD_DEPLOY_RULES_FILE] Path to the
|
|
1180
|
+
deployment rules file.
|
|
1181
|
+
--instance-url=<value> [env: SIMPLY_CICD_INSTANCE_URL] Salesforce login/instance URL, used for JWT
|
|
1182
|
+
authentication.
|
|
1183
|
+
--jwt-key-file=<value> [env: SIMPLY_CICD_JWT_KEY_FILE] Path to the JWT private key file.
|
|
1184
|
+
--start-from=<value> Start (or resume) the deployment from a specific job name, overriding the progress
|
|
1185
|
+
file.
|
|
1186
|
+
--test-level=<value> [default: RunLocalTests, env: SIMPLY_CICD_TEST_LEVEL] The Apex test level to run.
|
|
1187
|
+
--test-suite=<value> [env: SIMPLY_CICD_TEST_SUITE] The Apex test suite to run. If specified, overrides
|
|
1188
|
+
--test-level.
|
|
1189
|
+
--tests=<value> [env: SIMPLY_CICD_TESTS] Specific Apex tests to run.
|
|
1190
|
+
--username=<value> [env: SIMPLY_CICD_USERNAME] Salesforce username, used for JWT authentication.
|
|
1191
|
+
--vcs-host=<value> [default: gitlab.com, env: SIMPLY_CICD_VCS_HOST] The source-control host to talk to
|
|
1192
|
+
(e.g. gitlab.com).
|
|
1193
|
+
--vcs-provider=<option> [default: gitlab, env: SIMPLY_CICD_VCS_PROVIDER] The source-control-hosting platform
|
|
1194
|
+
to talk to.
|
|
1195
|
+
<options: gitlab>
|
|
1196
|
+
|
|
1197
|
+
GLOBAL FLAGS
|
|
1198
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
1199
|
+
--json Format output as json.
|
|
1200
|
+
|
|
1201
|
+
DESCRIPTION
|
|
1202
|
+
Run the post-destructive stage of a project deployment.
|
|
1203
|
+
|
|
1204
|
+
Runs the `bin/postDestructive.sh` script (if present) against the local project directory, resuming from the
|
|
1205
|
+
deployment progress file unless --start-from is given.
|
|
1206
|
+
|
|
1207
|
+
EXAMPLES
|
|
1208
|
+
$ sf simply cicd deploy project post-destructive --ci-job-token $CI_JOB_TOKEN --alias my-org
|
|
1209
|
+
```
|
|
1210
|
+
|
|
1211
|
+
_See code: [lib/commands/simply/cicd/deploy/project/post-destructive.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/deploy/project/post-destructive.js)_
|
|
1212
|
+
|
|
1213
|
+
## `sf simply cicd deploy project pre-destructive`
|
|
1214
|
+
|
|
1215
|
+
Run the pre-destructive stage of a project deployment.
|
|
1216
|
+
|
|
1217
|
+
```
|
|
1218
|
+
USAGE
|
|
1219
|
+
$ sf simply cicd deploy project pre-destructive --ci-job-token <value> [--json] [--flags-dir <value>] [--alias <value>] [--auth-url <value>]
|
|
1220
|
+
[--client-id <value>] [--instance-url <value>] [--jwt-key-file <value>] [--username <value>] [--debug]
|
|
1221
|
+
[--deploy-config-file <value>] [--deploy-progress-file <value>] [--deploy-rules-file <value>] [--start-from <value>]
|
|
1222
|
+
[--test-level <value>] [--test-suite <value>] [--tests <value>] [--vcs-host <value>] [--vcs-provider gitlab]
|
|
1223
|
+
|
|
1224
|
+
FLAGS
|
|
1225
|
+
--alias=<value> [env: SIMPLY_CICD_ALIAS] Salesforce org alias.
|
|
1226
|
+
--auth-url=<value> [env: SIMPLY_CICD_AUTH_URL] Salesforce authorization (SFDX auth) URL, used as an
|
|
1227
|
+
alternative to JWT authentication.
|
|
1228
|
+
--ci-job-token=<value> (required) [env: SIMPLY_CICD_CI_JOB_TOKEN] The CI job token used to authenticate
|
|
1229
|
+
read-only repository clones.
|
|
1230
|
+
--client-id=<value> [env: SIMPLY_CICD_CLIENT_ID] Connected app client ID, used for JWT authentication.
|
|
1231
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
1232
|
+
--deploy-config-file=<value> [default: config/deploy.json, env: SIMPLY_CICD_DEPLOY_CONFIG_FILE] Path to the
|
|
1233
|
+
deployment configuration file.
|
|
1234
|
+
--deploy-progress-file=<value> [default: DEPLOY_PROGRESS.json, env: SIMPLY_CICD_DEPLOY_PROGRESS_FILE] Path to the
|
|
1235
|
+
deployment progress file.
|
|
1236
|
+
--deploy-rules-file=<value> [default: config/deploy-rules.json, env: SIMPLY_CICD_DEPLOY_RULES_FILE] Path to the
|
|
1237
|
+
deployment rules file.
|
|
1238
|
+
--instance-url=<value> [env: SIMPLY_CICD_INSTANCE_URL] Salesforce login/instance URL, used for JWT
|
|
1239
|
+
authentication.
|
|
1240
|
+
--jwt-key-file=<value> [env: SIMPLY_CICD_JWT_KEY_FILE] Path to the JWT private key file.
|
|
1241
|
+
--start-from=<value> Start (or resume) the deployment from a specific job name, overriding the progress
|
|
1242
|
+
file.
|
|
1243
|
+
--test-level=<value> [default: RunLocalTests, env: SIMPLY_CICD_TEST_LEVEL] The Apex test level to run.
|
|
1244
|
+
--test-suite=<value> [env: SIMPLY_CICD_TEST_SUITE] The Apex test suite to run. If specified, overrides
|
|
1245
|
+
--test-level.
|
|
1246
|
+
--tests=<value> [env: SIMPLY_CICD_TESTS] Specific Apex tests to run.
|
|
1247
|
+
--username=<value> [env: SIMPLY_CICD_USERNAME] Salesforce username, used for JWT authentication.
|
|
1248
|
+
--vcs-host=<value> [default: gitlab.com, env: SIMPLY_CICD_VCS_HOST] The source-control host to talk to
|
|
1249
|
+
(e.g. gitlab.com).
|
|
1250
|
+
--vcs-provider=<option> [default: gitlab, env: SIMPLY_CICD_VCS_PROVIDER] The source-control-hosting platform
|
|
1251
|
+
to talk to.
|
|
1252
|
+
<options: gitlab>
|
|
1253
|
+
|
|
1254
|
+
GLOBAL FLAGS
|
|
1255
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
1256
|
+
--json Format output as json.
|
|
1257
|
+
|
|
1258
|
+
DESCRIPTION
|
|
1259
|
+
Run the pre-destructive stage of a project deployment.
|
|
1260
|
+
|
|
1261
|
+
Runs the `bin/preDestructive.sh` script (if present) against the local project directory, resuming from the deployment
|
|
1262
|
+
progress file unless --start-from is given.
|
|
1263
|
+
|
|
1264
|
+
EXAMPLES
|
|
1265
|
+
$ sf simply cicd deploy project pre-destructive --ci-job-token $CI_JOB_TOKEN --alias my-org
|
|
1266
|
+
```
|
|
1267
|
+
|
|
1268
|
+
_See code: [lib/commands/simply/cicd/deploy/project/pre-destructive.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/deploy/project/pre-destructive.js)_
|
|
1269
|
+
|
|
1270
|
+
## `sf simply cicd deploy project run-apex-tests`
|
|
1271
|
+
|
|
1272
|
+
Run Apex tests against the target org for a project deployment.
|
|
1273
|
+
|
|
1274
|
+
```
|
|
1275
|
+
USAGE
|
|
1276
|
+
$ sf simply cicd deploy project run-apex-tests --ci-job-token <value> [--json] [--flags-dir <value>] [--alias <value>] [--auth-url <value>]
|
|
1277
|
+
[--client-id <value>] [--instance-url <value>] [--jwt-key-file <value>] [--username <value>] [--debug]
|
|
1278
|
+
[--deploy-config-file <value>] [--deploy-progress-file <value>] [--deploy-rules-file <value>] [--start-from <value>]
|
|
1279
|
+
[--test-level <value>] [--test-suite <value>] [--tests <value>]
|
|
1280
|
+
|
|
1281
|
+
FLAGS
|
|
1282
|
+
--alias=<value> [env: SIMPLY_CICD_ALIAS] Salesforce org alias.
|
|
1283
|
+
--auth-url=<value> [env: SIMPLY_CICD_AUTH_URL] Salesforce authorization (SFDX auth) URL, used as an
|
|
1284
|
+
alternative to JWT authentication.
|
|
1285
|
+
--ci-job-token=<value> (required) [env: SIMPLY_CICD_CI_JOB_TOKEN] The CI job token used to authenticate
|
|
1286
|
+
read-only repository clones.
|
|
1287
|
+
--client-id=<value> [env: SIMPLY_CICD_CLIENT_ID] Connected app client ID, used for JWT authentication.
|
|
1288
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
1289
|
+
--deploy-config-file=<value> [default: config/deploy.json, env: SIMPLY_CICD_DEPLOY_CONFIG_FILE] Path to the
|
|
1290
|
+
deployment configuration file.
|
|
1291
|
+
--deploy-progress-file=<value> [default: DEPLOY_PROGRESS.json, env: SIMPLY_CICD_DEPLOY_PROGRESS_FILE] Path to the
|
|
1292
|
+
deployment progress file.
|
|
1293
|
+
--deploy-rules-file=<value> [default: config/deploy-rules.json, env: SIMPLY_CICD_DEPLOY_RULES_FILE] Path to the
|
|
1294
|
+
deployment rules file.
|
|
1295
|
+
--instance-url=<value> [env: SIMPLY_CICD_INSTANCE_URL] Salesforce login/instance URL, used for JWT
|
|
1296
|
+
authentication.
|
|
1297
|
+
--jwt-key-file=<value> [env: SIMPLY_CICD_JWT_KEY_FILE] Path to the JWT private key file.
|
|
1298
|
+
--start-from=<value> Start (or resume) the deployment from a specific job name, overriding the progress
|
|
1299
|
+
file.
|
|
1300
|
+
--test-level=<value> [default: RunLocalTests, env: SIMPLY_CICD_TEST_LEVEL] The Apex test level to run.
|
|
1301
|
+
--test-suite=<value> [env: SIMPLY_CICD_TEST_SUITE] The Apex test suite to run. If specified, overrides
|
|
1302
|
+
--test-level.
|
|
1303
|
+
--tests=<value> [env: SIMPLY_CICD_TESTS] Specific Apex tests to run.
|
|
1304
|
+
--username=<value> [env: SIMPLY_CICD_USERNAME] Salesforce username, used for JWT authentication.
|
|
1305
|
+
|
|
1306
|
+
GLOBAL FLAGS
|
|
1307
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
1308
|
+
--json Format output as json.
|
|
1309
|
+
|
|
1310
|
+
DESCRIPTION
|
|
1311
|
+
Run Apex tests against the target org for a project deployment.
|
|
1312
|
+
|
|
1313
|
+
Authenticates to the target org and runs its Apex tests, if any exist in the project's package directories.
|
|
1314
|
+
|
|
1315
|
+
EXAMPLES
|
|
1316
|
+
$ sf simply cicd deploy project run-apex-tests --ci-job-token $CI_JOB_TOKEN --alias my-org
|
|
1317
|
+
```
|
|
1318
|
+
|
|
1319
|
+
_See code: [lib/commands/simply/cicd/deploy/project/run-apex-tests.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/deploy/project/run-apex-tests.js)_
|
|
1320
|
+
|
|
1321
|
+
## `sf simply cicd deploy project validate`
|
|
1322
|
+
|
|
1323
|
+
Validate deployment configuration files for a project deployment.
|
|
1324
|
+
|
|
1325
|
+
```
|
|
1326
|
+
USAGE
|
|
1327
|
+
$ sf simply cicd deploy project validate [--json] [--flags-dir <value>] [--deploy-config-file <value>] [--deploy-progress-file <value>]
|
|
1328
|
+
[--deploy-rules-file <value>]
|
|
1329
|
+
|
|
1330
|
+
FLAGS
|
|
1331
|
+
--deploy-config-file=<value> [default: config/deploy.json, env: SIMPLY_CICD_DEPLOY_CONFIG_FILE] Path to the
|
|
1332
|
+
deployment configuration file.
|
|
1333
|
+
--deploy-progress-file=<value> [default: DEPLOY_PROGRESS.json, env: SIMPLY_CICD_DEPLOY_PROGRESS_FILE] Path to the
|
|
1334
|
+
deployment progress file. Accepted for consistency with the other project deployment
|
|
1335
|
+
commands; not used by validation.
|
|
1336
|
+
--deploy-rules-file=<value> [env: SIMPLY_CICD_DEPLOY_RULES_FILE] Path to the deployment rules file.
|
|
1337
|
+
|
|
1338
|
+
GLOBAL FLAGS
|
|
1339
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
1340
|
+
--json Format output as json.
|
|
1341
|
+
|
|
1342
|
+
DESCRIPTION
|
|
1343
|
+
Validate deployment configuration files for a project deployment.
|
|
1344
|
+
|
|
1345
|
+
Validates `config/deploy.json` (or the path given by --deploy-config-file) and, if --deploy-rules-file is given, the
|
|
1346
|
+
deployment rules file. A missing file is skipped with a warning; a malformed or schema-invalid file fails the command.
|
|
1347
|
+
|
|
1348
|
+
EXAMPLES
|
|
1349
|
+
$ sf simply cicd deploy project validate
|
|
1350
|
+
|
|
1351
|
+
$ sf simply cicd deploy project validate --deploy-config-file config/deploy.json --deploy-rules-file config/deploy-rules.json
|
|
1352
|
+
```
|
|
1353
|
+
|
|
1354
|
+
_See code: [lib/commands/simply/cicd/deploy/project/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/deploy/project/validate.js)_
|
|
1355
|
+
|
|
1356
|
+
## `sf simply cicd deploy validate`
|
|
1357
|
+
|
|
1358
|
+
Validate deployment configuration files against their JSON schemas.
|
|
1359
|
+
|
|
1360
|
+
```
|
|
1361
|
+
USAGE
|
|
1362
|
+
$ sf simply cicd deploy validate [--json] [--flags-dir <value>] [--deploy-config-file <value>] [--deploy-rules-file <value>]
|
|
1363
|
+
[--source-branch-name <value>]
|
|
1364
|
+
|
|
1365
|
+
FLAGS
|
|
1366
|
+
--deploy-config-file=<value> [env: SIMPLY_CICD_DEPLOY_CONFIG_FILE] Path to the deployment configuration file.
|
|
1367
|
+
--deploy-rules-file=<value> [env: SIMPLY_CICD_DEPLOY_RULES_FILE] Path to the deployment rules file.
|
|
1368
|
+
--source-branch-name=<value> [env: SIMPLY_CICD_SOURCE_BRANCH_NAME] The source branch name for the deployment, used to
|
|
1369
|
+
derive the deployment config file path if --deploy-config-file is not provided.
|
|
1370
|
+
|
|
1371
|
+
GLOBAL FLAGS
|
|
1372
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
1373
|
+
--json Format output as json.
|
|
1374
|
+
|
|
1375
|
+
DESCRIPTION
|
|
1376
|
+
Validate deployment configuration files against their JSON schemas.
|
|
1377
|
+
|
|
1378
|
+
Validates the deployment config file (`deploy.json`) and deployment rules file independently against their schemas. A
|
|
1379
|
+
missing file is skipped with a warning; a malformed or schema-invalid file fails the command.
|
|
1380
|
+
|
|
1381
|
+
This is the generic form of the command, with no namespace-specific default file paths — see `deploy project validate`
|
|
1382
|
+
and `deploy happy-soup validate` for versions with sensible defaults for those deployment styles.
|
|
1383
|
+
|
|
1384
|
+
EXAMPLES
|
|
1385
|
+
$ sf simply cicd deploy validate --deploy-config-file config/deploy.json --deploy-rules-file config/deploy-rules.json
|
|
1386
|
+
```
|
|
1387
|
+
|
|
1388
|
+
_See code: [lib/commands/simply/cicd/deploy/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/deploy/validate.js)_
|
|
1389
|
+
|
|
1390
|
+
## `sf simply cicd notify happy-soup`
|
|
1391
|
+
|
|
1392
|
+
Send a happy-soup deployment stage notification to Microsoft Teams, without Jira story integration.
|
|
1393
|
+
|
|
1394
|
+
```
|
|
1395
|
+
USAGE
|
|
1396
|
+
$ sf simply cicd notify happy-soup [--json] [--flags-dir <value>] [--after-script] [--before-script] [--ci-commit-ref-name
|
|
1397
|
+
<value>] [--ci-environment-name <value>] [--ci-job-name <value>] [--ci-job-stage <value>] [--ci-job-status <value>]
|
|
1398
|
+
[--ci-pipeline-id <value>] [--ci-pipeline-url <value>] [--enabled] [--teams-webhook-url <value>...]
|
|
1399
|
+
[--notify-on-completion] [--is-final-job] [--debug]
|
|
1400
|
+
|
|
1401
|
+
FLAGS
|
|
1402
|
+
--after-script Run the after-stage notification logic.
|
|
1403
|
+
--before-script Run the before-stage (starting) notification logic.
|
|
1404
|
+
--ci-commit-ref-name=<value> [env: SIMPLY_CICD_CI_COMMIT_REF_NAME] The git branch or tag ref for this pipeline run.
|
|
1405
|
+
--ci-environment-name=<value> [env: SIMPLY_CICD_CI_ENVIRONMENT_NAME] The name of the target CI environment.
|
|
1406
|
+
--ci-job-name=<value> [env: SIMPLY_CICD_CI_JOB_NAME] The name of the current CI job.
|
|
1407
|
+
--ci-job-stage=<value> [env: SIMPLY_CICD_CI_JOB_STAGE] The stage of the current CI job.
|
|
1408
|
+
--ci-job-status=<value> [env: SIMPLY_CICD_CI_JOB_STATUS] The status of the current CI job (e.g. success,
|
|
1409
|
+
failed).
|
|
1410
|
+
--ci-pipeline-id=<value> [env: SIMPLY_CICD_CI_PIPELINE_ID] The ID of the current CI pipeline.
|
|
1411
|
+
--ci-pipeline-url=<value> [env: SIMPLY_CICD_CI_PIPELINE_URL] The URL of the current CI pipeline.
|
|
1412
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
1413
|
+
--enabled [env: SIMPLY_CICD_ENABLED] Whether the notification is actually sent. Defaults to
|
|
1414
|
+
false so pipelines can gate this behind their own condition.
|
|
1415
|
+
--is-final-job Marks this job as the final job in the pipeline. Combined with --after-script and
|
|
1416
|
+
--notify-on-completion, this is what actually triggers the final notification.
|
|
1417
|
+
--notify-on-completion Only send a notification on the final job of the pipeline, suppressing per-stage
|
|
1418
|
+
notifications.
|
|
1419
|
+
--teams-webhook-url=<value>... One or more Teams webhook URLs to send the notification to.
|
|
1420
|
+
|
|
1421
|
+
GLOBAL FLAGS
|
|
1422
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
1423
|
+
--json Format output as json.
|
|
1424
|
+
|
|
1425
|
+
DESCRIPTION
|
|
1426
|
+
Send a happy-soup deployment stage notification to Microsoft Teams, without Jira story integration.
|
|
1427
|
+
|
|
1428
|
+
Run with `--before-script` at the start of a stage to post a "starting" card, and with `--after-script` at the end to
|
|
1429
|
+
post a success or failure card. With `--notify-on-completion`, intermediate stage notifications are suppressed and
|
|
1430
|
+
only the final job (`--is-final-job` combined with `--after-script`) posts a card.
|
|
1431
|
+
|
|
1432
|
+
EXAMPLES
|
|
1433
|
+
$ sf simply cicd notify happy-soup --before-script --ci-job-stage pre-destructive --teams-webhook-url https://outlook.office.com/webhook/... --enabled
|
|
1434
|
+
|
|
1435
|
+
$ sf simply cicd notify happy-soup --after-script --is-final-job --notify-on-completion --ci-job-status success --teams-webhook-url https://outlook.office.com/webhook/... --enabled
|
|
1436
|
+
```
|
|
1437
|
+
|
|
1438
|
+
_See code: [lib/commands/simply/cicd/notify/happy-soup.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/notify/happy-soup.js)_
|
|
1439
|
+
|
|
1440
|
+
## `sf simply cicd notify project`
|
|
1441
|
+
|
|
1442
|
+
Send a project deployment notification to Microsoft Teams, with Jira story integration.
|
|
1443
|
+
|
|
1444
|
+
```
|
|
1445
|
+
USAGE
|
|
1446
|
+
$ sf simply cicd notify project [--json] [--flags-dir <value>] [--after-script] [--alias <value>] [--before-script]
|
|
1447
|
+
[--ci-commit-ref-name <value>] [--ci-environment-name <value>] [--ci-job-name <value>] [--ci-job-stage <value>]
|
|
1448
|
+
[--ci-job-status <value>] [--ci-pipeline-id <value>] [--ci-pipeline-url <value>] [--ci-project-title <value>]
|
|
1449
|
+
[--client-id <value>] [--devhub-tooling-client-id <value>] [--devhub-tooling-instance-url <value>]
|
|
1450
|
+
[--devhub-tooling-username <value>] [--enabled] [--instance-url <value>] [--jira-base-url <value>]
|
|
1451
|
+
[--jira-project-key <value>] [--jwt-key-file <value>] [--prev-installed-package-version <value>]
|
|
1452
|
+
[--subscriber-package-version-id <value>] [--target-package-version <value>] [--teams-webhook-url <value>...]
|
|
1453
|
+
[--username <value>] [--debug]
|
|
1454
|
+
|
|
1455
|
+
FLAGS
|
|
1456
|
+
--after-script Run the after-deployment notification logic.
|
|
1457
|
+
--alias=<value> [env: SIMPLY_CICD_ALIAS] The target Salesforce org alias to authenticate and
|
|
1458
|
+
query for the previously installed package version.
|
|
1459
|
+
--before-script Run the before-deployment setup logic (resolves and records package
|
|
1460
|
+
versions).
|
|
1461
|
+
--ci-commit-ref-name=<value> [env: SIMPLY_CICD_CI_COMMIT_REF_NAME] The git branch or tag ref for this
|
|
1462
|
+
pipeline run.
|
|
1463
|
+
--ci-environment-name=<value> [env: SIMPLY_CICD_CI_ENVIRONMENT_NAME] The name of the target CI
|
|
1464
|
+
environment.
|
|
1465
|
+
--ci-job-name=<value> [env: SIMPLY_CICD_CI_JOB_NAME] The name of the current CI job.
|
|
1466
|
+
--ci-job-stage=<value> [env: SIMPLY_CICD_CI_JOB_STAGE] The stage of the current CI job (e.g.
|
|
1467
|
+
pre-destructive, post-destructive).
|
|
1468
|
+
--ci-job-status=<value> [env: SIMPLY_CICD_CI_JOB_STATUS] The status of the current CI job (e.g.
|
|
1469
|
+
success, failed, canceled).
|
|
1470
|
+
--ci-pipeline-id=<value> [env: SIMPLY_CICD_CI_PIPELINE_ID] The ID of the current CI pipeline.
|
|
1471
|
+
--ci-pipeline-url=<value> [env: SIMPLY_CICD_CI_PIPELINE_URL] The URL of the current CI pipeline.
|
|
1472
|
+
--ci-project-title=<value> [env: SIMPLY_CICD_CI_PROJECT_TITLE] The project title shown in the
|
|
1473
|
+
notification card's heading.
|
|
1474
|
+
--client-id=<value> [env: SIMPLY_CICD_CLIENT_ID] Connected app client ID for JWT authentication
|
|
1475
|
+
to the target org.
|
|
1476
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
1477
|
+
--devhub-tooling-client-id=<value> [env: SIMPLY_CICD_DEVHUB_TOOLING_CLIENT_ID] Connected app client ID for JWT
|
|
1478
|
+
authentication to the tooling DevHub.
|
|
1479
|
+
--devhub-tooling-instance-url=<value> [env: SIMPLY_CICD_DEVHUB_TOOLING_INSTANCE_URL] Login instance URL for the
|
|
1480
|
+
tooling DevHub.
|
|
1481
|
+
--devhub-tooling-username=<value> [env: SIMPLY_CICD_DEVHUB_TOOLING_USERNAME] Username for JWT authentication
|
|
1482
|
+
to the tooling DevHub.
|
|
1483
|
+
--enabled [env: SIMPLY_CICD_ENABLED] Whether the notification is actually sent.
|
|
1484
|
+
Defaults to false so pipelines can gate this behind their own condition.
|
|
1485
|
+
--instance-url=<value> [env: SIMPLY_CICD_INSTANCE_URL] Login instance URL for the target org.
|
|
1486
|
+
--jira-base-url=<value> [env: SIMPLY_CICD_JIRA_BASE_URL] Base URL for linking a Jira issue key, e.g.
|
|
1487
|
+
https://jira.example.com/browse. Story keys are shown without links if not
|
|
1488
|
+
provided.
|
|
1489
|
+
--jira-project-key=<value> [env: SIMPLY_CICD_JIRA_PROJECT_KEY] Fallback Jira project key(s) used to
|
|
1490
|
+
search commit messages for story references, if none are configured in
|
|
1491
|
+
.sfdevrc.json.
|
|
1492
|
+
--jwt-key-file=<value> [env: SIMPLY_CICD_JWT_KEY_FILE] Path to the JWT private key file, used for
|
|
1493
|
+
both the target org and tooling DevHub authentication.
|
|
1494
|
+
--prev-installed-package-version=<value> The previously installed package version. Only needed if re-running
|
|
1495
|
+
--after-script without having run --before-script first in the same job.
|
|
1496
|
+
--subscriber-package-version-id=<value> The subscriber package version ID (04t...) being deployed, used to resolve
|
|
1497
|
+
the target package version from the tooling DevHub.
|
|
1498
|
+
--target-package-version=<value> The target package version. Only needed if re-running --after-script without
|
|
1499
|
+
having run --before-script first in the same job.
|
|
1500
|
+
--teams-webhook-url=<value>... One or more Teams webhook URLs to send the notification to.
|
|
1501
|
+
--username=<value> [env: SIMPLY_CICD_USERNAME] Username for JWT authentication to the target
|
|
1502
|
+
org.
|
|
1503
|
+
|
|
1504
|
+
GLOBAL FLAGS
|
|
1505
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
1506
|
+
--json Format output as json.
|
|
1507
|
+
|
|
1508
|
+
DESCRIPTION
|
|
1509
|
+
Send a project deployment notification to Microsoft Teams, with Jira story integration.
|
|
1510
|
+
|
|
1511
|
+
Run once with `--before-script` at the start of a deployment pipeline (to record the previously installed and target
|
|
1512
|
+
package versions), and once with `--after-script` at the end (to post a success or failure card to Teams, including
|
|
1513
|
+
the Jira stories that shipped between those two versions).
|
|
1514
|
+
|
|
1515
|
+
EXAMPLES
|
|
1516
|
+
$ sf simply cicd notify project --before-script --ci-job-stage pre-destructive --alias my-org --username user@example.com --jwt-key-file server.key --client-id abc123 --instance-url https://login.salesforce.com --enabled
|
|
1517
|
+
|
|
1518
|
+
$ sf simply cicd notify project --after-script --ci-job-stage post-destructive --ci-job-status success --teams-webhook-url https://outlook.office.com/webhook/... --enabled
|
|
1519
|
+
```
|
|
1520
|
+
|
|
1521
|
+
_See code: [lib/commands/simply/cicd/notify/project.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/notify/project.js)_
|
|
1522
|
+
|
|
1523
|
+
## `sf simply cicd notify teams`
|
|
1524
|
+
|
|
1525
|
+
Send a serialized JSON payload to a Microsoft Teams webhook.
|
|
1526
|
+
|
|
1527
|
+
```
|
|
1528
|
+
USAGE
|
|
1529
|
+
$ sf simply cicd notify teams --payload <value> --webhook-url <value> [--json] [--flags-dir <value>] [--enabled]
|
|
1530
|
+
[--debug]
|
|
1531
|
+
|
|
1532
|
+
FLAGS
|
|
1533
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
1534
|
+
--enabled [env: SIMPLY_CICD_ENABLED] Whether the notification is actually sent. Defaults to false so
|
|
1535
|
+
pipelines can gate this behind their own condition.
|
|
1536
|
+
--payload=<value> (required) The JSON payload to send to Teams, as a serialized string.
|
|
1537
|
+
--webhook-url=<value> (required) [env: SIMPLY_CICD_WEBHOOK_URL] The Teams webhook URL to send the payload to.
|
|
1538
|
+
|
|
1539
|
+
GLOBAL FLAGS
|
|
1540
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
1541
|
+
--json Format output as json.
|
|
1542
|
+
|
|
1543
|
+
DESCRIPTION
|
|
1544
|
+
Send a serialized JSON payload to a Microsoft Teams webhook.
|
|
1545
|
+
|
|
1546
|
+
Posts a payload as-is to one or more Microsoft Teams incoming webhook URLs. Use this for custom notifications that
|
|
1547
|
+
don't fit the built-in `notify project` or `notify happy-soup` card templates.
|
|
1548
|
+
|
|
1549
|
+
EXAMPLES
|
|
1550
|
+
$ sf simply cicd notify teams --payload '{"text":"Deployment complete"}' --webhook-url https://outlook.office.com/webhook/... --enabled
|
|
1551
|
+
```
|
|
1552
|
+
|
|
1553
|
+
_See code: [lib/commands/simply/cicd/notify/teams.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/notify/teams.js)_
|
|
1554
|
+
|
|
1555
|
+
## `sf simply cicd sfdx-dependabot`
|
|
1556
|
+
|
|
1557
|
+
Automatically update downstream projects with a newly released Salesforce 2GP package version.
|
|
1558
|
+
|
|
1559
|
+
```
|
|
1560
|
+
USAGE
|
|
1561
|
+
$ sf simply cicd sfdx-dependabot [--json] [--flags-dir <value>] [--gitlab-api-url <value>] [--gitlab-token <value>]
|
|
1562
|
+
[--root-group-id <value>] [--subscriber-package-version-id <value>] [--devhub-username <value>] [--dry-run]
|
|
1563
|
+
[--project-allowlist <value>] [--project-denylist <value>] [--skip-archived] [--skip-forks] [--branch-prefix
|
|
1564
|
+
<value>] [--mr-labels <value>] [--fail-on-error] [--max-projects <value>] [--vcs-provider gitlab]
|
|
1565
|
+
|
|
1566
|
+
FLAGS
|
|
1567
|
+
--branch-prefix=<value> [env: SIMPLY_CICD_BRANCH_PREFIX] Prefix used for generated branch names.
|
|
1568
|
+
--devhub-username=<value> [env: SIMPLY_CICD_DEVHUB_USERNAME] Salesforce DevHub username or alias used
|
|
1569
|
+
to resolve the package's name and version.
|
|
1570
|
+
--dry-run [env: SIMPLY_CICD_DRY_RUN] Run discovery and parsing, but perform zero write,
|
|
1571
|
+
commit, or merge request operations.
|
|
1572
|
+
--fail-on-error [env: SIMPLY_CICD_FAIL_ON_ERROR] Return a non-zero exit code if one or more
|
|
1573
|
+
per-project operations fail.
|
|
1574
|
+
--gitlab-api-url=<value> [env: SIMPLY_CICD_GITLAB_API_URL] GitLab API v4 base URL.
|
|
1575
|
+
--gitlab-token=<value> [env: SIMPLY_CICD_GITLAB_TOKEN] GitLab access token with file-writing and
|
|
1576
|
+
merge request privileges.
|
|
1577
|
+
--max-projects=<value> [env: SIMPLY_CICD_MAX_PROJECTS] Optional safety limit restricting the maximum
|
|
1578
|
+
number of eligible projects to scan.
|
|
1579
|
+
--mr-labels=<value> [env: SIMPLY_CICD_MR_LABELS] Comma-separated labels to apply to created or
|
|
1580
|
+
updated merge requests.
|
|
1581
|
+
--project-allowlist=<value> [env: SIMPLY_CICD_PROJECT_ALLOWLIST] Comma-separated list of GitLab project
|
|
1582
|
+
paths to include in the scan. If specified, only matching projects are
|
|
1583
|
+
scanned.
|
|
1584
|
+
--project-denylist=<value> [env: SIMPLY_CICD_PROJECT_DENYLIST] Comma-separated list of GitLab project
|
|
1585
|
+
paths to exclude from scanning.
|
|
1586
|
+
--root-group-id=<value> [env: SIMPLY_CICD_ROOT_GROUP_ID] GitLab group ID or URL-encoded path to scan
|
|
1587
|
+
for downstream projects.
|
|
1588
|
+
--[no-]skip-archived [env: SIMPLY_CICD_SKIP_ARCHIVED] Skip archived GitLab repositories.
|
|
1589
|
+
--[no-]skip-forks [env: SIMPLY_CICD_SKIP_FORKS] Skip forked GitLab repositories.
|
|
1590
|
+
--subscriber-package-version-id=<value> The newly released Salesforce subscriber package version ID (04t...).
|
|
1591
|
+
--vcs-provider=<option> [default: gitlab, env: SIMPLY_CICD_VCS_PROVIDER] The source-control-hosting
|
|
1592
|
+
platform to talk to.
|
|
1593
|
+
<options: gitlab>
|
|
1594
|
+
|
|
1595
|
+
GLOBAL FLAGS
|
|
1596
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
1597
|
+
--json Format output as json.
|
|
1598
|
+
|
|
1599
|
+
DESCRIPTION
|
|
1600
|
+
Automatically update downstream projects with a newly released Salesforce 2GP package version.
|
|
1601
|
+
|
|
1602
|
+
Discovers repositories under a GitLab group, reads each one's `sfdx-project.json`, and for any repository that both
|
|
1603
|
+
depends on the released package and has opted in via the `SFDX_DEPENDABOT_ENABLED=TRUE` project-level CI/CD variable,
|
|
1604
|
+
opens (or updates) a merge request bumping the dependency to the newly released version.
|
|
1605
|
+
|
|
1606
|
+
Each eligible repository must explicitly opt in — this command never touches a downstream repository's dependencies
|
|
1607
|
+
without that variable set.
|
|
1608
|
+
|
|
1609
|
+
EXAMPLES
|
|
1610
|
+
$ sf simply cicd sfdx-dependabot --root-group-id 12345 --subscriber-package-version-id 04tXXXXXXXXXXXXXXX --devhub-username hub@example.com --dry-run
|
|
1611
|
+
|
|
1612
|
+
$ sf simply cicd sfdx-dependabot --root-group-id 12345 --subscriber-package-version-id 04tXXXXXXXXXXXXXXX --devhub-username hub@example.com --branch-prefix devops/dependabot --mr-labels dependencies
|
|
1613
|
+
|
|
1614
|
+
FLAG DESCRIPTIONS
|
|
1615
|
+
--gitlab-api-url=<value> GitLab API v4 base URL.
|
|
1616
|
+
|
|
1617
|
+
Falls back to the SFDX_DEPENDABOT_GITLAB_API_URL or CI_API_V4_URL environment variables if not provided.
|
|
1618
|
+
```
|
|
1619
|
+
|
|
1620
|
+
_See code: [lib/commands/simply/cicd/sfdx-dependabot.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-cicd@0.2.3/packages/simply-cicd/lib/commands/simply/cicd/sfdx-dependabot.js)_
|
|
1621
|
+
<!-- commandsstop -->
|