PhpStorm 2025.2 Help

Open files from the command line

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

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

Open a project:

phpstorm64.exe C:\MyProject

Open a specific file on line number 42:

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

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

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

Open a project:

phpstorm ~/MyProject

Open a specific file on line number 42:

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

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

Open a project:

phpstorm.sh ~/MyProject

Open a specific file on line number 42:

phpstorm.sh --line 42 ~/MyProject/scripts/numbers.js

When you specify the path to a file, PhpStorm opens it in the LightEdit mode, unless it belongs to a project that is already open. If you specify a directory with an existing project, PhpStorm opens this project. If you open a directory that is not a part of a project, PhpStorm adds the .idea directory to it, making it a project.

07 April 2025
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy