idea
command-line launcher for IntelliJ IDEA
TLDR
Open project
$ idea [project-directory]
Open file$ idea [file.java]
Open at line$ idea --line [42] [file.java]
Compare files$ idea diff [file1] [file2]
Merge files$ idea merge [local] [remote] [base] [output]
Wait for IDE (use as $EDITOR)$ idea --wait [file]
Format files with project code style$ idea format -r -s [code-style.xml] [src/]
Run inspections headlessly$ idea inspect [project_dir] [inspection-profile.xml] [out_dir]
SYNOPSIS
idea [options] [files]
DESCRIPTION
idea is the command-line launcher for IntelliJ IDEA. It opens files, projects, and invokes IDE features from the terminal.The tool supports diff, merge, and project navigation. It integrates with git and other tools requiring an editor.
PARAMETERS
FILES
Files or projects to open.--line NUM
Open the file with the cursor at the given line number.--column NUM
Open at a specific column (combine with --line).diff file1 file2
Open the diff viewer comparing two files.merge local remote base output
Open the three-way merge tool.format [options] files
Apply project code-style formatting to one or more files non-interactively.inspect project profile output
Run code inspection on a project headlessly and write the report to output.installPlugins id...
Install plugins by ID from JetBrains Marketplace or a custom repository.--wait
Block until the opened file is closed (useful as $EDITOR).nosplash
Skip the splash screen at startup.dontReopenProjects
Show the welcome screen instead of reopening the previous projects.disableNonBundledPlugins
Launch with only bundled plugins; helpful for troubleshooting.--help
Display help information.
CAVEATS
Requires IntelliJ IDEA installed. Path setup needed. Resource intensive.
HISTORY
idea is the CLI launcher for JetBrains IntelliJ IDEA, a popular Java IDE.
