# Overriding some of the gatling.conf properties from command line with Gradle

**URL:** <https://community.gatling.io/t/overriding-some-of-the-gatling-conf-properties-from-command-line-with-gradle/7423>\
**Category:** Gatling (Open-Source)\
**Created:** [December 13, 2022, 8:22am UTC](https://community.gatling.io/t/overriding-some-of-the-gatling-conf-properties-from-command-line-with-gradle/7423 "2022-12-13T08:22:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thorin.bondy](https://avatars.discourse-cdn.com/v4/letter/t/c89c15/32.png) [@thorin.bondy](https://community.gatling.io/u/thorin.bondy)\
**Post date:** [December 13, 2022, 8:22am UTC](https://community.gatling.io/t/overriding-some-of-the-gatling-conf-properties-from-command-line-with-gradle/7423/1 "2022-12-13T08:22:37Z")

</div>

Is it possible to pass the run description when starting a Gatling simulation from command line?

Usually I start it with a Gradle command like: `./gradlew gatlingRun-com.foo.bar.MySimulation`

I would like to pass arguments for the run description, the results directory or any other parameter which is defined in the _gatling.conf_ resource file. It should override whatever is configured in _gatling.conf_.

My intention is not to set from command line which _gatling.conf_ file I would like to use when starting a simulation but to override a property from that file.

Is that possible with a Gradle command and how?

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [December 13, 2022, 9:18am UTC](https://community.gatling.io/t/overriding-some-of-the-gatling-conf-properties-from-command-line-with-gradle/7423/2 "2022-12-13T09:18:35Z")

</div>

`gatling.conf` uses the [LightBend Config library](https://github.com/lightbend/config):

> - users can override the config with Java system properties, `java -Dmyapp.foo.bar=10`

So you can do `./gradlew gatlingRun-com.foo.bar.MySimulation -Pfoo=bar` to override a configuration defined in the file with one from a System Property.

---

<div class="post-metadata">

**Author:** ![thorin.bondy](https://avatars.discourse-cdn.com/v4/letter/t/c89c15/32.png) [@thorin.bondy](https://community.gatling.io/u/thorin.bondy)\
**Post date:** [December 13, 2022, 10:05am UTC](https://community.gatling.io/t/overriding-some-of-the-gatling-conf-properties-from-command-line-with-gradle/7423/3 "2022-12-13T10:05:31Z")

</div>

It now worked with as expected. Thank you.

`/gradlew gatlingRun-com.foo.bar.MySimulation -Dgatling.core.runDescription="abcde"`

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [December 13, 2022, 10:16am UTC](https://community.gatling.io/t/overriding-some-of-the-gatling-conf-properties-from-command-line-with-gradle/7423/4 "2022-12-13T10:16:58Z")

</div>


