Sublime Text "subl: command not found" Fix

Share
Fixed in latest version Windows, macOS, Linux Updated November 14, 2026How we research

Quick answer

The subl command only works once Sublime Text is on your PATH: add the app folder on Windows and macOS, or symlink the binary on Linux tarball installs.

Most likely fix: Windows

How to fix it

Try these in order — the most common fix is first.

  1. 1. Windows

    1. Add C:\Program Files\Sublime Text\ (subl.exe lives there) to the Path environment variable via "Edit the system environment variables"
    Did this fix it?
  2. 2. macOS

    1. Zsh: echo 'export PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin:$PATH"' >> ~/.zprofile
    2. Bash: same line into ~/.bash_profile
    3. Open a new terminal
    Did this fix it?
  3. 3. Linux

    1. Package manager installs create /usr/bin/subl automatically
    2. Tarball: sudo ln -s /opt/sublime_text/sublime_text /usr/local/bin/subl (adjust paths)
    Did this fix it?

Symptoms

Running subl in a terminal says command not found or is not recognized.

Why it happens

  • Install folder not in PATH (Windows)
  • macOS app bin folder not in PATH
  • Linux tarball install without a symlink

This guide also covers

  • subl command not found
  • sublime text command line mac
  • subl not recognized windows

Still not working?

If Sublime Text keeps failing, you're not alone. See every Sublime Text problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

The same problem in other apps

All not loading, error messages & connection guides →

Other Sublime Text errors

All 10 Sublime Text errors and fixes →