llms.txt: machine-readable documentation index. Markdown version of this page is also available.

GoLand 2026.3 Help

Open files from the command line

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

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

Open a project:

goland64.exe C:\MyProject

Open a specific file on line number 42:

goland64.exe --line 42 C:\MyProject\main.go

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.

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

Open a project:

goland ~/MyProject

Open a specific file on line number 42:

goland --line 42 ~/MyProject/main.go

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

Open a project:

goland.sh ~/MyProject

Open a specific file on line number 42:

goland.sh --line 42 ~/MyProject/main.go
06 November 2026