refactor: rename webapp command to ui-bundle#894
Open
garychangsf wants to merge 7 commits intosalesforcecli:mainfrom
Open
refactor: rename webapp command to ui-bundle#894garychangsf wants to merge 7 commits intosalesforcecli:mainfrom
garychangsf wants to merge 7 commits intosalesforcecli:mainfrom
Conversation
Rename `sf template generate webapp` to `sf template generate ui-bundle`: - Rename src/commands/template/generate/webapp/ to ui-bundle/ - Rename messages/webApplication.md to messages/ui-bundle.generate.md - Extract UI_BUNDLES_DIR constant for the uiBundles folder name - Update command-snapshot.json with new ui-bundle command entry - Update package.json oclif topics to reflect ui-bundle namespace - Update CLAUDE.md and add-template-generator skill with ui-bundle examples W-21575871 Made-with: Cursor
…nternalapp/reactexternalapp - Replace deprecated reactb2e and reactb2x template names with reactinternalapp and reactexternalapp in the project generate command options, improving clarity by reflecting the internal vs external audience distinction instead of opaque B2E/B2X codes - Add nativemobile as a new supported template option - Bump @salesforce/templates to 66.6.2 to pick up the uiBundles output directory rename (previously webapplications) and aligned internal template identifiers - Update NUT tests to use the new template names and uiBundles path - Update messages to document the renamed templates correctly Made-with: Cursor
bpbuch
reviewed
Mar 29, 2026
| name: add-template-generator | ||
| description: Add a new template generator command to the CLI | ||
| --- | ||
|
|
There was a problem hiding this comment.
I don't think we need to update this skill with the rename.
Comment on lines
+40
to
+41
| 'reactinternalapp', | ||
| 'reactexternalapp', |
| public static readonly hidden = true; // Hide from external developers until GA | ||
| public static readonly aliases = ['webapp:generate']; | ||
| public static readonly deprecateAliases = true; | ||
| public static readonly aliases = ['ui-bundle:generate', 'webapp:generate']; |
There was a problem hiding this comment.
Suggested change
| public static readonly aliases = ['ui-bundle:generate', 'webapp:generate']; | |
| public static readonly aliases = ['ui-bundle:generate']; |
Comment on lines
+98
to
+100
| templateType: TemplateType.X, | ||
| opts: flags, | ||
| ux |
There was a problem hiding this comment.
Suggested change
| templateType: TemplateType.X, | |
| opts: flags, | |
| ux | |
| templateType: TemplateType.X, | |
| opts: flags, | |
| ux |
| sf template generate {metadataType} {optionalSubTemplate} | ||
|
|
||
| Examples: | ||
|
|
| src/commands/template/generate/{metadataType}/ | ||
|
|
||
| Files: | ||
|
|
command-snapshot.json
Outdated
| { | ||
| "alias": ["webapp:generate"], | ||
| "command": "template:generate:webapp", | ||
| "alias": ["ui-bundle:generate", "webapp:generate"], |
There was a problem hiding this comment.
Suggested change
| "alias": ["ui-bundle:generate", "webapp:generate"], | |
| "alias": ["ui-bundle:generate"], |
package.json
Outdated
There was a problem hiding this comment.
Does this version bump line up with template rename updates?
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
webapp:generatecommand totemplate:generate:ui-bundlewithwebapp:generatekept as a backward-compatible aliasreactb2e/reactb2xtoreactinternalapp/reactexternalappTest plan
yarn test)template:generate:ui-bundlewebapp:generatealias still works for backward compatibility