# How to manually trigger a campaign for testing purposes?

**URL:** <https://forum.mautic.org/t/how-to-manually-trigger-a-campaign-for-testing-purposes/33909>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [October 23, 2024, 12:44am UTC](https://forum.mautic.org/t/how-to-manually-trigger-a-campaign-for-testing-purposes/33909 "2024-10-23T00:44:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![danpatpat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/danpatpat/32/12599_2.png) [@danpatpat](https://forum.mautic.org/u/danpatpat)\
**Post date:** [October 23, 2024, 12:44am UTC](https://forum.mautic.org/t/how-to-manually-trigger-a-campaign-for-testing-purposes/33909/1 "2024-10-23T00:44:00Z")

</div>

**Your software**  
My Mautic version is: v4.4.10  
My PHP version is: 8.0.30  
My Database type and version is: MariaDB

**Your problem**  
My problem is:

I am trying to create a campaign that contains a “Send a webhook” element.  
**The campaign is fed by Segment named “Test” and contains only one email**.

In order to test this webhook I need to run the campaign multiple times and adjust some details if necessary. However my cron runs 4x/ hour and it is really inconvenient to wait until the next cron to run every time I want to test.

Also, because I only have one email, I am not sure if the campaign will rerun because the user is already there (I checked the option to allow users to rerun the campaign), and it is very complicated to remove the user, then add it again etc…

I don’t understand why there is no easy way to manually trigger or forcefully run a campaign ? What am I missing ?

Thank you.

---

<div class="post-metadata">

**Author:** ![ncmon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ncmon/32/11887_2.png) [@ncmon](https://forum.mautic.org/u/ncmon)\
**Post date:** [October 23, 2024, 8:53am UTC](https://forum.mautic.org/t/how-to-manually-trigger-a-campaign-for-testing-purposes/33909/2 "2024-10-23T08:53:07Z")

</div>

Sure, run this command in your command line:

php /path to your mautic install/bin/console mautic:campaigns:trigger

---

<div class="post-metadata">

**Author:** ![danpatpat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/danpatpat/32/12599_2.png) [@danpatpat](https://forum.mautic.org/u/danpatpat)\
**Post date:** [October 24, 2024, 2:48am UTC](https://forum.mautic.org/t/how-to-manually-trigger-a-campaign-for-testing-purposes/33909/3 "2024-10-24T02:48:08Z")

</div>

Thanks, that seems like it can do!

Is there a point in doing a `mautic:campaigns:update` command before ?

It’s a shame this is not possible from the UI. It seems so basic.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [October 25, 2024, 4:10am UTC](https://forum.mautic.org/t/how-to-manually-trigger-a-campaign-for-testing-purposes/33909/4 "2024-10-25T04:10:06Z")

</div>

Run your cron every minute then you dont have to wait. Its a shame to set for every 15 min.
