# how to run UDiffPackagesCommandlet correctlly?

**URL:** <https://forums.unrealengine.com/t/how-to-run-udiffpackagescommandlet-correctlly/158347>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [February 24, 2021, 2:15am UTC](https://forums.unrealengine.com/t/how-to-run-udiffpackagescommandlet-correctlly/158347 "2021-02-24T02:15:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_6d4e2594](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6d4e2594](https://forums.unrealengine.com/u/anonymous_user_6d4e2594)\
**Post date:** [February 24, 2021, 2:15am UTC](https://forums.unrealengine.com/t/how-to-run-udiffpackagescommandlet-correctlly/158347/1 "2021-02-24T02:15:03Z")

</div>

i need to write an diff tools for unreal asset, and i found the commandlet UDiffPackagesCommandlet, but i cannot run it correctly.  
i googled and cannot found any document introduction about this commandlet, any suggestions are appreciated.

---

<div class="post-metadata">

**Author:** ![Tulpuh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tulpuh](https://forums.unrealengine.com/u/Tulpuh)\
**Post date:** [February 25, 2021, 7:21am UTC](https://forums.unrealengine.com/t/how-to-run-udiffpackagescommandlet-correctlly/158347/2 "2021-02-25T07:21:41Z")

</div>

According to the documentation, [UDiffPackagesCommandlet is depreciated](https://docs.unrealengine.com/en-US/API/Editor/UnrealEd/Commandlets/UDEPRECATED_DiffPackagesCommandl-/index.html) as of at least 4.26 and redefined as UDEPRECATED\_DiffPackagesCommandlet. Use with caution. As far as how to use them see [UCommandlet | Unreal Engine 5.2 Documentation](https://docs.unrealengine.com/en-US/API/Runtime/Engine/Commandlets/UCommandlet/index.html).

> [@](#):
>
> Commandlet (command-line applet) class.
> 
> Commandlets are executed from the ucc.exe command line utility, using the following syntax: yourgame.exe package\_name.commandlet\_class\_name [parm=value]…  
> for example: yourgame.exe Core.HelloWorldCommandlet yourgame.exe UnrealEd.CookCommandlet
> 
> As a convenience, if a user tries to run a commandlet and the exact name he types isn’t found, then ucc.exe appends the text “commandlet” onto the name and tries again. Therefore, the following shortcuts perform identically to the above: yourgame.exe Core.HelloWorld yourgame.exe UnrealEd.Make
> 
> Commandlets are executed in a “raw” environment, in which the game isn’t loaded, the client code isn’t loaded, no levels are loaded, and no actors exist.  
> To disable shader compiling during the run of the commandlet add “-NoShaderCompile” to the commandline. This would be added as data member setting except that the shader compiler is initialized before a commandlet is created so it cannot be queried soon enough.
