Windows Terminal with support for CMD, PowerShell, WSL and SSH.
Syntax WT [options] [command ; ] Commands and Parameters Create a new tab: new-tab, nt --profile, -p profile-name, --startingDirectory, -d starting-directory, commandline, --title TitleText Split pane: split-pane, sp -H, --horizontal, -V, --vertical, --profile, -p profile-name, --startingDirectory, -d starting-directory, commandline, --title TitleText Focus on a tab: focus-tab, ft --target, -t tab-index If several tabs or panes are being opened, the commands above may be repeated, separate the options for each tab with ';' Options --help, -h, -?, /? Display help. --maximized, -M Launch the terminal maximized. --fullscreen, -F Launch the terminal Full screen.
The first stable release of WIndows Terminal was v1.2.2381.0 / 2020-August-26
--profile, -p will always open a new window. Windows Terminal is not yet capable of opening new tabs or panes in an existing instance.
The keyboard shortcut Ctrl+Shift+P will open a command palette listing available commands. Ctrl+Tab and Ctrl+Shift+Tab will navigate between tabs. This is enabled by default with "useTabSwitcher": true (global setting).
By default, PowerShell (unlike CMD), will always wait for Windows Store applications (like WT.exe) to close before returning to the prompt. To avoid this delay, use Start-Process to run WT.exe.
Windows Terminal uses the semicolon character ; as a delimiter for separating commands in the wt command line.
Unfortunately, PowerShell also uses ; as a command separator.
To work around this, you can run Start-Process WT and wrap all the wt parameters in single quotes (') so that everything is passed to wt unchanged.
Open a new terminal instance from cmd, use the default profile and specify the starting directory for the console, as H:
WT -d h:\
Open a new terminal instance from cmd, using your custom "cmd" profile settings:
WT -p cmd
Open a new terminal instance, using the profile named "Ubuntu-18.04" (Substitute "Ubuntu-18.04" with the name of any terminal profile that you have installed.)
WT -p "Ubuntu-18.04"
Open a new terminal instance with multiple tabs:
WT ; ;
Open a new terminal instance with multiple tabs: a Command Prompt profile and a PowerShell profile:
WT -p "Command Prompt" ; new-tab -p "Windows PowerShell"
Open a new terminal instance with one tab containing three panes running a Command Prompt profile, a PowerShell profile, and your default profile running a WSL command line:
WT -p "Command Prompt" ; split-pane -p "Windows PowerShell" ; split-pane -H wsl.exe
The new-tab and split-pane commands can be sequenced to get multiple tabs, each with split panes. To open a new terminal instance with two tabs, each with two panes running a Command Prompt and a WSL command line, with each tab in a different directory:
WT -p "Command Prompt" ; split-pane -V wsl.exe ; new-tab -d c:\ ; split-pane -H -d c:\ wsl.exe
From a PowerShell prompt, open Windows Terminal with CMD, PowerShell and WSL:
PS C:\> start WT 'new-tab "cmd" ; split-pane -p "Windows PowerShell" ; split-pane -H wsl.exe'
"If you want to go fast, go alone, If you want to go far, go together"~ African proverb
COLOR - Change colors of the CMD window.
ANSI colors - Use ANSI colors in the terminal.
CMD - Start a new CMD shell.
Introduction + Windows Terminal DevBlog - Microsoft.com
Github source.