LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

idea

command-line launcher for IntelliJ IDEA

TLDR

Open project
$ idea [project-directory]
copy
Open file
$ idea [file.java]
copy
Open at line
$ idea --line [42] [file.java]
copy
Compare files
$ idea diff [file1] [file2]
copy
Merge files
$ idea merge [local] [remote] [base] [output]
copy
Wait for IDE (use as $EDITOR)
$ idea --wait [file]
copy
Format files with project code style
$ idea format -r -s [code-style.xml] [src/]
copy
Run inspections headlessly
$ idea inspect [project_dir] [inspection-profile.xml] [out_dir]
copy

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.

SEE ALSO

code(1), webstorm(1), vim(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid