{"id":6361,"date":"2020-12-17T12:38:43","date_gmt":"2020-12-17T20:38:43","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/commandline\/?p=6361"},"modified":"2020-12-17T12:38:43","modified_gmt":"2020-12-17T20:38:43","slug":"getting-started-with-windows-terminal","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/commandline\/getting-started-with-windows-terminal\/","title":{"rendered":"Getting Started with Windows Terminal"},"content":{"rendered":"<h2>Installation<\/h2>\n<p>Windows Terminal is available in two different builds: <a href=\"https:\/\/www.microsoft.com\/p\/windows-terminal\/9n0dx20hk701\" rel=\"noopener noreferrer\" target=\"_blank\">Windows Terminal<\/a> and <a href=\"https:\/\/www.microsoft.com\/p\/windows-terminal-preview\/9n8g5rfz9xk3\" rel=\"noopener noreferrer\" target=\"_blank\">Windows Terminal Preview<\/a>. Both builds are available for download from the Microsoft Store and from the <a href=\"https:\/\/github.com\/microsoft\/terminal\/releases\" rel=\"noopener noreferrer\" target=\"_blank\">GitHub releases page<\/a>.<\/p>\n<h3>Requirements<\/h3>\n<p>In order to run either Windows Terminal build, your machine must be on Windows 10 1903 or later.<\/p>\n<h3>Windows Terminal Preview<\/h3>\n<p>Windows Terminal Preview is the build where new features arrive first. This build is intended for those who like to see the latest features as soon as they are released. This build has a monthly release cadence with the newest features each month.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/06\/terminal-preview-image-e1592500021421.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/06\/terminal-preview-image-e1592500021421.png\" alt=\"Image terminal preview image\" width=\"300\" height=\"300\" class=\"alignnone size-full wp-image-5880\" \/><\/a><\/p>\n<h3>Windows Terminal<\/h3>\n<p>Windows Terminal is the main build for the product. Features that arrive in Windows Terminal Preview appear in Windows Terminal after a month of being in production. This allows for extensive bug testing and stabilization of new features. This build is intended for those who want to receive features after they have been introduced and tested by the Preview community.<\/p>\n<h2>First launch<\/h2>\n<p>After installing the terminal, you can launch the app and get started right away with the command line. By default, the terminal includes Windows PowerShell, Command Prompt, and Azure Cloud Shell profiles inside the dropdown. If you have Windows Subsystem for Linux (WSL) distributions installed on your machine, they should also dynamically populate as profiles when you first launch the terminal.<\/p>\n<h2>Profiles<\/h2>\n<p>Profiles act as different command line environments that you can configure inside the terminal. By default, each profile uses a different command line executable, however you can create as many profiles as you&#8217;d like using the same executable. Each profile can have its own customizations to help you differentiate between them and add your own flair to each one.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/12\/terminal-dropdown.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/12\/terminal-dropdown.png\" alt=\"Image terminal dropdown\" width=\"405\" height=\"408\" class=\"alignnone size-full wp-image-6362\" srcset=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/12\/terminal-dropdown.png 405w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/12\/terminal-dropdown-298x300.png 298w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/12\/terminal-dropdown-150x150.png 150w\" sizes=\"(max-width: 405px) 100vw, 405px\" \/><\/a><\/p>\n<h3>Default profile<\/h3>\n<p>Upon first launch of Windows Terminal, the default profile is set to Windows PowerShell. The default profile is the profile that always opens when you launch the terminal and it is the profile that will open when clicking the new tab button. You can change the default profile by setting <code>\"defaultProfile\"<\/code> to the name of your preferred profile in your settings.json file.<\/p>\n<pre><code>\"defaultProfile\": \"PowerShell\"\n<\/code><\/pre>\n<h3>Adding a new profile<\/h3>\n<p>New profiles can be added dynamically by the terminal or by hand. Windows Terminal will create profiles for PowerShell and WSL distributions automatically. These profiles will have a <code>\"source\"<\/code> property that tells the terminal where it can find the proper executable.<\/p>\n<p>If you&#8217;d like to create a new profile by hand, you just need to <a href=\"https:\/\/guidgenerator.com\/online-guid-generator.aspx\" rel=\"noopener noreferrer\" target=\"_blank\">generate a new <code>\"guid\"<\/code><\/a>, provide a <code>\"name\"<\/code>, and provide the executable for the <code>\"commandline\"<\/code> property.<\/p>\n<p>\ud83d\udc49 <strong>Note:<\/strong> You will not be able to copy the <code>\"source\"<\/code> property from a dynamically generated profile. The terminal will just ignore this profile. You will have to replace <code>\"source\"<\/code> with <code>\"commandline\"<\/code> and provide the executable in order to duplicate a dynamically generated profile.<\/p>\n<h2>Settings.json structure<\/h2>\n<p>There are two settings files included in Windows Terminal. One is defaults.json, which can be opened by holding the <kbd>Alt<\/kbd> key and clicking the Settings button in the dropdown. This is an unchangeable file that includes all of the default settings that come with the terminal. The second file is settings.json, which is where you can apply all of your custom settings. This can be accessed by clicking the Settings button in the dropdown menu.<\/p>\n<p>The settings.json file is split into four main sections. The first is the <a href=\"https:\/\/docs.microsoft.com\/windows\/terminal\/customize-settings\/global-settings\" rel=\"noopener noreferrer\" target=\"_blank\">global settings<\/a> object, which lives at the top of the JSON file inside the first <code>{<\/code>. Settings applied here will affect the entire application.<\/p>\n<p>Looking down the file, the next main section is the <code>\"profiles\"<\/code> object. The <code>\"profiles\"<\/code> object is split into two sections: <code>\"defaults\"<\/code> and <code>\"list\"<\/code>. You can apply <a href=\"https:\/\/docs.microsoft.com\/windows\/terminal\/customize-settings\/profile-settings\" rel=\"noopener noreferrer\" target=\"_blank\">profile settings<\/a> to the <code>\"defaults\"<\/code> object and these will apply to all profiles in your <code>\"list\"<\/code>. The <code>\"list\"<\/code> contains each profile object that represents the profiles described above and these are the items that appear in your terminal&#8217;s dropdown menu. Settings applied to individual profiles in the <code>\"list\"<\/code> will override settings applied in the <code>\"defaults\"<\/code> section.<\/p>\n<p>Further down in the file is the <code>\"schemes\"<\/code> array. This is where custom <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/terminal\/customize-settings\/color-schemes\" rel=\"noopener noreferrer\" target=\"_blank\">color schemes<\/a> can be placed. A great tool to help you generate your own color schemes is <a href=\"http:\/\/terminal.sexy\/\" rel=\"noopener noreferrer\" target=\"_blank\">terminal.sexy<\/a>.<\/p>\n<p>Lastly, at the bottom of the file, lives the <code>\"actions\"<\/code> array. Objects listed here add <a href=\"https:\/\/docs.microsoft.com\/windows\/terminal\/customize-settings\/actions\" rel=\"noopener noreferrer\" target=\"_blank\">actions<\/a> to your terminal, which can be invoked by the keyboard and\/or found inside the <a href=\"https:\/\/docs.microsoft.com\/windows\/terminal\/command-palette\" rel=\"noopener noreferrer\" target=\"_blank\">command palette<\/a>.<\/p>\n<h2>Basic customizations<\/h2>\n<p>Here are some basic settings to get you started with customizing your terminal.<\/p>\n<h3>Background image<\/h3>\n<p>One of our most popular settings is the custom background image. This is a <em>profile<\/em> setting, so it can either be placed inside the <code>\"defaults\"<\/code> object inside the <code>\"profiles\"<\/code> object to apply to all profiles or inside a specific profile object.<\/p>\n<pre><code>\"backgroundImage\": \"C:\\Users\\admin\\background.png\"\n<\/code><\/pre>\n<p>The <code>\"backgroundImage\"<\/code> setting accepts the file location of the image you would like to use as your profile background. Accepted file types include .jpg, .png, .bmp, .tiff, .ico, and .gif.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/12\/snowy-terminal.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/12\/snowy-terminal.png\" alt=\"Image snowy terminal\" width=\"1224\" height=\"714\" class=\"alignnone size-full wp-image-6363\" srcset=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/12\/snowy-terminal.png 1224w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/12\/snowy-terminal-300x175.png 300w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/12\/snowy-terminal-1024x597.png 1024w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/12\/snowy-terminal-768x448.png 768w\" sizes=\"(max-width: 1224px) 100vw, 1224px\" \/><\/a><\/p>\n<h3>Color scheme<\/h3>\n<p>The list of available color schemes can be found on our <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/terminal\/customize-settings\/color-schemes\" rel=\"noopener noreferrer\" target=\"_blank\">docs site<\/a>. Color schemes are applied at the <em>profile<\/em> level, so you can place the setting inside <code>\"defaults\"<\/code> or in a specific profile object.<\/p>\n<pre><code>\"colorScheme\": \"COLOR SCHEME NAME\"\n<\/code><\/pre>\n<p>This setting accepts the name of the color scheme. You can also create your own color scheme and place it inside the <code>\"schemes\"<\/code> list, then set the profile setting to the name of that new scheme to apply it.<\/p>\n<h3>Font face<\/h3>\n<p>By default, Windows Terminal uses Cascadia Mono as its font face. The font face is a <em>profile<\/em> level setting. You can change your font face by setting <code>\"fontFace\"<\/code> to the name of the font you would like to use.<\/p>\n<pre><code>\"fontFace\": \"FONT NAME\"`\n<\/code><\/pre>\n<p>\ud83d\udca1 <strong>Tip:<\/strong> Windows Terminal also ships with the Cascadia Code font face, which includes programming ligatures (see gif below). If you are using Powerline, Cascadia Code also comes in a PL version which can be downloaded from <a href=\"https:\/\/github.com\/microsoft\/cascadia-code\/releases\" rel=\"noopener noreferrer\" target=\"_blank\">GitHub<\/a>.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2019\/09\/programming-ligatures.gif\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2019\/09\/programming-ligatures.gif\" alt=\"\" width=\"1206\" height=\"143\" class=\"alignnone size-full wp-image-5062\" \/><\/a><\/p>\n<h2>Great resources<\/h2>\n<p>\ud83c\udf1f <a href=\"https:\/\/docs.microsoft.com\/windows\/terminal\/\" rel=\"noopener noreferrer\" target=\"_blank\">Windows Terminal documentation<\/a><\/p>\n<p>\ud83c\udf1f <a href=\"https:\/\/www.hanselman.com\/blog\/how-to-make-a-pretty-prompt-in-windows-terminal-with-powerline-nerd-fonts-cascadia-code-wsl-and-ohmyposh\" rel=\"noopener noreferrer\" target=\"_blank\">How to make a pretty prompt in Windows Terminal with Powerline, Nerd Fonts, Cascadia Code, WSL, and oh-my-posh by Scott Hanselman<\/a><\/p>\n<p>\ud83c\udf1f <a href=\"https:\/\/www.youtube.com\/watch?v=lu__oGZVT98\" rel=\"noopener noreferrer\" target=\"_blank\">How to set up an awesome prompt with your Git Branch, Windows Terminal, PowerShell, + Cascadia Code! by Scott Hanselman<\/a><\/p>\n<p>\ud83c\udf1f <a href=\"https:\/\/www.youtube.com\/watch?v=NfgAOxfv0QU\" rel=\"noopener noreferrer\" target=\"_blank\">Windows Terminal Feature PREVIEW &#8211; Customize your keybindings, color tabs, split panes, and MORE! by Scott Hanselman<\/a><\/p>\n<p>\ud83c\udf1f <a href=\"https:\/\/terminalsplash.com\/\" rel=\"noopener noreferrer\" target=\"_blank\">>_TerminalSplash &#8211; Windows Terminal themes<\/a><\/p>\n<h2>Cheers<\/h2>\n<p>We hope this post helped you get set up with Windows Terminal! If you have any questions, feel free to reach out to Kayla (<a href=\"https:\/\/twitter.com\/cinnamon_msft\" rel=\"noopener noreferrer\" target=\"_blank\">@cinnamon_msft<\/a>) on Twitter. If you have any feature requests or find any bugs, you can file an issue on <a href=\"https:\/\/github.com\/microsoft\/terminal\" rel=\"noopener noreferrer\" target=\"_blank\">GitHub<\/a>. Our next release is planned for January, so we will see you then!<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/08\/08-2020-signatures.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/08\/08-2020-signatures.png\" alt=\"Image 08 2020 signatures\" width=\"2006\" height=\"259\" class=\"alignnone size-full wp-image-6075\" srcset=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/08\/08-2020-signatures.png 2006w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/08\/08-2020-signatures-300x39.png 300w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/08\/08-2020-signatures-1024x132.png 1024w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/08\/08-2020-signatures-768x99.png 768w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/08\/08-2020-signatures-1536x198.png 1536w\" sizes=\"(max-width: 2006px) 100vw, 2006px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installation Windows Terminal is available in two different builds: Windows Terminal and Windows Terminal Preview. Both builds are available for download from the Microsoft Store and from the GitHub releases page. Requirements In order to run either Windows Terminal build, your machine must be on Windows 10 1903 or later. Windows Terminal Preview Windows Terminal [&hellip;]<\/p>\n","protected":false},"author":3539,"featured_media":6363,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[10,1,2,4,1535,5,6,8,9,782],"tags":[27,29,31,48,59,69,70,72],"class_list":["post-6361","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cmd","category-commandline","category-command-line","category-ms-dos","category-open-source","category-windows-10","category-windows-console","category-windows-store","category-bash-on-ubuntu-on-windows","category-windows-terminal","tag-cmd","tag-command-line","tag-console","tag-powershell","tag-terminal","tag-windows","tag-windows-10","tag-wsl"],"acf":[],"blog_post_summary":"<p>Installation Windows Terminal is available in two different builds: Windows Terminal and Windows Terminal Preview. Both builds are available for download from the Microsoft Store and from the GitHub releases page. Requirements In order to run either Windows Terminal build, your machine must be on Windows 10 1903 or later. Windows Terminal Preview Windows Terminal [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/posts\/6361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/users\/3539"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/comments?post=6361"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/posts\/6361\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/media\/6363"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/media?parent=6361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/categories?post=6361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/tags?post=6361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}