Add BM instance-level role management commands#293
Merged
Conversation
Close the sfcc-ci compatibility gap for role operations that target a specific instance (the `--instance` flag in sfcc-ci). Adds a new `bm roles` topic with full CRUD, user assignment, and permissions management via OCAPI Data API, mirroring the existing `am roles` topic structure. New SDK operations: listBmRoles, getBmRole, createBmRole, deleteBmRole, grantBmRole, revokeBmRole, getBmRolePermissions, setBmRolePermissions. New CLI commands: bm roles list/get/create/delete/grant/revoke and bm roles permissions get/set. Also updates the sfcc-ci migration guide, adds documentation, and creates a b2c-users-roles skill covering both AM and BM role management.
New guide at docs/guide/sdk-migration.md covering the migration from
sfcc-ci's require('sfcc-ci') JavaScript API to @salesforce/b2c-tooling-sdk.
Includes side-by-side code examples, paradigm shift explanations
(callbacks→async/await, token passing→config-based auth, untyped→typed),
per-module API mapping, and a comprehensive reference table.
Also adds cross-references from the CLI migration guide and SDK README.
Long descriptions overflow the terminal width. Match the pattern used by scaffold list/search where description is an extended-only column.
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
BM Role Management Commands
bm rolestopic with full CRUD (list,get,create,delete), user assignment (grant,revoke), and file-based permissions management (permissions get,permissions set) via OCAPI Data APIrole:list/grant/revoke --instanceoperationsbm-roles) with 8 functions:listBmRoles,getBmRole,createBmRole,deleteBmRole,grantBmRole,revokeBmRole,getBmRolePermissions,setBmRolePermissionsb2c-users-rolesskill covering both AM and BM role managementdocs/cli/bm-roles.mdSDK Migration Tutorial
docs/guide/sdk-migration.md— tutorial for migrating from sfcc-ci's programmatic JavaScript API (require('sfcc-ci')) to@salesforce/b2c-tooling-sdkTest plan
pnpm run lint:agent— cleanpnpm run typecheck:agent— cleanpnpm --filter @salesforce/b2c-cli run test:agent— 1114 passingpnpm --filter @salesforce/b2c-tooling-sdk run test:agent— 1489 passing