Run/Debug Configuration: Shell Script

Last modified: 29 November 2022

Create: Run | Edit Configurations | Add New Configuration | Shell Script

Use this dialog to configure running shell scripts. For details on working with shell scripts in IntelliJ IDEA, see Shell scripts.

The set of parameters in the dialog depends on the option you select under Execute:

  • Script file (a configuration to run a script file)

  • Script text (a configuration to run a single command)

Item

Description

Script path

Provide the path to the shell script file. Type the path manually or click the Browse button and select the path in the dialog that opens.

Script options

Specify the options that you want to pass to the script when it is launched.

Working directory

Provide the absolute path of a directory to run the script in.

Environment variables

Specify environment variables if you need them in the script. You can click Edit variables to open the Environment Variables window where you can browse and copy existing variables or create your own.

Interpreter path

Provide the path to the interpreter for running the script. Type the path manually or click the Browse button and select the path in the dialog that opens.

Interpreter options

Specify the options that you want to pass to the script interpreter.