@W-24181435 Complete the SCAPI Deployments backend (bundle list + local-build deploy) - #695
Merged
Merged
Conversation
…github.com/SalesforceCommerceCloud/b2c-developer-tooling into o.olaosebikan/W-24181435/deployments-scapi
kieran-sf
reviewed
Sep 18, 2026
|
|
||
| static flags = { | ||
| ...MrtCommand.baseFlags, | ||
| message: Flags.string({ |
Contributor
There was a problem hiding this comment.
The upload v2 endpoint supports some additional arguments:
'root-dir': Flags.string({
description: 'Archive path prefix under which built files and the config file live',
default: DEFAULT_V2_ROOT_DIR,
}),
'config-path': Flags.string({
description: 'Path to the in-archive config file, relative to --root-dir',
default: DEFAULT_V2_CONFIG_PATH,
}),
'match-mode': Flags.string({
description: 'How ssr-only/ssr-shared patterns that match no files are handled',
options: ['strict', 'ignore_missing'],
default: DEFAULT_V2_MATCH_MODE,
}),
Can you add those but make it so they only take affect if the backend is SCAPI?
Contributor
There was a problem hiding this comment.
You can look at the upload-v2 command for reference
kieran-sf
reviewed
Sep 18, 2026
| this.log( | ||
| t( | ||
| 'commands.mrt.bundle.uploadV2.pushV2Hint', | ||
| 'Note: "b2c mrt bundle deploy --v2" performs the same v2 upload and can build, upload, and deploy in one step.', |
Contributor
There was a problem hiding this comment.
Can this be a warning instead
kieran-sf
approved these changes
Sep 18, 2026
…435/deployments-scapi
Contributor
📘 Docs preview🧹 The preview for this PR has been removed (PR closed). |
o-olaosebikan
deleted the
o.olaosebikan/W-24181435/deployments-scapi
branch
September 18, 2026 21:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GUS: @W-24181435 — [B2C CLI][SCAPI] Complete the Deployments backend
Completes the SCAPI Storefront Deployments backend by moving the two remaining
/bundlesoperations off the legacy MRT Cloud API:mrt bundle listis now backend-aware — lists bundles via SCAPI (normalized rows +backendcolumn), keeps--jsonas a backend-native passthrough, andautofalls back to legacy on safe statuses.mrt bundle deploy(local build) runs over SCAPI — uploads the build via SCAPI and, when a target is given, creates the deployment and supports--waitpolling; upload-only failures fall back to legacy while post-upload deploy failures do not (no double-upload).listBundlesScapi,uploadBundleScapi, and backend-awarelistMrtBundles/pushMrtBundle.Testing
Test plan: Test Plan — W-24181435 SCAPI Deployments Backend (A & B live tests)
Live scenarios exercised (cloud-soak tenant
zymb_018/ orgf_ecom_zymb_018, projectnicki-be2141):--mrt-backend scapi(table +backendcolumn,-Dshows resolved org/backend),--jsonbackend-native passthrough, andautoresolving to SCAPI. A1 verified live (HTTP 200, correlationa3cb765d3f1867aa).--waitto completion.Automated coverage: MSW unit tests in
packages/b2c-tooling-sdk/test/operations/mrt/push.test.ts(listBundlesScapi,uploadBundleScapi, backend-awarelistMrtBundles/pushMrtBundle) and CLI command tests inpackages/b2c-cli/test/commands/mrt/bundle/{list,deploy}.test.tsacross backends.Dependencies
If net-new third-party dependencies were added, rationale/discussion is included and3pl-approvedis set by a maintainerpnpm test)pnpm run format)