# How do I use -diff to merge Blueprints from command line?

**URL:** <https://forums.unrealengine.com/t/how-do-i-use-diff-to-merge-blueprints-from-command-line/331511>\
**Category:** Blueprint\
**Tags:** command-line, unreal-engine, UE4, Blueprint, question\
**Created:** [September 8, 2015, 10:28pm UTC](https://forums.unrealengine.com/t/how-do-i-use-diff-to-merge-blueprints-from-command-line/331511 "2015-09-08T22:28:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![idbrii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@idbrii](https://forums.unrealengine.com/u/idbrii)\
**Post date:** [September 8, 2015, 10:28pm UTC](https://forums.unrealengine.com/t/how-do-i-use-diff-to-merge-blueprints-from-command-line/331511/1 "2015-09-08T22:28:11Z")

</div>

There are two articles about diffing assets in unreal, but they don’t have a lot of details on how to do it outside the editor:

- [diffing-unreal-assets](https://www.unrealengine.com/blog/diffing-unreal-assets)
- [diffing-blueprints](https://www.unrealengine.com/blog/diffing-blueprints)

Somehow I found that UE4Editor.exe supports a -diff argument, but I don’t understand the arguments. I can pass it two arguments to diff them, and passing four arguments opens the editor in a merge mode, but I’m not sure which arugment is which.

I’d expect I can pass in BASE LOCAL REMOTE MERGED files but it doesn’t look like that’s the right order.

---

<div class="post-metadata">

**Author:** ![idbrii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@idbrii](https://forums.unrealengine.com/u/idbrii)\
**Post date:** [September 8, 2015, 10:29pm UTC](https://forums.unrealengine.com/t/how-do-i-use-diff-to-merge-blueprints-from-command-line/331511/2 "2015-09-08T22:29:28Z")

</div>

I found that you can run `UE4Editor.exe -diff -h` to find the argument order:

```
Usage: 
	-diff [options] left right                                                 
	-diff [options] remote local base result                                   

Options: 
	-echo Prints back the command arguments and then exits.      
	-help, -h, -? Display this message and then exits.
```

---

<div class="post-metadata">

**Author:** ![DarkPixel1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DarkPixel1](https://forums.unrealengine.com/u/DarkPixel1)\
**Post date:** [April 20, 2016, 11:25am UTC](https://forums.unrealengine.com/t/how-do-i-use-diff-to-merge-blueprints-from-command-line/331511/3 "2016-04-20T11:25:49Z")

</div>

That doesn’t work with 4.11

---

<div class="post-metadata">

**Author:** ![idbrii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@idbrii](https://forums.unrealengine.com/u/idbrii)\
**Post date:** [June 10, 2016, 12:47am UTC](https://forums.unrealengine.com/t/how-do-i-use-diff-to-merge-blueprints-from-command-line/331511/4 "2016-06-10T00:47:34Z")

</div>

Both the help message (an editor dialog) and diffing (the BP diff graph displays for Actor/Component blueprints) work for me on 4.11.2 .

---

<div class="post-metadata">

**Author:** ![YPR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YPR](https://forums.unrealengine.com/u/YPR)\
**Post date:** [May 23, 2017, 11:01am UTC](https://forums.unrealengine.com/t/how-do-i-use-diff-to-merge-blueprints-from-command-line/331511/5 "2017-05-23T11:01:30Z")

</div>

as for version 4.15 you need to specify the project path.

UE4Editor.exe %FullPathToProject.uproject% -diff [options] left right

I bet they changed that in 4.11, since 4.10 works without project path

---

<div class="post-metadata">

**Author:** ![Herkapeak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Herkapeak](https://forums.unrealengine.com/u/Herkapeak)\
**Post date:** [October 9, 2023, 2:02am UTC](https://forums.unrealengine.com/t/how-do-i-use-diff-to-merge-blueprints-from-command-line/331511/6 "2023-10-09T02:02:29Z")

</div>

Hi 🙂 As booting-up the engine can take a while I’ve made a simple python script that will issue the diff command to a running unreal instance (so that you can have the diff in under 1 second). I’ve added steps to set-this up in perforce in the repo below :

> **[GitHub - learn-computer-graphics/perforce-uasset-diff: Open Unreal Engine...](https://github.com/learn-computer-graphics/perforce-uasset-diff)**
>
> Open Unreal Engine diff tool via perforce (in under 1 seconds) - GitHub - learn-computer-graphics/perforce-uasset-diff: Open Unreal Engine diff tool via perforce (in under 1 seconds)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [November 8, 2023, 2:02am UTC](https://forums.unrealengine.com/t/how-do-i-use-diff-to-merge-blueprints-from-command-line/331511/7 "2023-11-08T02:02:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
