# Npx @elastic/synthetic Command Line Options for Selectively Deploying 'lightweight' Synthetics

**URL:** <https://discuss.elastic.co/t/npx-elastic-synthetic-command-line-options-for-selectively-deploying-lightweight-synthetics/330747>\
**Category:** Elastic Observability\
**Created:** [April 25, 2023, 2:00pm UTC](https://discuss.elastic.co/t/npx-elastic-synthetic-command-line-options-for-selectively-deploying-lightweight-synthetics/330747 "2023-04-25T14:00:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ameindel](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@ameindel](https://discuss.elastic.co/u/ameindel)\
**Post date:** [April 25, 2023, 2:00pm UTC](https://discuss.elastic.co/t/npx-elastic-synthetic-command-line-options-for-selectively-deploying-lightweight-synthetics/330747/1 "2023-04-25T14:00:08Z")

</div>

Hello there,

I was wondering if there is any undocumented functionality that allows one to selectively deploy 'lightweight' synthetics, similar to how 'journeys' synthetics can be selectively run using `--pattern`, `--match` and `--tags` cli options?

I'm asking because we'd like the flexibility to run certain lightweight synthetics in some environments, while not running in others.

Thanks in advance!

Adam

---

<div class="post-metadata">

**Author:** ![shahzad31](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shahzad31/32/51637_2.png) [@shahzad31](https://discuss.elastic.co/u/shahzad31)\
**Post date:** [May 3, 2023, 7:27am UTC](https://discuss.elastic.co/t/npx-elastic-synthetic-command-line-options-for-selectively-deploying-lightweight-synthetics/330747/2 "2023-05-03T07:27:28Z")

</div>

Hello @ameindel ,

I am glad to know you are trying project monitors and specifically lightweight monitors.

Unfortunately the issue you have reported seems to be an oversight on our part.

I have created an issue to implemented these filtering options for lightweight monitors as well.

we will for sure fix it. Please subscribe to the issue in case you want to follow the progress or leave your comment if you have any other relevant suggestion.

> <https://github.com/elastic/synthetics/issues/754>
>
> Push command CLI options \`--pattern\`, \`--match \`and \`--tags\` cli not implemented… for light-weight monitors.

Best Regards

---

<div class="post-metadata">

**Author:** ![ameindel](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@ameindel](https://discuss.elastic.co/u/ameindel)\
**Post date:** [May 3, 2023, 2:44pm UTC](https://discuss.elastic.co/t/npx-elastic-synthetic-command-line-options-for-selectively-deploying-lightweight-synthetics/330747/3 "2023-05-03T14:44:45Z")

</div>

Thank you for the update, @shahzad31!

---

<div class="post-metadata">

**Author:** ![shahzad31](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shahzad31/32/51637_2.png) [@shahzad31](https://discuss.elastic.co/u/shahzad31)\
**Post date:** [May 10, 2023, 7:26am UTC](https://discuss.elastic.co/t/npx-elastic-synthetic-command-line-options-for-selectively-deploying-lightweight-synthetics/330747/4 "2023-05-10T07:26:21Z")

</div>

@ameindel we have merged a PR [feat: support pattern, match, tags for pushing lightweight by vigneshshanmugam · Pull Request #761 · elastic/synthetics · GitHub](https://github.com/elastic/synthetics/pull/761) which contains a fix.
