Skip to main content
The openidea command opens folders and files in OpenIDEA from a terminal. It starts the app if it isn’t running, hands over the request and returns.

Install the command

The action is also available in Find Action. Open a new terminal afterwards.
Move OpenIDEA to Applications first: the command is a link to the launcher inside the app bundle. It goes into ~/.local/bin when that directory is on PATH; otherwise into /usr/local/bin, which may ask for an administrator password.
Uninstall ‘openidea’ Command in the same menu removes only OpenIDEA’s own launcher (and on Windows its PATH entry). A command of the same name that belongs to another application is never overwritten or removed. After moving a portable copy or an AppImage, install the command again.

Usage

  • Folders open as projects. Files open in the window of the project that contains them, or on their own when no open project does.
  • Lines and columns start at 1. --line and --column apply to the next path.
  • path:line and path:line:column are read as a position only when no file with that exact name exists.
  • Relative paths resolve against the current directory.
  • Use -- before a file name that starts with -, or before a file named diff.

Options

Put the caret on line n of the next file.
Put the caret in column n of that line.
Print the usage.
Print the version, for example OpenIDEA 0.1.40.

Exit status

The command exits with 0 once OpenIDEA has accepted the request, and with 1 on an unknown option, a missing file, or when the app can’t be reached or doesn’t start within 30 seconds. Errors are printed as openidea: <message>. The GUI executable and the operating system’s file associations keep working without the command.

Other command-line tools

  • openidea-server runs OpenIDEA’s backend on a remote machine for remote development. See openidea-server.
  • openidea-plugin creates, builds and packages plugins. See the plugin quickstart.