The Tools | Create Command-line Launcher
is missing in PhpStorm 2019.1 (cf documentation : https://www.jetbrains.com/help/phpstorm/working-with-the-ide-features-from-command-line.html#enable-cmd)
Does anyone know how to do it now ? (I'm on MacOS Mojave)
Thanks :)
From the main menu, select View | Tool Windows | Terminal or press Alt+F12 .
This location should be within $PATH so that it can be invoked in the command prompt / terminal. After this is done, you can open a terminal or command prompt and user the "webstorm" command to launch WebStorm with a specific directory.
To run PhpStorm, find it in the Windows Start menu or use the desktop shortcut. You can also run the launcher batch script or executable in the installation directory under bin. Run the PhpStorm app from the Applications directory, Launchpad, or Spotlight.
Create launcher script For the Linux and macOS users, PhpStorm suggests the ability to use command line to open projects and separate files by specifying the directory or filename: Select the Create a script for opening files and projects from the command line checkbox, and specify the name of the command-line launcher script to be created.
In the main menu, choose . In the Create Launcher Script dialog, provide the name and the path of the launcher, or accept the suggested values. Outside of PhpStorm, add the path and the name of the launcher script to your path.
By default, the Toolbox App puts shell scripts in a directory from the system PATH environment variable, so you can run the name of the script as a command to launch PhpStorm from any working directory. Open the Toolbox App and click the Toolbox App menu icon in the top right corner.
You can use the Toolbox App to run any JetBrains product. In case of a standalone installation, running PhpStorm depends on the operating system: To run PhpStorm, find it in the Windows Start menu or use the desktop shortcut. You can also run the launcher batch script or executable in the installation directory under bin.
The Create Command-line Launcher... action is no longer available when the IDE is installed by Toolbox or Snap (the script hard-codes the installation path which changes with every update). Please see Answer in IDEA-206235:
The change is intentional, as generated launchers contain hard-coded paths and stop working after upgrade.
The recommended solution is using scripts provided by Toolbox (Settings | Generate shell scripts in TB app), which support same options as launchers.
At the moment, TB-generated scripts incorrectly pass arguments to the IDE on macOS, but the team is going to fix this (please follow TBX-3314).
As a workaround, one may remove leading open -a part from the script.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With