|
1 | 1 | # summary
|
2 | 2 |
|
3 |
| -Preview Lightning Experience Applications. |
| 3 | +Preview a Lightning Experience app locally and in real-time, without deploying it. |
4 | 4 |
|
5 | 5 | # description
|
6 | 6 |
|
7 |
| -Preview Lightning Experience Applications in real-time. |
| 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. |
8 | 8 |
|
9 |
| -In dev preview mode, you can edit local files and see these changes to your Lightning Web Components (LWC) within your {org name} org: |
| 9 | +When you edit these local files with Local Dev enabled, your org automatically reflects these changes. |
10 | 10 |
|
11 |
| -- Basic HTML and CSS edits |
12 |
| -- Importing new CSS-only LWC |
13 |
| -- JS edits in-service component library |
14 |
| -- JS method changes in the LWC component that don't alter its public API. |
| 11 | +- Basic HTML and CSS edits to LWCs |
| 12 | +- JavaScript changes to LWCs that don't affect the component's public API |
| 13 | +- Importing new custom LWCs |
| 14 | +- Importing another instance of an existing LWC |
15 | 15 |
|
16 |
| -Other local changes require deployment to your org. However, changes made directly in your org (like modifying component properties and saving) are immediately live and won't show in your local files until you retrieve them from the org. |
| 16 | +To apply any other local changes not listed above, you must deploy them to your org using the `sf project deploy start` command. |
17 | 17 |
|
18 |
| -This feature enables developers to quickly iterate on their components and pages, seeing the impact of changes in real-time without needing to deploy or refresh manually. Live reload is enabled by default to automatically refresh the preview when source code changes are detected. |
| 18 | +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. |
19 | 19 |
|
20 |
| -Use the appropriate topic to preview specific aspects of the development environment. |
| 20 | +To learn more about Local Dev enablement, considerations, and limitations, see the Lightning Web Components Developer Guide. |
21 | 21 |
|
22 | 22 | # flags.name.summary
|
23 | 23 |
|
24 |
| -Name of the Lightning Experience application to preview. |
| 24 | +Name of the Lightning Experience app to preview. |
25 | 25 |
|
26 | 26 | # flags.target-org.summary
|
27 | 27 |
|
28 | 28 | Username or alias of the target org. Not required if the `target-org` configuration variable is already set.
|
29 | 29 |
|
30 | 30 | # flags.device-type.summary
|
31 | 31 |
|
32 |
| -Type of device to emulate in preview. |
| 32 | +Type of device to display the app preview. |
33 | 33 |
|
34 | 34 | # flags.device-id.summary
|
35 | 35 |
|
36 |
| -For mobile virtual devices, specify the device ID to preview. If omitted, the first available virtual device will be used. |
| 36 | +ID of the mobile device to display the preview if device type is set to `ios` or `android`. The default value is the ID of the first available mobile device. |
37 | 37 |
|
38 | 38 | # error.username
|
39 | 39 |
|
@@ -97,70 +97,75 @@ Before proceeding, install the self-signed certificate on your device. The certi
|
97 | 97 |
|
98 | 98 | `%s`
|
99 | 99 |
|
100 |
| -Follow the steps below to install the certificate: |
| 100 | +To install the certificate, follow these steps: |
101 | 101 |
|
102 | 102 | %s
|
103 | 103 |
|
104 | 104 | # certificate.installation.steps.ios
|
105 | 105 |
|
106 |
| -1. Drag and drop the file on to your booted simulator. |
107 |
| -2. Tap `Allow` to proceed with downloading the configuration file. |
108 |
| -3. Tap `Close` and navigate to `Settings > General > VPN & Device Management > localhost`. |
109 |
| -4. Tap `Install` in the title bar, in the warning window, and on the install button. |
110 |
| -5. In the `Profile Installed` view, confirm that the profile shows as `Verified` and Tap `Done`. |
111 |
| -6. Now navigate to `Settings > General > About > Certificate Trust Settings`. |
112 |
| -7. Toggle full trust for `localhost` to enable full trust. |
113 |
| -8. In the warning dialog, tap `Continue`. |
| 106 | +1. Drag and drop the file onto your booted simulator. |
| 107 | +2. Click `Allow` to proceed with downloading the configuration file. |
| 108 | +3. Click `Close` and navigate to `Settings > General > VPN & Device Management > localhost`. |
| 109 | +4. Click `Install` in the title bar, in the warning window, and on the install button. |
| 110 | +5. In the `Profile Installed` view, confirm that the profile displays `Verified` and then click `Done`. |
| 111 | +6. Navigate to `Settings > General > About > Certificate Trust Settings`. |
| 112 | +7. Enable full trust for `localhost`. |
| 113 | +8. In the resulting warning pop-up, click `Continue`. |
114 | 114 |
|
115 | 115 | # certificate.installation.steps.android
|
116 | 116 |
|
117 |
| -1. Drag and drop the file on to your booted emulator. |
| 117 | +1. Drag and drop the file onto your booted emulator. |
118 | 118 | 2. %s
|
119 |
| -3. Browse to the certificate file that you transferred from step 1 (usually under `/sdcard/download`). |
| 119 | +3. Navigate to the certificate file from step 1. (It's usually located in `/sdcard/download`). |
120 | 120 | 4. Follow the on-screen instructions to install it.
|
121 |
| -5. Tap on `User credentials` under `Credential storage` and verify that your certificate is listed there. |
122 |
| -6. Tap on `Trusted credentials` under `Credential storage`. Then tap on `USER` and verify that your certificate is listed there. |
| 121 | +5. Click `User credentials` under `Credential storage` and verify that your certificate is listed there. |
| 122 | +6. Click `Trusted credentials` under `Credential storage`. Then click `USER` and verify that page lists your certificate. |
123 | 123 |
|
124 | 124 | # certificate.installation.steps.android.nav-target-api-24-25
|
125 | 125 |
|
126 |
| -Navigate to `Settings > Security` and tap on `Install from SD card` under `Credential storage`. |
| 126 | +Navigate to `Settings > Security` and click `Install from SD card` under `Credential storage`. |
127 | 127 |
|
128 | 128 | # certificate.installation.steps.android.nav-target-api-26-27
|
129 | 129 |
|
130 |
| -Navigate to `Settings > Security & Location > Encryption & credentials` and tap on `Install from SD card` under `Credential storage`. |
| 130 | +Navigate to `Settings > Security & Location > Encryption & credentials` and click `Install from SD card` under `Credential storage`. |
131 | 131 |
|
132 | 132 | # certificate.installation.steps.android.nav-target-api-28
|
133 | 133 |
|
134 |
| -Navigate to `Settings > Security & Location > Advanced > Encryption & credentials` and tap on `Install from SD card` under `Credential storage`. |
| 134 | +Navigate to `Settings > Security & Location > Advanced > Encryption & credentials` and click `Install from SD card` under `Credential storage`. |
135 | 135 |
|
136 | 136 | # certificate.installation.steps.android.nav-target-api-29
|
137 | 137 |
|
138 |
| -Navigate to `Settings > Security > Encryption & credentials` and tap on `Install from SD card` under `Credential storage`. |
| 138 | +Navigate to `Settings > Security > Encryption & credentials` and click `Install from SD card` under `Credential storage`. |
139 | 139 |
|
140 | 140 | # certificate.installation.steps.android.nav-target-api-30-32
|
141 | 141 |
|
142 |
| -Navigate to `Settings > Security > Encryption & credentials` and tap on `Install a certificate` under `Credential storage`. Now tap on `CA certificate` and on `Install anyway`. |
| 142 | +Navigate to `Settings > Security > Encryption & credentials` and click `Install a certificate` under `Credential storage`. Click `CA certificate`, and then click `Install anyway`. |
143 | 143 |
|
144 | 144 | # certificate.installation.steps.android.nav-target-api-33
|
145 | 145 |
|
146 |
| -Navigate to `Settings > Security > More security settings > Encryption & credentials` and tap on `Install a certificate` under `Credential storage`. Now tap on `CA certificate` and on `Install anyway`. |
| 146 | +Navigate to `Settings > Security > More security settings > Encryption & credentials` and click `Install a certificate` under `Credential storage`. Click `CA certificate`, and then click `Install anyway`. |
147 | 147 |
|
148 | 148 | # certificate.installation.steps.android.nav-target-api-34-up
|
149 | 149 |
|
150 |
| -Navigate to `Settings > Security & Privacy > More security & privacy > Encryption & credentials` and tap on `Install a certificate` under `Credential storage`. Now tap on `CA certificate` and on `Install anyway`. |
| 150 | +Navigate to `Settings > Security & Privacy > More security & privacy > Encryption & credentials` and click `Install a certificate` under `Credential storage`. Click `CA certificate`, and then click `Install anyway`. |
151 | 151 |
|
152 | 152 | # certificate.waiting
|
153 | 153 |
|
154 |
| -After installing the certificate, press any key to continue... |
| 154 | +After you install the certificate, press any key to continue... |
155 | 155 |
|
156 | 156 | # mobileapp.notfound
|
157 | 157 |
|
158 |
| -%s is not installed on your device. |
| 158 | +%s isn't installed on your device. |
159 | 159 |
|
160 | 160 | # mobileapp.download
|
161 | 161 |
|
162 |
| -%s is not installed on your device. Do you want to download and install it |
| 162 | +%s isn't installed on your device. Do you want to download and install it? |
163 | 163 |
|
164 | 164 | # examples
|
165 | 165 |
|
166 |
| -- <%= config.bin %> <%= command.id %> |
| 166 | +- Preview the default app for the target org "myOrg" in a desktop environment: |
| 167 | + <%= config.bin %> <%= command.id %> --target-org myOrg |
| 168 | +- Preview the app "myApp" for the target org "myOrg" in a desktop environment: |
| 169 | + <%= config.bin %> <%= command.id %> --name MyApp --target-org myOrg --device-type desktop |
| 170 | +- Preview the default app for target org "myOrg" on an iOS device: |
| 171 | + <%= config.bin %> <%= command.id %> --target-org myOrg --device-type ios --device-id "iPhone 15 Pro Max" |
0 commit comments