JetBrains Rider 2018.1 Help

Viewing Difference Between Files from Command Line

You can use JetBrains Rider as a command line tool for viewing differences between files.

  • In the command line, run the diff command using the following syntax:
    <JetBrains Rider> diff path1 path2

The selected files will be opened in the Differences Viewer for Files.

The command options are as follows:

Option Description
<JetBrains Rider>

The platform-specific JetBrains Rider launcher.

On macOS and Linux, it is recommended to use the command-line launcher created during the JetBrains Rider installation, or create one manually by selecting Tools | Create Command-line Launcher on the JetBrains Rider main menu. Refer to Besides working from within JetBrains Rider, you can perform the following actions from the command line: for details.

On Windows, it is recommended to add the path to the JetBrains Rider executable to the Path environment variable.

path1 The full path to the local copy of the file.
path2 The full path to the repository version copy of the file.


rider64.exe diff path1 path2
rider64.exe diff C:\MyProject\ C:\MyProject\
rider diff path1 path2
rider diff ~/MyProject/ ~/MyProject/
Last modified: 20 August 2018