Skip to content

Commit 525a051

Browse files
Update static-web-apps-cli.yml
replacing bash with azstatic-cli
1 parent 2334169 commit 525a051

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

articles/static-web-apps/static-web-apps-cli.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ directCommands:
8888
8989
By default, the CLI starts and serves any static content from the current working directory `./`:
9090
91-
```bash
91+
```azstatic-cli
9292
swa start
9393
```
9494
9595
If the artifact folder of your static app is under a different folder (for example, `./my-dist`), then run the CLI and provide that folder:
9696
97-
```bash
97+
```azstatic-cli
9898
swa start ./my-dist
9999
```
100100
@@ -108,7 +108,7 @@ directCommands:
108108
109109
1. In a separate terminal, run `swa start` with the URI provided by the dev server, in the following format:
110110
111-
```bash
111+
```azstatic-cli
112112
swa start http://<APP_DEV_SERVER_HOST>:<APP_DEV_SERVER_PORT>
113113
```
114114
@@ -127,7 +127,7 @@ directCommands:
127127
128128
Instead of starting a dev server separately, you can provide the startup command to the CLI.
129129
130-
```bash
130+
```azstatic-cli
131131
# npm start script (React)
132132
swa start http://localhost:3000 --run "npm start"
133133
@@ -151,7 +151,7 @@ directCommands:
151151
152152
Run the CLI and provide the folder that contains the API backend (a valid Azure Functions App project):
153153
154-
```bash
154+
```azstatic-cli
155155
# static content plus an API
156156
swa start ./my-dist --api-location ./api
157157
@@ -169,7 +169,7 @@ directCommands:
169169
170170
2. In a separate terminal, run the SWA CLI with the `--api-location` flag and the URI of the local API server, in the following format:
171171
172-
```bash
172+
```azstatic-cli
173173
swa start ./my-dist --api-location http://localhost:7071
174174
```
175175
syntax: >-
@@ -270,13 +270,13 @@ directCommands:
270270
271271
- If you are using the [Azure CLI](https://aka.ms/azcli), you can get the deployment token of your project using the following command:
272272
273-
```bash
273+
```azstatic-cli
274274
az staticwebapp secrets list --name <APPLICATION_NAME> --query "properties.apiKey"
275275
```
276276
277277
- If you are using the Azure Static Web Apps CLI, you can use the following command:
278278
279-
```bash
279+
```azstatic-cli
280280
swa deploy --print-token
281281
```
282282
@@ -292,7 +292,7 @@ directCommands:
292292
<br><br>
293293
**Option 1:** From build folder you would like to deploy, run the deploy command:
294294
295-
```bash
295+
```azstatic-cli
296296
cd build/
297297
swa deploy
298298
```
@@ -305,7 +305,7 @@ directCommands:
305305
306306
2. Deploy your app:
307307
308-
```bash
308+
```azstatic-cli
309309
swa deploy ./my-dist
310310
```
311311
@@ -329,7 +329,7 @@ directCommands:
329329
330330
1. Deploy your app:
331331
332-
```bash
332+
```azstatic-cli
333333
swa deploy ./my-dist --api-location ./api
334334
```
335335
@@ -339,13 +339,13 @@ directCommands:
339339
340340
1. Build your Blazor app in **Release** mode:
341341
342-
```bash
342+
```azstatic-cli
343343
dotnet publish -c Release -o bin/publish
344344
```
345345
346346
2. From the root of your project, run the `deploy` command:
347347
348-
```bash
348+
```azstatic-cli
349349
swa deploy ./bin/publish/wwwroot --api-location ./Api
350350
```
351351
@@ -379,13 +379,13 @@ directCommands:
379379
380380
2. Deploy your app:
381381
382-
```bash
382+
```azstatic-cli
383383
swa deploy
384384
```
385385
386386
If you have multiple configuration entries, you can provide the entry ID to specify which one to use:
387387
388-
```bash
388+
```azstatic-cli
389389
swa deploy my-otherapp
390390
```
391391

0 commit comments

Comments
 (0)