Skip to content

Commit 1cd61cf

Browse files
authored
Merge branch 'main' into dependabot-npm_and_yarn-oclif-4.22.81
2 parents 15e6a7f + 8c1bb75 commit 1cd61cf

8 files changed

Lines changed: 84 additions & 49 deletions

File tree

.github/workflows/onRelease.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ jobs:
4747
with:
4848
ctc: true
4949
sign: true
50-
# At CLCO, the new patch branch's version will be released as 'prerelease'. After R2b, delete the logic below for 'latest' and update 'prerelease' candidate to 'latest'
51-
tag: ${{ needs.getDistTag.outputs.tag || (needs.getMajorVersion.outputs.major == '4' && 'latest') || (needs.getMajorVersion.outputs.major == '5' && 'prerelease') || 'next' }}
5250
githubTag: ${{ github.event.release.tag_name || inputs.tag }}
5351

5452
secrets: inherit

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## [6.2.17](https://github.com/salesforcecli/plugin-lightning-dev/compare/6.2.16...6.2.17) (2026-03-27)
2+
3+
## [6.2.16](https://github.com/salesforcecli/plugin-lightning-dev/compare/6.2.15...6.2.16) (2026-03-12)
4+
5+
### Bug Fixes
6+
7+
- use CODE_BUILDER_PROXY_URI since it's already authenticated ([f71e77e](https://github.com/salesforcecli/plugin-lightning-dev/commit/f71e77ebd602dabb31211dfa5afde6059589d3a9))
8+
19
## [6.2.15](https://github.com/salesforcecli/plugin-lightning-dev/compare/6.2.14...6.2.15) (2026-02-28)
210

311
### Bug Fixes

README.md

Lines changed: 39 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,13 @@ If a new org is required for NUTs tests, these are the steps to create and confi
149149

150150
## Running NUTs (integration tests) locally
151151

152-
NUTs (e2e integration tests) run the plugin against a real org and, for component-preview tests, a real browser (Playwright). To run them locally:
152+
NUTs (e2e integration tests) run the plugin against a real org and, for component-preview tests, a real browser (Playwright). Playwright browsers are installed automatically on CI but must be installed manually for local runs:
153+
154+
```bash
155+
npx playwright install --with-deps
156+
```
157+
158+
To run NUTs locally:
153159

154160
1. **Environment variables**
155161
Copy `.env.template` to `.env` and set the values for your Dev Hub org and test setup:
@@ -215,7 +221,7 @@ GLOBAL FLAGS
215221
DESCRIPTION
216222
Preview a Lightning Experience app locally and in real-time, without deploying it.
217223
218-
Use Local Dev (Beta) to see local changes to your app in a real-time preview that you don't have to deploy or manually
224+
Use Local Dev to see local changes to your app in a real-time preview that you don't have to deploy or manually
219225
refresh. To let you quickly iterate on your Lightning web components (LWCs) and pages, your app preview automatically
220226
refreshes when Local Dev detects source code changes.
221227
@@ -233,8 +239,12 @@ DESCRIPTION
233239
your live app. To update your local version of the app with those changes, you must retrieve them from your org using
234240
the `sf project retrieve start` command.
235241
242+
If you run the command without flags, it displays a list of devices for you to choose from. Then it lists the apps
243+
that it found in your local DX project for you to choose. Use the --device or --name flags to bypass the questions.
244+
The command also asks if you want to enable Local Dev in your org if it isn't already.
245+
236246
To learn more about Local Dev enablement, considerations, and limitations, see the Lightning Web Components Developer
237-
Guide.
247+
Guide (https://developer.salesforce.com/docs/platform/lwc/guide/get-started-test-components.html).
238248
239249
EXAMPLES
240250
Preview the default app for the target org "myOrg" in a desktop environment:
@@ -250,18 +260,18 @@ EXAMPLES
250260
$ sf lightning dev app --target-org myOrg --device-type ios --device-id "iPhone 15 Pro Max"
251261
```
252262

253-
_See code: [src/commands/lightning/dev/app.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/6.2.15/src/commands/lightning/dev/app.ts)_
263+
_See code: [src/commands/lightning/dev/app.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/6.2.17/src/commands/lightning/dev/app.ts)_
254264

255265
## `sf lightning dev component`
256266

257-
[Beta] Preview LWC components in isolation.
267+
Preview LWC components in isolation.
258268

259269
```
260270
USAGE
261271
$ sf lightning dev component -o <value> [--json] [--flags-dir <value>] [-n <value>] [--api-version <value>] [-c]
262272
263273
FLAGS
264-
-c, --client-select Launch component preview without selecting a component
274+
-c, --client-select Launch component preview without selecting a component.
265275
-n, --name=<value> Name of a component to preview.
266276
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
267277
configuration variable is already set.
@@ -272,7 +282,7 @@ GLOBAL FLAGS
272282
--json Format output as json.
273283
274284
DESCRIPTION
275-
[Beta] Preview LWC components in isolation.
285+
Preview LWC components in isolation.
276286
277287
Component preview launches an isolated development environment for Lightning Web Components, enabling rapid iteration
278288
without needing to deploy changes. The server provides real-time previews of your components through hot module
@@ -286,31 +296,36 @@ DESCRIPTION
286296
- Adding or updating internal component dependencies
287297
- Modifying static resources used by the component
288298
289-
See the LWC Development Guide for more information about component development best practices and limitations.
299+
If you run the command without flags, it displays a list of components that it found in your local DX project for you
300+
to choose to preview. Use the --name flag to bypass the question. The command also asks if you want to enable Local
301+
Dev in your org if it isn't already.
302+
303+
See the LWC Developer Guide for more information about component development best practices and limitations
304+
(https://developer.salesforce.com/docs/platform/lwc/guide/get-started-best-practices.html).
290305
291306
EXAMPLES
292-
Select a component and launch the component preview:
307+
Select a component interactively and launch the component preview; use your default org:
293308
294309
$ sf lightning dev component
295310
296-
Launch component preview for "myComponent":
311+
Launch component preview for "myComponent"; use the org with alias "myscratch":
297312
298-
$ sf lightning dev component --name myComponent
313+
$ sf lightning dev component --name myComponent --target-org myscratch
299314
```
300315

301-
_See code: [src/commands/lightning/dev/component.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/6.2.15/src/commands/lightning/dev/component.ts)_
316+
_See code: [src/commands/lightning/dev/component.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/6.2.17/src/commands/lightning/dev/component.ts)_
302317

303318
## `sf lightning dev site`
304319

305-
[Beta] Preview an Experience Builder site locally and in real-time, without deploying it.
320+
Preview an Experience Builder site locally and in real-time, without deploying it.
306321

307322
```
308323
USAGE
309324
$ sf lightning dev site -o <value> [--flags-dir <value>] [-n <value>] [--api-version <value>]
310325
311326
FLAGS
312-
-n, --name=<value> Name of the Experience Builder site to preview. It has to match a site name from the
313-
current org.
327+
-n, --name=<value> Name of the Experience Builder site to preview. It must match a site name from the current
328+
org.
314329
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
315330
configuration variable is already set.
316331
--api-version=<value> Override the api version used for api requests made by this command
@@ -319,7 +334,7 @@ GLOBAL FLAGS
319334
--flags-dir=<value> Import flag values from a directory.
320335
321336
DESCRIPTION
322-
[Beta] Preview an Experience Builder site locally and in real-time, without deploying it.
337+
Preview an Experience Builder site locally and in real-time, without deploying it.
323338
324339
Enable Local Dev to see local changes to your site in a real-time preview that you don't have to deploy or manually
325340
refresh. To let you quickly iterate on your Lightning web components (LWCs) and pages, your site preview automatically
@@ -335,18 +350,22 @@ DESCRIPTION
335350
To apply any other local changes not listed above, you must deploy them to your org using the `sf project deploy
336351
start` command. Then republish your site and restart the server for the Local Dev experience.
337352
353+
If you run the command without flags, it displays a list of Experience Builder sites that it found in your local DX
354+
project for you to choose from. Use the --name flag to bypass the question. The command also asks if you want to
355+
enable Local Dev in your org if it isn't already.
356+
338357
For more considerations and limitations, see the Lightning Web Components Developer Guide.
339358
340359
EXAMPLES
341-
Select a site to preview from the org "myOrg":
360+
Select a site to preview from the org with alias "myOrg":
342361
343362
$ sf lightning dev site --target-org myOrg
344363
345-
Preview the site "Partner Central" from the org "myOrg":
364+
Preview the site "Partner Central" from your default org:
346365
347-
$ sf lightning dev site --name "Partner Central" --target-org myOrg
366+
$ sf lightning dev site --name "Partner Central"
348367
```
349368

350-
_See code: [src/commands/lightning/dev/site.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/6.2.15/src/commands/lightning/dev/site.ts)_
369+
_See code: [src/commands/lightning/dev/site.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/6.2.17/src/commands/lightning/dev/site.ts)_
351370

352371
<!-- commandsstop -->

messages/lightning.dev.app.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Preview a Lightning Experience app locally and in real-time, without deploying i
44

55
# description
66

7-
Use Local Dev (Beta) to see local changes to your app in a real-time preview that you don't have to deploy or manually refresh. To let you quickly iterate on your Lightning web components (LWCs) and pages, your app preview automatically refreshes when Local Dev detects source code changes.
7+
Use Local Dev to see local changes to your app in a real-time preview that you don't have to deploy or manually refresh. To let you quickly iterate on your Lightning web components (LWCs) and pages, your app preview automatically refreshes when Local Dev detects source code changes.
88

99
When you edit these local files with Local Dev enabled, your org automatically reflects these changes.
1010

@@ -17,7 +17,9 @@ To apply any other local changes not listed above, you must deploy them to your
1717

1818
When you make changes directly in your org (like saving new component properties), they're automatically deployed to your live app. To update your local version of the app with those changes, you must retrieve them from your org using the `sf project retrieve start` command.
1919

20-
To learn more about Local Dev enablement, considerations, and limitations, see the Lightning Web Components Developer Guide.
20+
If you run the command without flags, it displays a list of devices for you to choose from. Then it lists the apps that it found in your local DX project for you to choose. Use the --device or --name flags to bypass the questions. The command also asks if you want to enable Local Dev in your org if it isn't already.
21+
22+
To learn more about Local Dev enablement, considerations, and limitations, see the Lightning Web Components Developer Guide (https://developer.salesforce.com/docs/platform/lwc/guide/get-started-test-components.html).
2123

2224
# flags.name.summary
2325

@@ -33,15 +35,15 @@ ID of the mobile device to display the preview if device type is set to `ios` or
3335

3436
# error.fetching.app-id
3537

36-
Unable to determine App Id for %s
38+
Unable to determine App Id for %s.
3739

3840
# error.device.notfound
3941

40-
Unable to find device %s
42+
Unable to find device %s.
4143

4244
# error.device.google.play
4345

44-
Google Play devices are not supported. %s is a Google Play device. Please use a Google APIs device instead.
46+
Google Play devices aren't supported. %s is a Google Play device. Use a Google APIs device instead.
4547

4648
# spinner.device.boot
4749

@@ -87,7 +89,9 @@ Note: Your desktop browser requires additional configuration to trust the local
8789

8890
- Preview the default app for the target org "myOrg" in a desktop environment:
8991
<%= config.bin %> <%= command.id %> --target-org myOrg
92+
9093
- Preview the app "myApp" for the target org "myOrg" in a desktop environment:
9194
<%= config.bin %> <%= command.id %> --name MyApp --target-org myOrg --device-type desktop
95+
9296
- Preview the default app for target org "myOrg" on an iOS device:
9397
<%= config.bin %> <%= command.id %> --target-org myOrg --device-type ios --device-id "iPhone 15 Pro Max"
Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# summary
22

3-
[Beta] Preview LWC components in isolation.
3+
Preview LWC components in isolation.
44

55
# description
66

@@ -14,35 +14,38 @@ When running the development server, these changes are immediately reflected:
1414
- Adding or updating internal component dependencies
1515
- Modifying static resources used by the component
1616

17-
See the LWC Development Guide for more information about component development best practices and limitations.
17+
If you run the command without flags, it displays a list of components that it found in your local DX project for you to choose to preview. Use the --name flag to bypass the question. The command also asks if you want to enable Local Dev in your org if it isn't already.
18+
19+
See the LWC Developer Guide for more information about component development best practices and limitations (https://developer.salesforce.com/docs/platform/lwc/guide/get-started-best-practices.html).
1820

1921
# flags.name.summary
2022

2123
Name of a component to preview.
2224

2325
# flags.client-select.summary
2426

25-
Launch component preview without selecting a component
27+
Launch component preview without selecting a component.
2628

2729
# error.directory
2830

29-
Unable to find components
31+
Unable to find components.
3032

3133
# error.component
3234

33-
Unable to determine component name
35+
Unable to determine component name.
3436

3537
# error.component-metadata
3638

37-
Failed to parse component metadata at: %s
39+
Failed to parse component metadata at: %s.
3840

3941
# error.component-not-found
4042

41-
Unable to find component with name: %s
43+
Unable to find component with name: %s.
4244

4345
# examples
4446

45-
- Select a component and launch the component preview:
47+
- Select a component interactively and launch the component preview; use your default org:
4648
<%= config.bin %> <%= command.id %>
47-
- Launch component preview for "myComponent":
48-
<%= config.bin %> <%= command.id %> --name myComponent
49+
50+
- Launch component preview for "myComponent"; use the org with alias "myscratch":
51+
<%= config.bin %> <%= command.id %> --name myComponent --target-org myscratch

messages/lightning.dev.site.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# summary
22

3-
[Beta] Preview an Experience Builder site locally and in real-time, without deploying it.
3+
Preview an Experience Builder site locally and in real-time, without deploying it.
44

55
# description
66

@@ -15,15 +15,18 @@ When you edit these local files with Local Dev enabled, your org automatically r
1515

1616
To apply any other local changes not listed above, you must deploy them to your org using the `sf project deploy start` command. Then republish your site and restart the server for the Local Dev experience.
1717

18+
If you run the command without flags, it displays a list of Experience Builder sites that it found in your local DX project for you to choose from. Use the --name flag to bypass the question. The command also asks if you want to enable Local Dev in your org if it isn't already.
19+
1820
For more considerations and limitations, see the Lightning Web Components Developer Guide.
1921

2022
# flags.name.summary
2123

22-
Name of the Experience Builder site to preview. It has to match a site name from the current org.
24+
Name of the Experience Builder site to preview. It must match a site name from the current org.
2325

2426
# examples
2527

26-
- Select a site to preview from the org "myOrg":
28+
- Select a site to preview from the org with alias "myOrg":
2729
<%= config.bin %> <%= command.id %> --target-org myOrg
28-
- Preview the site "Partner Central" from the org "myOrg":
29-
<%= config.bin %> <%= command.id %> --name "Partner Central" --target-org myOrg
30+
31+
- Preview the site "Partner Central" from your default org:
32+
<%= config.bin %> <%= command.id %> --name "Partner Central"

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@salesforce/plugin-lightning-dev",
33
"description": "Lightning development tools for LEX, Mobile, and Experience Sites",
4-
"version": "6.2.15",
4+
"version": "6.2.17",
55
"author": "Salesforce",
66
"bugs": "https://github.com/forcedotcom/cli/issues",
77
"dependencies": {
@@ -80,6 +80,7 @@
8080
"topics": {
8181
"lightning": {
8282
"external": true,
83+
"description": "Commands to work with Lightning applications.",
8384
"subtopics": {
8485
"dev": {
8586
"description": "Preview applications and sites locally and in real-time, without deploying them."
@@ -101,14 +102,13 @@
101102
"link-check": "wireit",
102103
"link-lwr": "yarn link @lwrjs/api @lwrjs/app-service @lwrjs/asset-registry @lwrjs/asset-transformer @lwrjs/auth-middleware @lwrjs/base-view-provider @lwrjs/base-view-transformer @lwrjs/client-modules @lwrjs/config @lwrjs/core @lwrjs/dev-proxy-server @lwrjs/diagnostics @lwrjs/esbuild @lwrjs/everywhere @lwrjs/fs-asset-provider @lwrjs/fs-watch @lwrjs/html-view-provider @lwrjs/instrumentation @lwrjs/label-module-provider @lwrjs/lambda @lwrjs/legacy-npm-module-provider @lwrjs/loader @lwrjs/lwc-module-provider @lwrjs/lwc-ssr @lwrjs/markdown-view-provider @lwrjs/module-bundler @lwrjs/module-registry @lwrjs/npm-module-provider @lwrjs/nunjucks-view-provider @lwrjs/o11y @lwrjs/resource-registry @lwrjs/router @lwrjs/security @lwrjs/server @lwrjs/shared-utils @lwrjs/static @lwrjs/tools @lwrjs/types @lwrjs/view-registry lwr",
103104
"lint": "wireit",
104-
"postinstall": "npx playwright install --with-deps",
105105
"postpack": "sf-clean --ignore-signing-artifacts",
106106
"prepack": "sf-prepack",
107107
"prepare": "sf-install",
108108
"test": "wireit",
109-
"test:nuts": "mocha \"**/*.nut.ts\" --slow 30000 --timeout 600000 --parallel=false",
110-
"test:nuts:local": "node -r dotenv/config ./node_modules/.bin/nyc mocha \"**/*.nut.ts\" --slow 30000 --timeout 600000 --parallel=false",
111-
"test:nut:local": "node -r dotenv/config ./node_modules/.bin/nyc mocha --slow 30000 --timeout 600000",
109+
"test:nuts": "npx playwright install --with-deps && mocha \"**/*.nut.ts\" --slow 30000 --timeout 600000 --parallel=false",
110+
"test:nuts:local": "npx playwright install --with-deps && node -r dotenv/config ./node_modules/.bin/nyc mocha \"**/*.nut.ts\" --slow 30000 --timeout 600000 --parallel=false",
111+
"test:nut:local": "npx playwright install --with-deps && node -r dotenv/config ./node_modules/.bin/nyc mocha --slow 30000 --timeout 600000",
112112
"test:only": "wireit",
113113
"unlink-lwr": "yarn unlink @lwrjs/api @lwrjs/app-service @lwrjs/asset-registry @lwrjs/asset-transformer @lwrjs/auth-middleware @lwrjs/base-view-provider @lwrjs/base-view-transformer @lwrjs/client-modules @lwrjs/config @lwrjs/core @lwrjs/dev-proxy-server @lwrjs/diagnostics @lwrjs/esbuild @lwrjs/everywhere @lwrjs/fs-asset-provider @lwrjs/fs-watch @lwrjs/html-view-provider @lwrjs/instrumentation @lwrjs/label-module-provider @lwrjs/lambda @lwrjs/legacy-npm-module-provider @lwrjs/loader @lwrjs/lwc-module-provider @lwrjs/lwc-ssr @lwrjs/markdown-view-provider @lwrjs/module-bundler @lwrjs/module-registry @lwrjs/npm-module-provider @lwrjs/nunjucks-view-provider @lwrjs/o11y @lwrjs/resource-registry @lwrjs/router @lwrjs/security @lwrjs/server @lwrjs/shared-utils @lwrjs/static @lwrjs/tools @lwrjs/types @lwrjs/view-registry lwr",
114114
"update-snapshots": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" snapshot:generate",

src/commands/lightning/dev/component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ export default class LightningDevComponent extends SfCommand<ComponentPreviewRes
9191
let ldpServerUrl;
9292

9393
// In Code Builder, we cannot go to localhost - we need to use a proxy URI to get to the ldpServer
94-
if (process.env.SF_CONTAINER_MODE && process.env.VSCODE_PROXY_URI) {
94+
if (process.env.SF_CONTAINER_MODE && process.env.CODE_BUILDER_PROXY_URI) {
9595
logger.debug('In Code Builder Mode - using proxy URI');
96-
ldpServerUrl = process.env.VSCODE_PROXY_URI.replace('https://', 'ws://').replace(
96+
ldpServerUrl = process.env.CODE_BUILDER_PROXY_URI.replace('https://', 'ws://').replace(
9797
'{{port}}',
9898
`${serverPorts.httpPort}`,
9999
);

0 commit comments

Comments
 (0)