Run configurations
In order to run code, tests, and tasks, JetBrains Fleet uses run configurations.
Run configuration is a set of parameters that define how exactly your program or task has to run. It contains the entire context that is required for launch, including commands, paths to executables, environment variables, virtual machine options, arguments, and so on.
Create a run configuration
Press ⌘R. In the popup that appears, select Create Run Configurations.
.fleet/run.json opens. This file contains the definitions for the run configurations in the workspace. The file uses JSON format.
Define new configurations as objects in the
configurations
array. For example, the following configuration runsscript.sh
and specifies its location using a macros.{ "configurations": [ { "name": "Run my script", "type": "command", "program": "$USER_HOME$/script.sh", } ] }For information on available run configuration types and their parameters, refer to the section of the particular language you are using: JVM, Go, Python, C#, Rust.
Launch a run configuration
Press ⌘R. Select the configuration that you are going to run or debug.
Run configuration properties
Each run configuration has the following properties:
Key | Description |
---|---|
| A human-readable name that identifies the run configuration |
| The type of the run configuration, which defines the startup logic. The rest of the parameters depend on the type of the run configuration. For information on available run configuration types and their parameters, refer to the section of the particular language you are using: JVM, Go, Python, C#, Rust. |
| Custom environment variables for the process in the form of a JSON object. To define an environment variable, add a property, where the key is the variable name and the value is the value of the variable, for example:
"environment": {
"TEMP_DIR": "/home/user/temp",
"GENERATE_RANDOM_PASSWORD": "true"
}
|
| Names of other configurations which will be executed before this configuration, for example: |
| Working directory for this run configuration. |
| When set to |