Sublime Text from Command Line

Sublime Text from Command Line

From build 3065 (Release Date: 29 August 2014) onwards Sublime text includes a ligne de commande helper, nameley subl.exe. It is at sublime’s installation folder: copy it in to a folder included in the system path.
Par exemple, in my case I copied it

from C:\Program Files\Sublime Text 3

to C:\Windows\System32

You may then use in your terminal/console subl as a command to open whatever file, such as in your example:

subl file.rb

Or you may as well modify your system PATH variable to include sublime’s instalation folder, but I believe that is much more involved.