Skip to content

Commit 253c1e9

Browse files
authored
@W-20893788 Complete MRT API coverage with reorganized command structure (#59)
* updated mrt commands and b2c target types * normalize cloud origin config loading from dw.json source * topic realignment * refactoring bundle topics and descriptions * mrt docs update * fix: update listBundles test to use new API signature and fix lint errors - Update push.test.ts to use the new listBundles({projectSlug}, auth) signature - Change import style in download.ts to use named imports per eslint rules * chore: add changeset for MRT command reorganization * Add tests for new MRT commands - Add tests for bundle commands (deploy, list, history, download) - Add tests for project commands (list, get, create, update, delete) - Add tests for project member commands (list, add) - Add tests for project notification commands (list) - Add tests for env commands (get, list, update) - Add tests for user commands (profile, api-key) - Add tests for org commands (list, b2c) - Remove obsolete mrt/push.test.ts (command restructured to bundle/deploy) Tests follow the patterns introduced in main branch using createIsolatedConfigHooks, stubParse, and sinon for mocking.
1 parent c35f3a7 commit 253c1e9

88 files changed

Lines changed: 11833 additions & 517 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@salesforce/b2c-cli': minor
3+
---
4+
5+
Reorganizes MRT commands by scope: project-level commands under `mrt project`, environment-level under `mrt env`, and deployment commands under `mrt bundle`. The `mrt bundle download` command now downloads files by default instead of just printing the URL.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@salesforce/b2c-cli': minor
3+
'@salesforce/b2c-tooling-sdk': minor
4+
---
5+
6+
Adds complete MRT CLI coverage organized by scope: `mrt project` (CRUD, members, notifications), `mrt env` (CRUD, variables, redirects, access-control, cache invalidation, B2C connections), `mrt bundle` (deploy, list, history, download), `mrt org` (list, B2C instances), and `mrt user` (profile, API key, email preferences).

.changeset/mrt-push-to-bundle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@salesforce/b2c-cli': minor
3+
---
4+
5+
Replaces `mrt push` with `mrt bundle deploy`. The new command supports both pushing local builds and deploying existing bundles by ID.

0 commit comments

Comments
 (0)