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: README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -244,6 +244,8 @@ vscli open /path/to/project # open vscode in the specified directory
244
244
245
245
The default behavior tries to detect whether the project is a [dev container](https://containers.dev/) project. If it is, it will launch the dev container instead - if not it will launch vscode normally.
246
246
247
+
These behaviors apply to local workspaces. Remote SSH workspaces always open as remote folders; `--behavior detect` and `--behavior force-container` are not supported with `--remote-host`.
248
+
247
249
You can change the launch behavior using the `--behavior` flag:
248
250
249
251
```sh
@@ -281,6 +283,7 @@ vscli recent --command cursor # open the selected project with
281
283
vscli recent --behavior force-container # force open the selected project in a dev container
282
284
vscli recent --command cursor --behavior detect # open with cursor and detect if dev container should be used
283
285
vscli recent --config .devcontainer/custom.json # open with a specific dev container config
286
+
vscli recent --remote-host my-ec2 # reopen the selected project on a remembered remote host
284
287
vscli recent -- --disable-gpu # pass additional arguments to the editor
285
288
vscli recent --hide-instructions # hide the keybinding instructions from the UI
286
289
vscli recent --hide-info # hide additional information like strategy, command, args and dev container path
@@ -305,11 +308,12 @@ If you already use VS Code Remote SSH, you can point `vscli` at a remote host al
305
308
306
309
```sh
307
310
vscli open --remote-host my-ec2 /home/ec2-user/app
308
-
vscli open --remote-host my-ec2 --behavior force-container /home/ec2-user/app
309
311
vscli recent --remote-host my-ec2
310
312
```
311
313
312
-
This opens the workspace using a `vscode-remote://ssh-remote+...` folder URI. If the remote folder contains a `.devcontainer` setup, VS Code Dev Containers can reopen it in a container on that remote host.
314
+
This opens the workspace using a `vscode-remote://ssh-remote+...` folder URI and stores the remote host in `recent` history so you can reopen it from the UI later.
315
+
316
+
`vscli` does not manage dev containers on remote SSH hosts. Remote workspaces are opened as SSH folders; if the remote folder contains a `.devcontainer` setup, VS Code Dev Containers may offer to reopen it in a container afterward.
0 commit comments