@@ -201,20 +201,19 @@ EXAMPLES
201201 $ sf lightning dev app --target-org myOrg --device-type ios --device-id "iPhone 15 Pro Max"
202202```
203203
204- _ See code: [ src/commands/lightning/dev/app.ts] ( https://github.com/salesforcecli/plugin-lightning-dev/blob/3.2.0 /src/commands/lightning/dev/app.ts ) _
204+ _ See code: [ src/commands/lightning/dev/app.ts] ( https://github.com/salesforcecli/plugin-lightning-dev/blob/3.2.1 /src/commands/lightning/dev/app.ts ) _
205205
206206## ` sf lightning dev component `
207207
208208Preview LWC components in isolation.
209209
210210```
211211USAGE
212- $ sf lightning dev component -o <value> [--json] [--flags-dir <value>] [-n <value>]
212+ $ sf lightning dev component [--json] [--flags-dir <value>] [-n <value>] [-o <value>]
213213
214214FLAGS
215- -n, --name=<value> Description of a flag.
216- -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
217- configuration variable is already set.
215+ -n, --name=<value> Name of a component to preview.
216+ -o, --target-org=<value> Username or alias of the target org.
218217
219218GLOBAL FLAGS
220219 --flags-dir=<value> Import flag values from a directory.
@@ -223,19 +222,31 @@ GLOBAL FLAGS
223222DESCRIPTION
224223 Preview LWC components in isolation.
225224
226- Preview LWC components in isolation. Replacement for:
227- https://developer.salesforce.com/docs/platform/sfvscode-extensions/guide/lwclocaldev.html
225+ Component preview launches an isolated development environment for Lightning Web Components, enabling rapid iteration
226+ without needing to deploy changes. The server provides real-time previews of your components through hot module
227+ replacement (HMR), automatically refreshing the view when source files are modified.
228+
229+ When running the development server, these changes are immediately reflected:
230+
231+ - Component template (HTML) modifications
232+ - Styling updates in component CSS files
233+ - JavaScript logic changes that don't modify the component's API
234+ - Adding or updating internal component dependencies
235+ - Modifying static resources used by the component
236+
237+ See the LWC Development Guide for more information about component development best practices and limitations.
228238
229239EXAMPLES
230- $ sf lightning dev component
240+ Select a component and launch the component preview:
241+
242+ $ sf lightning dev component
231243
232- FLAG DESCRIPTIONS
233- -n, --name=<value> Description of a flag.
244+ Launch component preview for "myComponent":
234245
235- More information about a flag. Don't repeat the summary.
246+ $ sf lightning dev component --name myComponent
236247```
237248
238- _ See code: [ src/commands/lightning/dev/component.ts] ( https://github.com/salesforcecli/plugin-lightning-dev/blob/3.2.0 /src/commands/lightning/dev/component.ts ) _
249+ _ See code: [ src/commands/lightning/dev/component.ts] ( https://github.com/salesforcecli/plugin-lightning-dev/blob/3.2.1 /src/commands/lightning/dev/component.ts ) _
239250
240251## ` sf lightning dev site `
241252
@@ -289,6 +300,6 @@ EXAMPLES
289300 $ sf lightning dev site --name "Partner Central" --target-org myOrg --get-latest
290301```
291302
292- _ See code: [ src/commands/lightning/dev/site.ts] ( https://github.com/salesforcecli/plugin-lightning-dev/blob/3.2.0 /src/commands/lightning/dev/site.ts ) _
303+ _ See code: [ src/commands/lightning/dev/site.ts] ( https://github.com/salesforcecli/plugin-lightning-dev/blob/3.2.1 /src/commands/lightning/dev/site.ts ) _
293304
294305<!-- commandsstop -->
0 commit comments