A command-line launcher is a handle tool which allows one to open WebStorm using the command-line. It can easily be created by using the menus
Tools > Create Command-line Launcher...
After selecting the option, you will be presented with the "Create Launcher Script" prompt for a location and name of the command-line launcher. This location should be within $PATH
so that it can be invoked in the command prompt / terminal.
The default value is /usr/local/bin/webstorm
where /usr/local/bin
is the path the launcher will be added and webstorm
is the name of the file. The name of the file will also be used as the command to invoke and launch WebStorm, it can change it, but for this example we will assume it is the default value of "webstorm"
After this is done, you can open a terminal or command prompt and user the "webstorm" command to launch WebStorm with a specific directory. In the example below, WebStorm will be opened with the directory ~/Workspace/my-project
at the root of the Project.
> webstorm ~/Workspace/my-project
Tip: Use webstorm .
to open the current directory.