Using the Subl Command Line Tool | Generated by AI

Home 2025.10

Using the subl Command in Sublime Text

Great news—your subl CLI is already installed and working (as shown by the --help output)! This is Sublime Text build 4200 (a recent version), and subl is the official command-line interface for opening files, directories, and more. It’s super versatile for developers and power users.

I’ll break it down with practical examples. Run these from any directory in your terminal. The core syntax is:

subl [arguments] [files or directories]

1. Basic Usage: Open Files or Directories

2. Common Arguments (From the Help)

Here are the most useful flags with examples. Combine them as needed (e.g., subl -n file.txt).

3. Tips for Everyday Use

This covers 90% of what you’ll need! Start with subl . in a project folder and experiment. If you have a specific workflow or error, share more details for tailored advice.


Back

x-ai/grok-4-fast

Donate