Sublime Text is a powerful and popular text editor known for its speed and simplicity. If you are a developer or programmer, you may want to install it quickly using the winget command in Windows. In this guide, we will walk you through the steps of installing Sublime Text using the Windows Package Manager (winget).

What Is Winget and Why Use It?
The Windows Package Manager or winget is a command-line tool that allows you to manage software installations on Windows. With winget, you can install, upgrade, and configure software directly through the terminal.
- Speed: Faster than downloading manually.
- Automation: Easily script software installations.
- Consistency: Ensures the latest version is installed.
Requirements Before You Install Sublime Text
Before installing Sublime Text, ensure you meet the following requirements:
Most Windows 10 and 11 systems now come with winget pre-installed. To check if you have winget, open Command Prompt or PowerShell and type:
winget --version If you see a version number, you are ready to proceed. If not, download winget from the Microsoft Store.
How to Install Sublime Text with Winget
To begin, open the Command Prompt or PowerShell on your Windows device.
To confirm that Sublime Text is available in the winget repository, type:
winget search sublime You should see Sublime Text listed with its latest version.
To install Sublime Text, run the following command:
winget install SublimeText.SublimeText The installation process will begin automatically.
Once the installation is complete, check if Sublime Text was installed successfully by running:
subl --version If the version number appears, you have successfully installed Sublime Text.
Troubleshooting Common Winget Errors
If you receive an error indicating that winget is not found, make sure you are running the latest version of Windows or manually download it from the Microsoft Store.
- Check your internet connection.
- Run the terminal as an administrator.
- Update winget with:
winget upgrade --all Find the Correct Sublime Text Package With Winget
Always search for the package before you install it. Package identifiers can change, and the search shows the current ones.
winget search "Sublime Text"
winget show SublimeHQ.SublimeText.4 Look at the publisher in the results, and choose the package that is published by Sublime HQ. If the identifier shown on your computer is different, use the one from your search results.
Useful Winget Commands for Sublime Text
# Install
winget install --id SublimeHQ.SublimeText.4 -e
# Update
winget upgrade --id SublimeHQ.SublimeText.4
# Uninstall
winget uninstall --id SublimeHQ.SublimeText.4 First Steps After Installing Sublime Text
- Open Sublime Text from the Start menu, and create a new file.
- Install Package Control, which lets you add plugins, by following the instructions on the official Package Control website.
- Choose a color scheme and font size that are comfortable for long sessions.
- Add useful packages for your language, such as syntax helpers and linters.
- Learn the Command Palette, which you open with
Ctrl+Shift+P.
Helpful Sublime Text Shortcuts
| Action | Shortcut on Windows |
| Go to file | Ctrl+P |
| Go to line | Ctrl+G |
| Select the next matching word | Ctrl+D |
| Add a cursor on each selected line | Ctrl+Shift+L |
| Toggle the sidebar | Ctrl+K, Ctrl+B |
About the Sublime Text License
Sublime Text can be downloaded and evaluated without paying, but continued use requires a license according to the vendor’s terms. Review the current license information on the official website before you use it for work.
Frequently Asked Questions
Is Sublime Text better than Visual Studio Code?
It depends on your preferences. Sublime Text is known for speed and simplicity, while Visual Studio Code offers a larger extension marketplace and built-in features such as a debugger and Git tools. Try both for a few days.
Why Use Winget Instead of Downloading the Installer Manually?
- Speed. One command replaces opening a website, finding the download button, and clicking through the installer.
- Repeatability. You can keep a list of commands and set up a new computer in a few minutes.
- Updates. Winget can upgrade many programs with a single command.
- Trust. The package manifest points to the publisher’s official installer.
Fix Common Winget Problems
| Problem | What to try |
| The winget command is not recognized | Update the App Installer from the Microsoft Store, and open a new terminal window |
| No package found | Run winget search again, and use the exact identifier from the results |
| Source agreement prompt | Read the terms, and accept them if you agree to continue |
| The installer fails | Run the terminal as administrator, and check your internet connection and antivirus |
If the problem continues, install the program manually from the official website. Then use Winget later for updates, if the package is supported.
Install Many Programs at Once With Winget
Winget is most powerful when you set up a new computer. You can keep your favorite programs in a text file, run the commands one after another, and have your tools ready in a few minutes.
winget install --id SublimeHQ.SublimeText.4 -e
winget install --id Git.Git -e
winget install --id Microsoft.VisualStudioCode -e Search for each identifier first, as shown earlier in this article, because names may change. Save the working list in your notes, so that the next setup takes only a few minutes.
Finally, keep the editor itself updated. New releases bring bug fixes and better language support, and the upgrade command makes that a task of only a few seconds.
If you also use Microsoft’s editor, see how to install Visual Studio Code using Winget.
Conclusion
Installing Sublime Text using the winget command is an efficient and quick method for developers who prefer automation over manual downloads. By following the steps outlined in this guide, you can set up Sublime Text on your Windows system in minutes.
