Basil Bourque
Basil Bourque

Reputation: 338516

Access IntelliJ IDEA via the command-line on macOS

The JetBrains company provides the Toolbox App as a way to automatically install, update, and launch IntelliJ IDEA 2020.3 and other such products. This generally works well for me.

Today I tried to use the command-line interface to IntelliJ IDEA to use their new LightEdit feature. Their support page says on the command line I can do this:

idea whatever.java

…to open the LightEdit code editor.

But when I execute that line in Terminal.app, I get this error:

zsh: command not found: idea

➥ What do I need to do on macOS to access IntelliJ IDEA via the command-line?

If found this page, Installing IntelliJ IDEA. It mentions “IntelliJ IDEA command-line launchers” for standalone installation on Windows OS but says nothing about doing so via Toolbox App nor macOS.

Upvotes: 4

Views: 7148

Answers (1)

Andrey
Andrey

Reputation: 16381

See the Shell scripts generated by the Toolbox App section:

Generate shell scripts Open the Toolbox App and click The screw nut icon in the top right corner.

  1. In the Toolbox App Settings, enable Generate shell scripts.

  2. If necessary, change the shell scripts location.

enter image description here

See also Open a file in the LightEdit mode .

Upvotes: 8

Related Questions