# Merging Contacts from Command Line

**URL:** <https://forum.mautic.org/t/merging-contacts-from-command-line/22875>\
**Category:** Product Support\
**Created:** [March 2, 2022, 8:39am UTC](https://forum.mautic.org/t/merging-contacts-from-command-line/22875 "2022-03-02T08:39:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [March 2, 2022, 8:39am UTC](https://forum.mautic.org/t/merging-contacts-from-command-line/22875/1 "2022-03-02T08:39:15Z")

</div>

Does anyone know if it is possible to merge to lead\_id from the command line ?  
Or if there is a creative way to do this even using scripting

---

<div class="post-metadata">

**Author:** ![ekke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekke/32/296_2.png) [@ekke](https://forum.mautic.org/u/ekke)\
**Post date:** [March 2, 2022, 9:47am UTC](https://forum.mautic.org/t/merging-contacts-from-command-line/22875/2 "2022-03-02T09:47:45Z")

</div>

I guess [GitHub - mtcextendee/mautic-custom-deduplicate-bundle: Custom deduplicate for Mautic](https://github.com/mtcextendee/mautic-custom-deduplicate-bundle) will help (if it works with the latest Mautic):

`php bin/console mautic:contacts:deduplicate:custom`

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [March 2, 2022, 10:14am UTC](https://forum.mautic.org/t/merging-contacts-from-command-line/22875/3 "2022-03-02T10:14:22Z")

</div>

Thanks @ekke - will check it out.
