Skip to content

feat(cap): list, tasks, pull commands and UX improvements#370

Merged
clavery merged 7 commits intomainfrom
feature/cap-support
Apr 22, 2026
Merged

feat(cap): list, tasks, pull commands and UX improvements#370
clavery merged 7 commits intomainfrom
feature/cap-support

Conversation

@clavery
Copy link
Copy Markdown
Collaborator

@clavery clavery commented Apr 21, 2026

Summary

  • Add cap list command — exports commerce_feature_states from sites and displays installed features with type, source, install/config status, and version
  • Add cap tasks command — shows configuration tasks for an installed app with clickable Business Manager links
  • Add cap pull command — downloads and extracts app source packages from the instance (or GitHub fallback) for cartridge deployment or Storefront Next development
  • Standardize all cap commands to use --site-id flag (with --site as backward-compatible alias)
  • cap uninstall no longer requires --domain — resolves it automatically from feature state
  • cap install now keeps the archive on the instance by default (--clean-archive to remove), uploads to Impex/commerce-apps/
  • Fix sites API select=(*)(**) so site discovery actually returns site IDs
  • Fix null XML parse crash when sites have no installed features
  • Remove stub fixture fallback from list operation
  • Export all CAP operations and types from SDK main barrel file
  • Update CLI reference docs, b2c-cap skill, and add changeset

Test plan

  • b2c cap list returns installed features across all sites
  • b2c cap list --site-id RefArch filters to a single site
  • b2c cap list --json returns full feature state with decoded configTasks and installationMetadata
  • b2c cap tasks avalara-tax --site-id RefArch shows numbered tasks with clickable links
  • b2c cap pull downloads and extracts all registry apps to ./commerce-apps/
  • b2c cap pull avalara-tax pulls a single app
  • b2c cap install ./app --site-id RefArch keeps archive by default
  • b2c cap uninstall avalara-tax --site-id RefArch works without --domain
  • --site alias still works on all commands

clavery added 5 commits March 22, 2026 08:18
- cap list: export and parse commerce_feature_states for installed features
- cap tasks: show config tasks with clickable BM links
- cap pull: download and extract app source packages from instance or GitHub
- Standardize --site-id flag across all cap commands (--site as alias)
- cap uninstall: auto-resolve domain from feature state (drop --domain)
- cap install: keep archive by default, upload to Impex/commerce-apps/
- Fix sites API select query (*) -> (**) and null XML parse handling
- Remove stub fixture fallback from list operation
- Export all CAP operations and types from SDK main index
- Update CLI docs, skill, and add changeset
clavery added 2 commits April 21, 2026 15:10
New schemas: commercefeaturestate, storefronts
Updated: abtest, bmext, library, order, pagemetatag, search2, sort
@clavery clavery merged commit ee735bb into main Apr 22, 2026
7 checks passed
@clavery clavery deleted the feature/cap-support branch April 22, 2026 00:16
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