Skip to content

Commit f20747c

Browse files
fix: edit help for new command
1 parent ada39d8 commit f20747c

File tree

1 file changed

+48
-40
lines changed

1 file changed

+48
-40
lines changed

messages/multi-framework.dev.md

Lines changed: 48 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,106 @@
11
# summary
22

3-
Preview a web app locally without needing to deploy
3+
Preview a web application locally and in real-time, without deploying it to your org.
44

55
# description
66

7-
This command starts a local development server so you can preview a web application using the local metadata files in your DX project. Using a local preview helps you quickly develop web applications, because you don't have to continually deploy metadata to your org.
7+
This command starts a local development (dev) server so you can preview a web application using the local metadata files in your DX project. Using a local preview helps you quickly develop web applications, because you don't have to continually deploy metadata to your org.
88

99
The command also launches a local proxy server that sits between your web application and Salesforce, automatically injecting authentication headers from Salesforce CLI's stored tokens. The proxy allows your web app to make authenticated API calls to Salesforce without exposing credentials.
1010

11+
Even though you're previewing the web application locally and not deploying anything to an org, you're still required to authorize and specify an org to use this command.
12+
13+
Salesforce web applications are represented by the WebApplication metadata type.
14+
1115
# flags.name.summary
1216

13-
Identifies the Web Application (optional)
17+
Name of the web application to preview.
1418

1519
# flags.name.description
1620

17-
The unique name of the web application as defined in webapplication.json. If not provided, the command will automatically discover webapplication.json files in the current directory and subdirectories. If only one webapplication.json is found, it will be used automatically. If multiple are found, you will be prompted to select one.
21+
The unique name of the web application, as defined by the "name" property in the webapplication.json runtime configuration file. The webapplication.json file is located in the "multiframework" metadata directory of your DX project, such as force-app/main/default/multiframework/MyApp/webapplication.json.
22+
23+
If you don't specify this flag, the command automatically discovers the webapplication.json files in the current directory and subdirectories. If the command finds only one webapplication.json, it automatically uses it. If it finds multiple files, the command prompts you to select one.
1824

1925
# flags.url.summary
2026

21-
Dev server origin to forward UI/HMR/static requests
27+
URL where your developer server runs, such as https://localhost:5173. All UI, static, and hot deployment requests are forwarded to this URL.
2228

2329
# flags.url.description
2430

25-
The URL where your dev server is running (e.g., http://localhost:5173). Required if webapplication.json does not contain a dev.command or dev.url configuration. All non-Salesforce API requests will be forwarded to this URL.
31+
You must specify this flag if the web application's webapplication.json file doesn't contain a value for either the "dev.command" or "dev.url" configuration properties. All non-Salesforce API requests are forwarded to this URL.
32+
33+
If you specify this flag, it overrides the value in the webapplication.json file.
2634

27-
Dev server URL precedence: --url flag > manifest dev.url > URL from dev server process (started via manifest dev.command or default npm run dev).
35+
This is the order of precedence that the dev server uses for the URL: --url flag > manifest dev.url > URL from the dev server process (which was started using either manifest dev.command or default npm run dev).
2836

2937
# flags.port.summary
3038

31-
Local proxy port
39+
Local port where the proxy server listens.
3240

3341
# flags.port.description
3442

35-
The port on which the proxy server will listen. Your browser should connect to this port, not directly to the dev server. The proxy will forward authenticated requests to Salesforce and other requests to your dev server.
43+
Be sure your browser connects to this port, and not directly to the dev server. The proxy then forwards authenticated requests to Salesforce and other requests to your local dev server.
3644

3745
# flags.open.summary
3846

39-
Auto-open proxy URL in default browser
47+
Automatically open the proxy server URL in your default browser when the dev server is ready.
4048

4149
# flags.open.description
4250

43-
Automatically opens the proxy server URL in your default web browser when the server is ready. This saves you from manually copying and pasting the URL. The browser will open to the proxy URL (not the dev server URL directly), ensuring all requests are properly authenticated.
51+
This flag saves you from manually copying and pasting the URL. The browser opens to the proxy URL, and not the dev server URL directly, which ensures that all requests are property authenticated.
4452

4553
# examples
4654

47-
- Start the development server (auto-discovers webapplication.json):
55+
- Start the local development (dev) server by automatically discovering the web application's webapplication.json file; use the org with alias "myorg":
4856

4957
<%= config.bin %> <%= command.id %> --target-org myorg
5058

51-
- Start the development server with explicit webapp name:
59+
- Start the dev server by explicitly specifying the web application's name:
5260

5361
<%= config.bin %> <%= command.id %> --name myWebApp --target-org myorg
5462

55-
- Start the development server with explicit dev server URL:
63+
- Start at the specified dev server URL:
5664

5765
<%= config.bin %> <%= command.id %> --name myWebApp --url http://localhost:5173 --target-org myorg
5866

59-
- Start with custom port and auto-open browser:
67+
- Start with a custom proxy port and automatically open the proxy server URL in your browser:
6068

6169
<%= config.bin %> <%= command.id %> --target-org myorg --port 4546 --open
6270

63-
- Start with debug logging (using SF_LOG_LEVEL environment variable):
71+
- Start with debug logging enabled by specifing the SF_LOG_LEVEL environment variable before running the command:
6472

6573
SF_LOG_LEVEL=debug <%= config.bin %> <%= command.id %> --target-org myorg
6674

6775
# info.manifest-changed
6876

69-
Manifest %s detected
77+
Manifest %s detected.
7078

7179
# info.manifest-reloaded
7280

73-
✓ Manifest reloaded successfully
81+
✓ Manifest reloaded successfully.
7482

7583
# info.dev-url-changed
7684

77-
Dev server URL updated to: %s
85+
Dev server URL updated to: %s.
7886

7987
# info.dev-server-url
8088

81-
Dev server URL: %s
89+
Dev server URL: %s.
8290

8391
# info.proxy-url
8492

85-
Proxy URL: %s (open this URL in your browser)
93+
Proxy URL: %s (open this URL in your browser).
8694

8795
# info.ready-for-development
8896

8997
✅ Ready for development!
90-
→ %s (open this URL in your browser)
98+
→ %s (open this URL in your browser).
9199

92100
# info.ready-for-development-vite
93101

94102
✅ Ready for development!
95-
→ %s (Vite proxy active - open this URL in your browser)
103+
→ %s (Vite proxy active - open this URL in your browser).
96104

97105
# info.press-ctrl-c
98106

@@ -136,27 +144,27 @@ Dev and proxy servers are running. Stop them by running "SFDX: Close Live Previe
136144

137145
# info.dev-server-healthy
138146

139-
✓ Dev server is responding at: %s
147+
✓ Dev server is responding at: %s.
140148

141149
# info.dev-server-detected
142150

143-
✅ Dev server detected at %s
151+
✅ Dev server detected at %s.
144152

145153
# info.start-dev-server-hint
146154

147-
Start your dev server to continue development
155+
Start your dev server to continue development.
148156

149157
# warning.dev-server-not-responding
150158

151-
⚠ Dev server returned status %s from: %s
159+
⚠ Dev server returned status %s from: %s.
152160

153161
# warning.dev-server-unreachable
154162

155-
⚠ Dev server is not responding at: %s
163+
⚠ Dev server is not responding at: %s.
156164

157165
# warning.dev-server-unreachable-status
158166

159-
⚠️ Dev server unreachable at %s
167+
⚠️ Dev server unreachable at %s.
160168

161169
# warning.dev-server-start-hint
162170

@@ -169,7 +177,7 @@ dev.command changed to "%s" - restart the command to apply this change.
169177

170178
# error.manifest-watch-failed
171179

172-
Failed to watch manifest: %s
180+
Failed to watch manifest: %s.
173181

174182
# error.dev-url-unreachable
175183

@@ -191,50 +199,50 @@ Port %s is already in use. Try specifying a different port with the --port flag
191199

192200
# info.multiple-webapps-found
193201

194-
Found %s webapps in project
202+
Found %s webapps in project.
195203

196204
# info.webapp-auto-selected
197205

198-
Auto-selected webapp "%s" (running from inside its folder)
206+
Auto-selected webapp "%s" (running from inside its folder).
199207

200208
# info.using-webapp
201209

202-
✅ Using webapp: %s (%s)
210+
✅ Using webapp: %s (%s).
203211

204212
# info.starting-webapp
205213

206-
✅ Starting %s
214+
✅ Starting %s.
207215

208216
# prompt.select-webapp
209217

210218
Select the webapp to run:
211219

212220
# info.no-manifest-defaults
213221

214-
No webapplication.json found. Using defaults: dev command=%s, proxy port=%s
222+
No webapplication.json found. Using defaults: dev command=%s, proxy port=%s.
215223

216224
Tip: See "sf multi-framework dev --help" for configuration options.
217225

218226
# warning.empty-manifest
219227

220-
No dev configuration in webapplication.json - using defaults (command: %s)
228+
No dev configuration in webapplication.json - using defaults (command: %s).
221229

222230
Tip: See "sf multi-framework dev --help" for configuration options.
223231

224232
# info.using-defaults
225233

226-
Using default dev command: %s
234+
Using default dev command: %s.
227235

228236
# info.url-already-available
229237

230-
✅ URL %s is already available, skipping dev server startup (proxy-only mode)
238+
✅ URL %s is already available, skipping dev server startup (proxy-only mode).
231239

232240
# warning.url-mismatch
233241

234-
⚠️ The --url flag (%s) does not match the actual dev server URL (%s).
242+
⚠️ The --url flag (%s) does not match the actual dev server URL (%s).
235243
The proxy will use the actual dev server URL.
236244

237245
# info.vite-proxy-detected
238246

239-
Vite WebApp proxy detected at %s - using Vite's built-in proxy (standalone proxy skipped)
247+
Vite WebApp proxy detected at %s - using Vite's built-in proxy (standalone proxy skipped).
240248

0 commit comments

Comments
 (0)