Working with CLion Features from Command Line
Besides working from within CLion, you can perform the following actions from the command line:
- Opening Files from Command Line
- Viewing Difference Between Files from Command Line
- Merging Files from Command Line
Enable a command-line launcher on Windows
Add the path to the CLion bin folder to the
Path
environment variable (for example, C:\Program Files\JetBrains\CLion\bin). After you configured thePath
environment variable, you can run the CLion commands.
Enable a command-line launcher on Linux and macOS
On macOS and Linux, create the command-line launcher to integrate CLion with your shell. Ensure that the created launcher script is within the search path of your shell so that it can be invoked system-wide.
In the main menu, choose Create Launcher Script dialog, provide the name and the path of the launcher, or accept the suggested values.
. In theOutside of CLion, add the path and the name of the launcher script to your
path
.
To launch CLion from the command line
To launch CLion from the command line, type the
<CLion>
command in the command line and press Enter.<CLion>
is the platform-specific launcher.