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
25 out of 145 found this helpful
16 comments

'.\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

-2
Avatar
Arseniy Nisnevich

Maomer 2214,

Please check whether you've switched to correct location. There's "idea.bat" file in "bin" directory under the IDE installation path.

0

.\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

-1

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
```

Edited by Caleb Cushing
0

For Windows:

pycharm.bat  is now (February 2021) the executable (from \bin)
which should be launched from Command Prompt.

Edited by Solid Tester
1

I think this needs updates if you are using the Jetbrains ToolBox, my path on Mac OS X was:

~/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app

 

0

cd /Applications

./PhpStorm.app/Contents/MacOS/phpstorm

For PHPStorm without Toolbox.

0

In Linux, this path works for me:

/snap/phpstorm/current/bin/ltedit.sh
0

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 ?

0

Junkbot Exe+jetbrains You can try with 1>/dev/null 2>/dev/null &

0

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.

C:\Program Files\JetBrains\PyCharm 2022.2.1\bin>pycharm.bat
2022-09-13 08:44:20,515 [   3056]   WARN - #c.i.o.a.i.ActionManagerImpl - keymap "Visual Studio" not found PluginDescriptor(name=IDEA CORE, id=com.intellij, descriptorPath=plugin.xml, path=C:\Program Files\JetBrains\PyCharm 2022.2.1\lib, version=222.3739.56, package=com.intellij.feedback, isBundled=true)
2022-09-13 08:44:20,528 [   3069]   WARN - #c.i.o.a.i.ActionManagerImpl - keymap "Eclipse" not found PluginDescriptor(name=IDEA CORE, id=com.intellij, descriptorPath=plugin.xml, path=C:\Program Files\JetBrains\PyCharm 2022.2.1\lib, version=222.3739.56, package=com.intellij.feedback, isBundled=true)
2022-09-13 08:44:20,530 [   3071]   WARN - #c.i.o.a.i.ActionManagerImpl - keymap "NetBeans 6.5" not found PluginDescriptor(name=IDEA CORE, id=com.intellij, descriptorPath=plugin.xml, path=C:\Program Files\JetBrains\PyCharm 2022.2.1\lib, version=222.3739.56, package=com.intellij.feedback, isBundled=true)
2022-09-13 08:44:20,531 [   3072]   WARN - #c.i.o.a.i.ActionManagerImpl - keymap "Visual Studio" not found PluginDescriptor(name=IDEA CORE, id=com.intellij, descriptorPath=plugin.xml, path=C:\Program Files\JetBrains\PyCharm 2022.2.1\lib, version=222.3739.56, package=com.intellij.feedback, isBundled=true)
2022-09-13 08:44:20,619 [   3160]   WARN - #c.i.o.a.i.ActionManagerImpl - keymap "Visual Studio" not found PluginDescriptor(name=HTML Tools, id=HtmlTools, descriptorPath=plugin.xml, path=C:\Program Files\JetBrains\PyCharm 2022.2.1\plugins\htmltools, version=222.3739.56, package=null, isBundled=true)
2022-09-13 08:44:20,635 [   3176]   WARN - #c.i.o.a.i.ActionManagerImpl - keymap "Eclipse" not found PluginDescriptor(name=GitHub, id=org.jetbrains.plugins.github, descriptorPath=plugin.xml, path=C:\Program Files\JetBrains\PyCharm 2022.2.1\plugins\github, version=222.3739.56, package=org.jetbrains.plugins.github, isBundled=true)
2022-09-13 08:44:20,642 [   3183]   WARN - #c.i.o.a.i.ActionManagerImpl - keymap "Eclipse" not found PluginDescriptor(name=Space, id=com.jetbrains.space, moduleName=intellij.space.vcs, descriptorPath=intellij.space.vcs.xml, path=C:\Program Files\JetBrains\PyCharm 2022.2.1\plugins\space, version=222.3739.56, package=com.intellij.space.vcs, isBundled=true)
2022-09-13 08:44:20,645 [   3186]   WARN - #c.i.o.a.i.ActionManagerImpl - keymap "Eclipse" not found PluginDescriptor(name=JavaScript and TypeScript, id=JavaScript, descriptorPath=plugin.xml, path=C:\Program Files\JetBrains\PyCharm 2022.2.1\plugins\JavaScriptLanguage, version=222.3739.56, package=null, isBundled=true)
2022-09-13 08:44:20,646 [   3187]   WARN - #c.i.o.a.i.ActionManagerImpl - keymap "Visual Studio" not found PluginDescriptor(name=JavaScript and TypeScript, id=JavaScript, descriptorPath=plugin.xml, path=C:\Program Files\JetBrains\PyCharm 2022.2.1\plugins\JavaScriptLanguage, version=222.3739.56, package=null, isBundled=true)
2022-09-13 08:44:20,667 [   3208]   WARN - #c.i.o.a.i.ActionManagerImpl - keymap "Eclipse" not found PluginDescriptor(name=Python, id=Pythonid, descriptorPath=plugin.xml, path=C:\Program Files\JetBrains\PyCharm 2022.2.1\plugins\python, version=222.3739.56, package=null, isBundled=true)
2022-09-13 08:44:20,668 [   3209]   WARN - #c.i.o.a.i.ActionManagerImpl - keymap "NetBeans 6.5" not found PluginDescriptor(name=Python, id=Pythonid, descriptorPath=plugin.xml, path=C:\Program Files\JetBrains\PyCharm 2022.2.1\plugins\python, version=222.3739.56, package=null, isBundled=true)
2022-09-13 08:44:20,672 [   3213]   WARN - #c.i.o.a.i.ActionManagerImpl - keymap "Visual Studio" not found PluginDescriptor(name=Python, id=Pythonid, descriptorPath=plugin.xml, path=C:\Program Files\JetBrains\PyCharm 2022.2.1\plugins\python, version=222.3739.56, package=null, isBundled=true)
2022-09-13 08:44:20,673 [   3214]   WARN - #c.i.o.a.i.ActionManagerImpl - keymap "Eclipse" not found PluginDescriptor(name=Python, id=Pythonid, descriptorPath=plugin.xml, path=C:\Program Files\JetBrains\PyCharm 2022.2.1\plugins\python, version=222.3739.56, package=null, isBundled=true)
0

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.

0

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
```

 

0

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

 

Edited by Serge Baranov
0

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

0

Please sign in to leave a comment.

Have more questions?

Submit a request