Skip to content

Commit 2d9a093

Browse files
authored
fix: replace deprecated sf ui-bundle generate CLI command @W-21338965@ (#155)
fix: replace deprecated sf ui-bundle generate with sf template generate ui-bundle
1 parent 82ab956 commit 2d9a093

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

skills/building-ui-bundle-app/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Build a complete, deployable Salesforce React UI bundle application from a natur
4343
### Phase 1: Scaffolding (Foundation)
4444

4545
```
46-
UI Bundle scaffold (sf ui-bundle generate)
46+
UI Bundle scaffold (sf template generate ui-bundle)
4747
v
4848
Install dependencies (npm install)
4949
v
@@ -214,7 +214,7 @@ Execute each phase sequentially. Complete all steps within a phase before moving
214214

215215
**Phase 1 -- Scaffolding**
216216
- 1. Load skill: Invoke `generating-ui-bundle-metadata`
217-
- 2. Execute: Run `sf ui-bundle generate`, install dependencies (`npm install`), configure meta XML, ui-bundle.json, and CSP trusted sites
217+
- 2. Execute: Run `sf template generate ui-bundle`, install dependencies (`npm install`), configure meta XML, ui-bundle.json, and CSP trusted sites
218218
- 3. Verify: Confirm directory structure and metadata files exist
219219
- 4. Checkpoint: UI bundle scaffold is ready -- proceed to Phase 2
220220

skills/generating-ui-bundle-metadata/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
name: generating-ui-bundle-metadata
3-
description: "Scaffold new Salesforce UI bundles and configure their metadata — sf ui-bundle generate, UIBundle bundles (meta XML, ui-bundle.json with routing/headers/outputDir), and CSP Trusted Sites for external domains. Use whenever creating a new UI bundle, setting up UI bundle metadata structure, configuring routing or headers, setting outputDir, adding external domains that need CSP registration, or editing bundle configuration. Triggers on: create UI bundle, create ui-bundle, new app, sf ui-bundle generate, metadata, ui-bundle.json, CSP, trusted site, bundle configuration, meta XML, routing config, external domain, headers config, outputDir."
3+
description: "Scaffold new Salesforce UI bundles and configure their metadata — sf template generate ui-bundle, UIBundle bundles (meta XML, ui-bundle.json with routing/headers/outputDir), and CSP Trusted Sites for external domains. Use whenever creating a new UI bundle, setting up UI bundle metadata structure, configuring routing or headers, setting outputDir, adding external domains that need CSP registration, or editing bundle configuration. Triggers on: create UI bundle, create ui-bundle, new app, sf template generate ui-bundle, metadata, ui-bundle.json, CSP, trusted site, bundle configuration, meta XML, routing config, external domain, headers config, outputDir."
44
---
55

66
# UI Bundle Metadata
77

88
## Scaffolding a New UI Bundle
99

10-
Use `sf ui-bundle generate` to create new apps — not create-react-app, Vite, or other generic scaffolds.
10+
Use `sf template generate ui-bundle` to create new apps — not create-react-app, Vite, or other generic scaffolds.
1111

1212
**UI bundle name (`-n`):** Alphanumerical only — no spaces, hyphens, underscores, or special characters. Example: `CoffeeBoutique` (not `Coffee Boutique`).
1313

0 commit comments

Comments
 (0)