# how to pass CLI args to workflow steps

**URL:** https://discourse.cmake.org/t/how-to-pass-cli-args-to-workflow-steps/8460
**Category:** Usage
**Tags:** os:linux
**Created:** [July 5, 2023, 3:33am UTC](https://discourse.cmake.org/t/how-to-pass-cli-args-to-workflow-steps/8460 "2023-07-05T03:33:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![aalan](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@aalan](https://discourse.cmake.org/u/aalan)
#### Post date: [July 5, 2023, 3:33am UTC](https://discourse.cmake.org/t/how-to-pass-cli-args-to-workflow-steps/8460/1 "2023-07-05T03:33:49Z")

</div>

Hello. Would be possible to pass CLI args of cmake commands to its equivalent stages in CMake presets and workflows. I want to pass flags like `--verbose` and `--rerun-after-failure` to these steps.  
thanks

---

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [July 5, 2023, 10:30pm UTC](https://discourse.cmake.org/t/how-to-pass-cli-args-to-workflow-steps/8460/2 "2023-07-05T22:30:55Z")

</div>

Closely related to the following issue: [https://gitlab.kitware.com/cmake/cmake/-/issues/24194](https://gitlab.kitware.com/cmake/cmake/-/issues/24194)
