Open files from the command line
Open an arbitrary file or folder in RustRover from the command line, optionally specifying where to place the caret after opening.
You can find the executable for running RustRover in the installation directory under bin. To use this executable as the command-line launcher, add it to your system PATH
as described in Command-line interface.
- Syntax
- rustrover.exe [--line <number>] [--column <number>] <path ...>
- Examples
Open a project:
rustrover.exe C:\MyProjectOpen a specific file on line number 42:
rustrover.exe --line 42 C:\MyProject\scripts\numbers.js
By default, RustRover does not provide a command-line launcher. For more information about creating a launcher script for RustRover, refer to Command-line interface.
- Syntax
- rustrover --line <number> <path>
- Examples
Open a project:
rustrover ~/MyProjectOpen a specific file on line number 42:
rustrover --line 42 ~/MyProject/scripts/numbers.js
You can find the script for running RustRover in the installation directory under bin. To use this script as the command-line launcher, add it to your system PATH
as described in Command-line interface.
- Syntax
- rustrover.sh --line <number> <path>
- Examples
Open a project:
rustrover.sh ~/MyProjectOpen a specific file on line number 42:
rustrover.sh --line 42 ~/MyProject/scripts/numbers.js