# Running multiple js files in k6 run command

**URL:** <https://community.grafana.com/t/running-multiple-js-files-in-k6-run-command/111593>\
**Category:** Grafana k6\
**Created:** [January 9, 2024, 2:15pm UTC](https://community.grafana.com/t/running-multiple-js-files-in-k6-run-command/111593 "2024-01-09T14:15:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumabris](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@sumabris](https://community.grafana.com/u/sumabris)\
**Post date:** [January 9, 2024, 2:15pm UTC](https://community.grafana.com/t/running-multiple-js-files-in-k6-run-command/111593/1 "2024-01-09T14:15:38Z")

</div>

Hi,  
I just started with K6. I have mulitple js files testing different methods for APIs for same feature under a folder. I want to run all the files in this folder one after the other.  
K6 run command accepts single js as argument.

Pls let me know how to run multiple js files sequentially or all js files inside a folder

Thanks

---

<div class="post-metadata">

**Author:** ![bandorko](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/bandorko/32/38733_2.png) [@bandorko](https://community.grafana.com/u/bandorko)\
**Post date:** [January 9, 2024, 3:56pm UTC](https://community.grafana.com/t/running-multiple-js-files-in-k6-run-command/111593/3 "2024-01-09T15:56:02Z")

</div>

Hi @sumabris , welcome to the community forum!

On linux I would go with:

```auto
find *.js -exec k6 run {} \;

```
