Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create Command-line Launcher Intellij not found

I would like to use

idea pom.xml

from command line to launch a simple Maven project, and so I think I need to configure using "Create Command-line Launcher" the script path, but I cannot find it in Intellij Ultimate, if I search it in File / Settings I can find it, but then if I add a keyboard shortcut it doesn't work.

Could someone help me?

Thank you

like image 321
Aidoru Avatar asked Sep 21 '17 18:09

Aidoru


People also ask

How do I get IntelliJ command line?

From the main menu, select View | Tool Windows | Terminal or press Alt+F12 .

How do I create a command line project in IntelliJ?

Open IntelliJ IDEA, go to Tools->Create Command-Line Launcher... and optionally adjust the location and name of the script that will start IntelliJ IDEA. Voilà! Now from your command line, you can type: idea . to open the project in the current directory.

How do I add command line arguments in IntelliJ?

Add program argumentsFrom the main menu, select Run | Edit Configurations or choose Edit Configurations from the run/debug configurations selector on the toolbar. In the Run/Debug Configurations dialog that opens, select a configuration where you want to pass the arguments.

How do I install Jetbrain toolbox?

How It Works. Download and install the JetBrains Toolbox App. Open the app from the control panel. Install any tool you'd like and code with pleasure!


2 Answers

For Mac OS with +2019 Intellij:

  1. You'll need JetBrains ToolBox
  2. Turn on Generate shell scripts (no longer in tools > create command line launcher) enter image description here
  3. Set path to /usr/local/bin/
  4. Delete your old executable in /usr/local/bin/
  5. Quit and re-launch toolbox
like image 129
osuwireless Avatar answered Oct 28 '22 12:10

osuwireless


As I said in the comments of the question.

At least when using Idea Community 2019.1 EAP + Jetbrains Toolbox, even in Linux that option is disabled.

You must access the Jetbrains Toolbox->settings (the gear next to the 'Log in' button), there will be a "Generate shell scripts" option and location to set. Set a location that you can access without sudo, and put that location on your PATH or copy the generated script to a path like /usr/local/bin.

I needed that to be able to use kscript --idea xxxx.kts (putting this here so that the next person googling that finds the answer :) )

like image 34
Tonsic Avatar answered Oct 28 '22 13:10

Tonsic