# Open files from the command line

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/go/llms.txt).

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

Windows:

You can find the executable for running GoLand in the [installation directory](directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html) under `bin`. To use this executable as the command-line launcher, add it to your system `PATH` as described in [Command-line interface](working-with-the-ide-features-from-command-line.html).

Syntax
: ```PLAINTEXT
: goland64.exe [--line <number>] [--column <number>] <path>
: ```

Examples
: Open a project:
:
:
:
:
:
:
: ```SHELL
: goland64.exe C:\MyProject
: ```
:
:
:
:
:
: Open a specific file on line number 42:
:
:
:
:
:
:
:
:
:
:
: ```SHELL
: goland64.exe --line 42 C:\MyProject\main.go
: ```

macOS:

By default, GoLand does not provide a command-line launcher. For more information about creating a launcher script for GoLand, refer to [Command-line interface](working-with-the-ide-features-from-command-line.html).

Syntax
: ```PLAINTEXT
: goland [--line <number>] [--column <number>] <path>
: ```

Examples
: Open a project:
:
:
:
:
:
:
: ```SHELL
: goland ~/MyProject
: ```
:
:
:
:
:
: Open a specific file on line number 42:
:
:
:
:
:
:
:
:
:
:
: ```SHELL
: goland --line 42 ~/MyProject/main.go
: ```

Linux:

You can find the script for running GoLand in the [installation directory](directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html) under `bin`. To use this script as the command-line launcher, add it to your system `PATH` as described in [Command-line interface](working-with-the-ide-features-from-command-line.html).

Syntax
: ```PLAINTEXT
: goland.sh [--line <number>] [--column <number>] <number> <path>
: ```

Examples
: Open a project:
:
:
:
:
:
:
: ```SHELL
: goland.sh ~/MyProject
: ```
:
:
:
:
:
: Open a specific file on line number 42:
:
:
:
:
:
:
:
:
:
:
: ```SHELL
: goland.sh --line 42 ~/MyProject/main.go
: ```

