How to start IDE from the command line
Below are 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
For 2024.2+ IDE versions:
Click Windows start menu, type cmd.exe to find and open cmd app. To get additional debug logging for troubleshooting launcher issues, run command below first to set debug environment variables before starting the IDE:
set IJ_LAUNCHER_DEBUG=true
Run commands below to start IDE (replacing the IDE installation path, IDE name, and version number with your installed ones):
cd "C:\Program Files\JetBrains\IntelliJ IDEA 2024.2\bin"
.\idea64.exe
If you are using a different IDE, you need to use the corresponding command .\<IDE name>64.exe such as .\pycharm64.exe, .\goland64.exe, .\datagrip64.exe or another IDE file name to start it.
If you use Toolbox (see this comment on how to find IDE path quickly):
cd "%LOCALAPPDATA%\Programs\IntelliJ IDEA Ultimate\bin"
.\idea64.exe
For old versions:
Click Windows start menu, type cmd.exe to find and open cmd app, and run commands below to start IDE (replacing the IDE installation path, IDE name, and version number with your installed ones):
cd "C:\Program Files\JetBrains\IntelliJ IDEA 2023.3\bin"
.\idea.bat
If you are using a different IDE, you need to use the corresponding command .\<IDE name>.bat such as .\pycharm.bat, .\goland.bat, .\datagrip.bat or another IDE file name to start it.
If you use Toolbox (see this comment on how to find IDE path quickly):
cd "%LOCALAPPDATA%\Programs\IntelliJ IDEA Ultimate\bin"
.\idea.bat
macOS
Open the Terminal app. To get additional debug logging for troubleshooting launcher issues, run command below first to set debug environment variables before starting the IDE:
export IJ_LAUNCHER_DEBUG=true
export IDEA_LAUNCHER_DEBUG=true
Run commands below to start IDE (replacing the IDE installation path and IDE name to your installed ones):
cd /Applications
./IntelliJ\ IDEA.app/Contents/MacOS/idea
If you are using a different IDE, you need to use the corresponding command ./<IDE app name>.app/Contents/MacOS/<IDE name> like ./GoLand.app/Contents/MacOS/goland, ./PyCharm.app/Contents/MacOS/pycharm to start it. Also, make sure you have added \ before each space character in path for escaping.
If you use Toolbox (see this comment on how to quickly find IDE path):
cd ~/Applications
./IntelliJ\ IDEA\ Ultimate\ 2023.3.app/Contents/MacOS/idea
Linux
For 2024.2+ IDE versions:
Open a terminal app. To get additional debug logging for troubleshooting launcher issues, run command below first to set debug environment variables before starting the IDE:
export IJ_LAUNCHER_DEBUG=true
Run commands below to start IDE (replacing the installation path, IDE name and version number with your installed ones):
cd '~/Software/IntelliJ IDEA 2024.2/bin'
./idea
If you are using a different IDE, you need to use the corresponding command ./<IDE name> such as ./pycharm, ./goland, ./datagrip or another IDE file name to start it.
If you use Toolbox (see this comment on how to quickly find IDE path):
cd ~/.local/share/JetBrains/Toolbox/apps/intellij-idea-ultimate/bin
./idea
For old versions:
Open a terminal app. Run commands below to start IDE (replacing the installation path, IDE name and version number to your installed ones):
cd '~/Software/IntelliJ IDEA 2023.3/bin'
./idea.sh
If you are using a different IDE, you need to use the corresponding command ./<IDE name>.sh such as ./pycharm.sh, ./goland.sh, ./datagrip.sh or another IDE file name to start it.
If you use Toolbox (see this comment on how to quickly find IDE path):
cd ~/.local/share/JetBrains/Toolbox/apps/intellij-idea-ultimate/bin
./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.
This is outdated. The directory suggested no longer exists.
```
$ ls ~/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-2/
ls: cannot access '/home/ed/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-2/': No such file or directory
$ ls ~/.local/share/JetBrains/Toolbox/apps/IDEA-U/
ls: cannot access '/home/ed/.local/share/JetBrains/Toolbox/apps/IDEA-U/': No such file or directory
$ ls ~/.local/share/JetBrains/Toolbox/apps
aqua dataspell goland intellij-idea-ultimate-2 pycharm-professional space-desktop webstorm
clion Fleet intellij-idea-ultimate intellij-idea-ultimate-2.vmoptions rustrover Toolbox
```
Toolbox 2.0 versions changed the locations of the installed apps on Windows and macOS, but on Linux it should remain the same, see https://blog.jetbrains.com/toolbox-app/2023/08/toolbox-app-2-0-overhauls-installations-and-updates/#install-and-update-reworked-from-the-ground-up.
The app folder names changed as well, for example:
IntelliJ IDEA Ultimate
WebStorm
RubyMine
RustRover
I am getting the same error and after running the .bat file I am getting following output
CompileCommand: exclude com/intellij/openapi/vfs/impl/FilePartNodeRoot.trieDescend bool exclude = true
Error: Unable to initialize main class com.intellij.idea.Main
Caused by: java.lang.NoClassDefFoundError: kotlin/KotlinNothingValueException
@S29268 Please try the suggestion here to see if it helps: https://intellij-support.jetbrains.com/hc/en-us/articles/360007568559-Start-Failed-Internal-error-recovering-IDE-to-the-working-state-after-the-critical-startup-error
Is there an easy way to get a shell script to start IntelliJ IDEA from a WSL2 (Ubuntu) Terminal. It should start the IntelliJ IDEA installed in the Windows Host.
Such an Shell Script is default for VS Code (just run
code example.xml
in an WSL2-Ubuntu-Terminal and the VS Code installed on windows opens the requested file) but I'm not able to do the same for IntelliJ IDEA yet. Is there any way to do the same?