Skip to content

Add BM instance-level role management commands#293

Merged
clavery merged 3 commits intomainfrom
feature/bm-roles-sfcc-ci-compat
Mar 29, 2026
Merged

Add BM instance-level role management commands#293
clavery merged 3 commits intomainfrom
feature/bm-roles-sfcc-ci-compat

Conversation

@clavery
Copy link
Copy Markdown
Collaborator

@clavery clavery commented Mar 29, 2026

Summary

BM Role Management Commands

  • Adds bm roles topic with full CRUD (list, get, create, delete), user assignment (grant, revoke), and file-based permissions management (permissions get, permissions set) via OCAPI Data API
  • Closes the sfcc-ci compatibility gap for role:list/grant/revoke --instance operations
  • New SDK operations module (bm-roles) with 8 functions: listBmRoles, getBmRole, createBmRole, deleteBmRole, grantBmRole, revokeBmRole, getBmRolePermissions, setBmRolePermissions
  • Updates sfcc-ci migration guide to distinguish AM vs BM role mappings
  • Adds b2c-users-roles skill covering both AM and BM role management
  • Adds CLI reference documentation at docs/cli/bm-roles.md

SDK Migration Tutorial

  • New docs/guide/sdk-migration.md — tutorial for migrating from sfcc-ci's programmatic JavaScript API (require('sfcc-ci')) to @salesforce/b2c-tooling-sdk
  • Covers paradigm shifts (callbacks→async/await, token passing→config-based auth, untyped→typed clients), per-module API mapping with side-by-side code examples, and a comprehensive reference table
  • Adds cross-references from the CLI migration guide and SDK README

Test plan

  • pnpm run lint:agent — clean
  • pnpm run typecheck:agent — clean
  • pnpm --filter @salesforce/b2c-cli run test:agent — 1114 passing
  • pnpm --filter @salesforce/b2c-tooling-sdk run test:agent — 1489 passing
  • Manual smoke test against a configured sandbox with OCAPI permissions

clavery added 3 commits March 29, 2026 13:10
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.
@clavery clavery marked this pull request as ready for review March 29, 2026 18:23
@clavery clavery merged commit b5d07fd into main Mar 29, 2026
6 checks passed
@clavery clavery deleted the feature/bm-roles-sfcc-ci-compat branch March 29, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant