How to start IDE from the command line
Below are given the examples on how to start IDE from the command line on different OS. You should substitute the product name and version/build number in path according to your installation.
- Windows
- macOS
- Linux
Windows
cd "C:\Program Files\JetBrains\IntelliJ IDEA 2020.1\bin"
.\idea.bat
If you use Toolbox (see this comment on how to find IDE path quickly):
cd "%LOCALAPPDATA%\JetBrains\Toolbox\apps\IDEA-U\ch-2\201.4865.12\bin"
.\<IDE name>.bat
Where <IDE name> is either idea, phpstorm, goland, datagrip or other.
macOS
To get additional debug logging for troubleshooting launcher issues, set the environment variable before starting the IDE:
export IDEA_LAUNCHER_DEBUG=true
cd /Applications
./IntelliJ\ IDEA.app/Contents/MacOS/idea
If you use Toolbox (see this comment on how to quickly find IDE path):
cd /Users/<username>/Library/Application\ Support/JetBrains/Toolbox/apps/IDEA-U/ch-1/201.4865.12
./IntelliJ\ IDEA\ 2020.1.app/Contents/MacOS/idea
Linux
Change directory to “bin” under the IDE installation path and run:
./idea.sh
If you use Toolbox (see this comment on how to quickly find IDE path):
cd ~/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-2/201.4865.12
./idea.sh
Please sign in to leave a comment.
'.\idea.bat' is not recognized as an internal or external command,
operable program or batch file.
what should I do .😫
windows 10-2004
PyCharm Community Edition 2020.1.2 x64
Maomer 2214,
Please check whether you've switched to correct location. There's "idea.bat" file in "bin" directory under the IDE installation path.
.\idea.bat' is not recognized as an internal or external command,
operable program or batch file.
Please help I don't know what to do
This article is inaccurate for PowerShell (with toolbox) please update. This works, at least to get you to the outside directory, then you have to dive into the right versions, which is not static.
```
cd $env:LOCALAPPDATA\JetBrains\Toolbox\apps\IDEA-U
```
For Windows:
pycharm.bat is now (February 2021) the executable (from \bin)
which should be launched from Command Prompt.
I think this needs updates if you are using the Jetbrains ToolBox, my path on Mac OS X was:
For PHPStorm without Toolbox.
In Linux, this path works for me:
I can start webstorm by command line on linux but i didn't find any solution to detach it from the shell even with "&" at the end of the line, is there a way to achieve that ?
Junkbot Exe+jetbrains You can try with 1>/dev/null 2>/dev/null &
I am running PyCharm 2022.2.1 in Win11 and the IDE won't start by double clicking the icon or by running from command line. The following is the output when running from command line. Please advise.
sparker Please try the steps from https://intellij-support.jetbrains.com/hc/en-us/articles/360007568559. If the issue persists, contact support at https://intellij-support.jetbrains.com/hc/requests/new with the thread dumps attached using jstack, see https://intellij-support.jetbrains.com/hc/en-us/articles/206544899 for the instructions.
On Mac:
Without the toolbox, adding an alias such as
alias idea='cd /Applications; ./IntelliJ\ IDEA.app/Contents/MacOS/idea; popd'
to .zshrc or your preferred shell startup script could help, too.