Create tab from outside command #1295

Closed
opened 2026-01-30 22:21:31 +00:00 by claunia · 1 comment
Owner

Originally created by @giggio on GitHub (May 24, 2019).

Summary of the new feature/enhancement

The Windows Terminal should support opening tabs from commands that come from outside its GUI. We should be able to run, for example, Terminal --run powershell.exe --cwd c:\myproject from anywhere and a new tab would be added to the Terminal, current working directory would be c:\myproject and powershell.exe would be the shell. If the Terminal was not running, then it would start and create only that tab.

My main use case for this is to use it with the Visual Studio extension Open Command Line. I could then click on any directory on VS and ask it to open that directory on the new Terminal.

Conemu already supports this with -run: https://conemu.github.io/en/ConEmuArgs.html

Originally created by @giggio on GitHub (May 24, 2019). ## Summary of the new feature/enhancement The Windows Terminal should support opening tabs from commands that come from outside its GUI. We should be able to run, for example, `Terminal --run powershell.exe --cwd c:\myproject` from anywhere and a new tab would be added to the Terminal, current working directory would be `c:\myproject` and `powershell.exe` would be the shell. If the Terminal was not running, then it would start and create only that tab. My main use case for this is to use it with the Visual Studio extension [Open Command Line](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.OpenCommandLine). I could then click on any directory on VS and ask it to open that directory on the new Terminal. Conemu already supports this with `-run`: https://conemu.github.io/en/ConEmuArgs.html
Author
Owner

@DHowett-MSFT commented on GitHub (May 24, 2019):

Thanks for the request! This is a duplicate of #607.

@DHowett-MSFT commented on GitHub (May 24, 2019): Thanks for the request! This is a duplicate of #607.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1295