# How do I save console commands

**URL:** <https://forums.unrealengine.com/t/how-do-i-save-console-commands/479942>\
**Category:** Getting Started & Setup\
**Tags:** console-commands, saved-folders, unreal-engine, question\
**Created:** [March 9, 2021, 2:26am UTC](https://forums.unrealengine.com/t/how-do-i-save-console-commands/479942 "2021-03-09T02:26:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jojunhyeon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jojunhyeon](https://forums.unrealengine.com/u/jojunhyeon)\
**Post date:** [March 9, 2021, 2:26am UTC](https://forums.unrealengine.com/t/how-do-i-save-console-commands/479942/1 "2021-03-09T02:26:36Z")

</div>

After entering “ShowFlag.Bones 1”, I restarted engine, and they returned to their original state. How do I save these settings?  
Additionally, how can I apply this setting differently depending on the level?  
I want to make bones visible only at certain levels.

---

<div class="post-metadata">

**Author:** ![Baalnazzar1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Baalnazzar1](https://forums.unrealengine.com/u/Baalnazzar1)\
**Post date:** [May 12, 2022, 11:06am UTC](https://forums.unrealengine.com/t/how-do-i-save-console-commands/479942/2 "2022-05-12T11:06:00Z")

</div>

I see no one ever replied. I’m having same issue. I want project to have r.RayTracing.Geometry.InstancedStaticMeshes.Culling 0 by default in one project. Can I save it somehow?

---

<div class="post-metadata">

**Author:** ![D3vast8r](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/d3vast8r/32/699979_2.png) [@D3vast8r](https://forums.unrealengine.com/u/D3vast8r)\
**Post date:** [May 13, 2022, 1:00pm UTC](https://forums.unrealengine.com/t/how-do-i-save-console-commands/479942/3 "2022-05-13T13:00:08Z")

</div>

You can do this in your project files.ini I think, its somewhere in there where on startup it will run what ever commands you wish

---

<div class="post-metadata">

**Author:** ![Astrotronic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astrotronic/32/1194566_2.png) [@Astrotronic](https://forums.unrealengine.com/u/Astrotronic)\
**Post date:** [May 23, 2022, 5:46pm UTC](https://forums.unrealengine.com/t/how-do-i-save-console-commands/479942/4 "2022-05-23T17:46:13Z")

</div>

Hello @jojunhyeon and @Baalnazzar1

For some settings, you can add them to your projects DefaultEngine.ini

But to execute console commands on project startup, the best I can come up with is to launch the engine with the console commands and then open your project from there.

From the Epic Games Launcher, click the drop-down next to the engine version you’re using and “Create Shortcut”

This will create a shortcut on your desktop, right-click on the shortcut and edit its properties:

Add -ExecCmds=“yourconsolecmdshere” to the end of the target field

 ![cmds](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/f/43fd7f18d009cc9d5f35f1f68a0893697710bb12.png)

If anyone knows of a way to do this per-project please let us know!

---

<div class="post-metadata">

**Author:** ![rohangulig](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rohangulig](https://forums.unrealengine.com/u/rohangulig)\
**Post date:** [January 17, 2024, 7:33am UTC](https://forums.unrealengine.com/t/how-do-i-save-console-commands/479942/5 "2024-01-17T07:33:52Z")

</div>

RightClick in Content Browser go to Console Variable editor click on Console Varriable Collection then add Console Variable type your command hit enter and save your preset … you can add multiple commands and after saving go to Content Browser where your preset is saved and right-click on your preset and hit execute. If you find this helpful please mark this as solved.

---

<div class="post-metadata">

**Author:** ![Fani14858](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fani14858](https://forums.unrealengine.com/u/Fani14858)\
**Post date:** [January 17, 2024, 7:54pm UTC](https://forums.unrealengine.com/t/how-do-i-save-console-commands/479942/6 "2024-01-17T19:54:19Z")

</div>

You may do this in the project files.ini I believe there[’](https://www.crewstify.com/)s someplace in there where on starting, it will perform any instructions you want.

---

<div class="post-metadata">

**Author:** ![xeno.SKB](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xeno.skb/32/1225293_2.png) [@xeno.SKB](https://forums.unrealengine.com/u/xeno.SKB)\
**Post date:** [January 23, 2024, 11:05am UTC](https://forums.unrealengine.com/t/how-do-i-save-console-commands/479942/7 "2024-01-23T11:05:40Z")

</div>

@jojunhyeon, I’d recommend marking @rohangulig 's post as the solution. This Console Variable Editor in UE5 is what I would point users towards too: [Console Variables Editor | Unreal Engine 5.0 Documentation](https://docs.unrealengine.com/5.0/en-US/console-variables-editor/)

---

<div class="post-metadata">

**Author:** ![Pouyad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pouyad](https://forums.unrealengine.com/u/Pouyad)\
**Post date:** [March 24, 2024, 3:42am UTC](https://forums.unrealengine.com/t/how-do-i-save-console-commands/479942/8 "2024-03-24T03:42:41Z")

</div>

**S O L V E D**

---

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [February 21, 2025, 1:37am UTC](https://forums.unrealengine.com/t/how-do-i-save-console-commands/479942/9 "2025-02-21T01:37:33Z")

</div>

The Console Variable Editor while handy for batching console commands quickly, it doesn’t run at project start, so it’s not the solution.

Most console variables can be added to the **DefaultEngine.ini** file located in your Project’s Config folder. The difference in the ini file is you **have to use an = operator** to set the startup value which is slightly different than the console command.

For Example: If you want to disable ray traced shadows on double sided geometry (which can often cause weird shadow blobs in your scene), the console command is : r.RayTracing.Shadows.EnableTwoSidedGeometry 0, but in the ini file you need to write  
r.RayTracing.Shadows.EnableTwoSidedGeometry=0  
The = symbol is how you set any console variable in an ini.
