# How can I send Unreal Console Commands from the command line to a running UE5 editor instance?

**URL:** <https://forums.unrealengine.com/t/how-can-i-send-unreal-console-commands-from-the-command-line-to-a-running-ue5-editor-instance/1269503>\
**Category:** Editor Scripting\
**Tags:** unreal-engine, question\
**Created:** [August 23, 2023, 4:13am UTC](https://forums.unrealengine.com/t/how-can-i-send-unreal-console-commands-from-the-command-line-to-a-running-ue5-editor-instance/1269503 "2023-08-23T04:13:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![norsfell\_max](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@norsfell\_max](https://forums.unrealengine.com/u/norsfell_max)\
**Post date:** [August 23, 2023, 4:13am UTC](https://forums.unrealengine.com/t/how-can-i-send-unreal-console-commands-from-the-command-line-to-a-running-ue5-editor-instance/1269503/1 "2023-08-23T04:13:49Z")

</div>

I would like to be able to send typical unreal console commands such as:  
`stat gpu`  
`r.AntiAliasingMethod 0`  
`recompileshaders /Engine/Private/my_shader.usf`

I know that there exist UE4Editor-Cmd.exe, and you can do things like:  
`C:\UE4Editor-Cmd.exe “C:\myGame.uproject” -ExecCmds=“stat gpu”`

But this launches a new instance of the editor. I would like to send commands to an already running instance of the editor. Is there a way I can do that?

---

<div class="post-metadata">

**Author:** ![dark\_flame666](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dark\_flame666](https://forums.unrealengine.com/u/dark_flame666)\
**Post date:** [December 5, 2023, 3:12pm UTC](https://forums.unrealengine.com/t/how-can-i-send-unreal-console-commands-from-the-command-line-to-a-running-ue5-editor-instance/1269503/2 "2023-12-05T15:12:02Z")

</div>

Have you solved this?

---

<div class="post-metadata">

**Author:** ![Tireless](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tireless](https://forums.unrealengine.com/u/Tireless)\
**Post date:** [October 1, 2024, 8:48am UTC](https://forums.unrealengine.com/t/how-can-i-send-unreal-console-commands-from-the-command-line-to-a-running-ue5-editor-instance/1269503/3 "2024-10-01T08:48:56Z")

</div>

I was searching for something similar and found this after some digging. Posting for clarity. There is an addon called “PythonScriptPlugin” which has a remote\_execution function you can use. After installing the plugin you can check out this file for info on the commands:  
Engine\Plugins\Experimental\PythonScriptPlugin\Content\Python\remote\_execution.py
