subl

From RaySoft

Sublime Text includes a command line tool, subl, to work with files on the command line. This can be used to open files and projects in Sublime Text, as well working as an EDITOR for unix tools, such as git and subversion.[1]

Documentation

Syntax

subl [PARAMETER ...] [FILE|DIRECTORY ...]
subl [PARAMETER ...] -

Parameters

-b, --background
Don't activate the application.
--command COMMAND
Run the given COMMAND.
-s, --stay
Keep the application activated after closing the file.
-w, --wait
Wait for the files to be closed before returning.

Examples

Install a package
subl --command 'advanced_install_package {"packages": "INI"}'

References