WARNING! This documentation is for an old, unsupported version of Sublime Text. Please check out the current docs.

Command Line

All files passed on the command line will be opened. If Sublime Text is already running, then the files will be opened by the existing instance, rather than a new one being started.

If a file specified on the command line doesn't exist, then a new buffer will be created with the given name.

Files may be opened at a specific line number by appending :<line>, and at a given line and column by appending :<line>:<column>. For example, sublimetext main.c:100:12 will open main.c at line 100, column 12.



Command Line Flags

--dataUse the given path as the data directory, rather than %APPDATA%/Sublime Text. Use this if you want to run Sublime Text from a USB key.
--openglRun in OpenGL mode, rather than Direct3D mode. This can fix up graphics issues on some systems, and often works better if running in a virtual machine. OpenGL mode can also be set by adding the line 'renderer opengl' to Preferences/General Preferences.
--restoreOpen the previous set of files, in addition to any given on the command line. This is implied if 'File/Exit and preserve session' is used.