JetBrains Rider 2018.1 Help

Opening Files from Command Line

You can open an arbitrary file, folder, or project for editing in JetBrains Rider from the command line.

  • In the command line, run the following command:
    <JetBrains Rider> path [--line <number>]

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 Working with JetBrains Rider Features from Command Line for details.

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

path

The path to the file or the folder to be opened.

  • If the file or folder belongs to an existing project, this project will be opened.
  • If the file does not belong to any project, a temporary project for this file will be created automatically.
  • If the folder does not belong to any project, a new project will be created inside this folder.
--line <number> (optional) The line number, on which the caret should rest after opening the file.

Examples

Syntax
rider64.exe path --line <number>
Example
rider64.exe C:\MyProject\scripts\numbers.js --line 3
Syntax
rider path --line <number>
Example
rider ~/MyProject/scripts/numbers.js --line 3
Last modified: 19 April 2018