Sublime Forum

Open project from command-line?

#1

I can’t find any documentation on command-line options for sublimetext.exe. It would be good to add this to the wiki.

I am trying to create a batch file to open sublimetext and open a specific project specified at the command-line. Can anyone help me out?

Thanks,
Greg Williams

0 Likes

#2

Command line options are documented at sublimetext.com/docs/command-line, which is accessible via the support page.

It’s not presently possible to open a project via the command line, and although this could be worked around with a plugin, it would be fairly involved.

I’ll add it to the todo list.

0 Likes

#3

Yeah, this would be a very handy feature. One other thing that would be good to add as part of this option, or rather in general, would be to switch to the current working directory to the root of the project when opening a project file, since opening a project does not affect the wd currently.

Thanks JPS!

0 Likes

#4

i’d like to add this Open directory as project :smile:

0 Likes