# Command to play default level in headless mode

**URL:** <https://forums.unrealengine.com/t/command-to-play-default-level-in-headless-mode/471131>\
**Category:** Platform & Builds\
**Tags:** command, Linux, unreal-engine, play, question\
**Created:** [September 10, 2020, 5:24pm UTC](https://forums.unrealengine.com/t/command-to-play-default-level-in-headless-mode/471131 "2020-09-10T17:24:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_e8039089](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e8039089](https://forums.unrealengine.com/u/anonymous_user_e8039089)\
**Post date:** [September 10, 2020, 5:24pm UTC](https://forums.unrealengine.com/t/command-to-play-default-level-in-headless-mode/471131/1 "2020-09-10T17:24:49Z")

</div>

I want to achieve the following with a terminal command:

1. Launch unreal in headless mode (without rendering)
2. Load a project (I figured I can do this with `UE4Editor project_file.uproject`)
3. Start playing the default level

Any help is appreciated. Thank you!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b7505e2e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b7505e2e](https://forums.unrealengine.com/u/anonymous_user_b7505e2e)\
**Post date:** [November 23, 2020, 3:25pm UTC](https://forums.unrealengine.com/t/command-to-play-default-level-in-headless-mode/471131/2 "2020-11-23T15:25:18Z")

</div>

Dear valued Unreal Engine user,

If you launch the editor with `-game` this would act the same as choosing the standalone launch option in the editor, so should start and run the default level in the project settings. You can also compile, cook and package the project, then run the `UE4Game` target if it is a blueprint only or the `[ProjectName]Game` target if it is a source project. Running a packaged game target should always start the default level first. Fully packaging the game project would be the recommend route for anything you would distribute to other machines or servers.

To run in headless mode you should be able to use `-nullrhi`.

Thank you for your continued support,
