Skip to content

feat: rename ui-embedding --shell-title flag to --title @W-24143229@ - #1051

Merged
WillieRuemmele merged 3 commits into
salesforcecli:mainfrom
aman06it:feat/ui-embedding-title-flag
Sep 9, 2026
Merged

feat: rename ui-embedding --shell-title flag to --title @W-24143229@#1051
WillieRuemmele merged 3 commits into
salesforcecli:mainfrom
aman06it:feat/ui-embedding-title-flag

Conversation

@aman06it

@aman06it aman06it commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

What

Renames the sf template generate ui-embedding flag --shell-title--title. The generated LWC now emits title="..." on <lightning-ui-embedding>.

@W-24143229@

Changes

  • src/commands/template/generate/ui-embedding/index.ts — flag --shell-title--title, maps to title option
  • messages/uiEmbedding.md — flag messages + examples
  • command-snapshot.json — regenerated (flag list)
  • test/commands/template/generate/ui-embedding/index.nut.ts — updated to --title

The flag remains required; --shell-title is now rejected as a nonexistent flag.

Testing

  • NUT tests: 14/14 pass (real CLI), including should throw missing --title error.
  • Verified live: --title "Expense Center" renders title="Expense Center"; --shell-titleNonexistent flag.

Coordinated change

Depends on forcedotcom/salesforcedx-templates#912 (renames the shellTitle option → title in @salesforce/templates and renders title=). This PR needs that published and the @salesforce/templates dependency bumped before it compiles/behaves correctly. Merge #912 first, then bump here.

@aman06it
aman06it requested a review from a team as a code owner September 9, 2026 18:57
Comment thread messages/uiEmbedding.md Outdated
aman06it and others added 2 commits September 10, 2026 00:59
@aman06it aman06it changed the title feat: rename ui-embedding --shell-title flag to --title feat: rename ui-embedding --shell-title flag to --title @W-24143229 Sep 9, 2026
@WillieRuemmele WillieRuemmele changed the title feat: rename ui-embedding --shell-title flag to --title @W-24143229 feat: rename ui-embedding --shell-title flag to --title @W-24143229@ Sep 9, 2026
multiple: true,
required: true,
})(),
'shell-title': Flags.string({

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know I don't have context, but this is a breaking change, would you consider adding an alias: 'shell-title' and deprecateAliases:true properties to this flag definition?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WillieRuemmele, since this hasn’t reached GA yet, will it still cause a breaking change?

@WillieRuemmele
WillieRuemmele merged commit 49b5e4d into salesforcecli:main Sep 9, 2026
18 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants