Skip to main content

The CLI for Sublime Text.

# To open the current directory in Sublime Text:
subl .

# To open a file or directory in Sublime Text:
subl <path/to/file_or_folder>

# To open a file and jump to a specific line number:
subl <path/to/file>:<line_number>

# To open a file or directory in the currently open window:
subl -a <path/to/file>

# To open a file or directory in a new window:
subl -n <path/to/file>