PyCharm 2026.3 Help

Open files from the command line

Open an arbitrary file or folder in PyCharm from the command line, optionally specifying where to place the caret after opening.

You can find the executable for running PyCharm 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
pycharm64.exe [--line <number>] [--column <number>] <path>
Examples

Open a project:

pycharm64.exe C:\MyProject

Open a specific file on line number 42:

pycharm64.exe --line 42 C:\MyProject\scripts\numbers.js

By default, PyCharm does not provide a command-line launcher. For more information about creating a launcher script for PyCharm, refer to Command-line interface.

Syntax
pycharm [--line <number>] [--column <number>] <path>
Examples

Open a project:

pycharm ~/MyProject

Open a specific file on line number 42:

pycharm --line 42 ~/MyProject/scripts/numbers.js

You can find the script for running PyCharm 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
pycharm.sh [--line <number>] [--column <number>] <number> <path>
Examples

Open a project:

pycharm.sh ~/MyProject

Open a specific file on line number 42:

pycharm.sh --line 42 ~/MyProject/scripts/numbers.js
06 November 2026