You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/wsh-reference.mdx
+46-5Lines changed: 46 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -342,19 +342,36 @@ This will connect to a WSL distribution on the local machine. It will use the de
342
342
343
343
## web
344
344
345
-
You can search for a given url using:
345
+
The `web`command opens URLs in a web block within Wave Terminal.
346
346
347
347
```sh
348
-
wsh web open [url]
348
+
wsh web open [url] [-m] [-r blockid]
349
349
```
350
350
351
-
Alternatively, you can search with the configured search engine using:
351
+
You can open a specific URL or perform a search using the configured search engine.
352
+
353
+
Flags:
354
+
355
+
- `-m, --magnified` - open the web block in magnified mode
356
+
- `-r, --replace <blockid>` - replace an existing block instead of creating a new one
357
+
358
+
Examples:
352
359
353
360
```sh
354
-
wsh web open [search-query]
361
+
# Open a URL
362
+
wsh web open https://waveterm.dev
363
+
364
+
# Search with the configured search engine
365
+
wsh web open "wave terminal documentation"
366
+
367
+
# Open in magnified mode
368
+
wsh web open -m https://github.com
369
+
370
+
# Replace an existing block
371
+
wsh web open -r 2 https://example.com
355
372
```
356
373
357
-
Both of these commands will open a new web block with the desired page.
374
+
The commandwill open a new web block with the desired page, or replace an existing block if the `-r` flag is used. Note that `--replace` and `--magnified` cannot be used together.
Open the secrets management interface in a new block. This provides a graphical interface for viewing and managing all your secrets.
1005
+
1006
+
Flags:
1007
+
1008
+
- `-m, --magnified` - open the secrets UI in magnified mode
1009
+
1010
+
Examples:
1011
+
1012
+
```sh
1013
+
# Open the secrets UI
1014
+
wsh secret ui
1015
+
1016
+
# Open the secrets UI in magnified mode
1017
+
wsh secret ui -m
1018
+
```
1019
+
1020
+
The secrets UI provides a convenient visual way to browse, add, edit, and delete secrets without needing to use the command-line interface.
1021
+
981
1022
:::tip
982
1023
Use secrets in your scripts to avoid hardcoding sensitive values. Secrets work across remote machines - store an API key locally with `wsh secret set`, then access it from any SSH or WSL connection with `wsh secret get`. The secret is securely retrieved from your local machine without needing to duplicate it on remote systems.
0 commit comments