# How to execute nakama in background

**URL:** https://forum.heroiclabs.com/t/how-to-execute-nakama-in-background/1535
**Category:** Local Setup
**Created:** [April 6, 2021, 12:09pm UTC](https://forum.heroiclabs.com/t/how-to-execute-nakama-in-background/1535 "2021-04-06T12:09:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tranthor](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@tranthor](https://forum.heroiclabs.com/u/tranthor)
#### Post date: [April 6, 2021, 12:09pm UTC](https://forum.heroiclabs.com/t/how-to-execute-nakama-in-background/1535/1 "2021-04-06T12:09:21Z")

</div>

Hello,  
I’ve a simple question. If I want to create a new db/server in nakama, I start migrating the db executing:  
`nakama migrate up`

After that, if I want to run the server I execute  
`nakama`

These are the default commands. The problem is: when I execute `nakama`, the server starts running in the same terminal and I have to keep open the cmd / terminal forever.  
So… how can I run the server in background ?

I tested the parameter background and it didn’t work  
`nakama --background`

Also I saw the --help options but I didn’t find the command that I’m looking for.  
Help?

Thanks!!

---

<div class="post-metadata">

### Author: ![tranthor](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@tranthor](https://forum.heroiclabs.com/u/tranthor)
#### Post date: [April 6, 2021, 6:34pm UTC](https://forum.heroiclabs.com/t/how-to-execute-nakama-in-background/1535/2 "2021-04-06T18:34:21Z")

</div>

I resolved it using `screen` command in unix. But I couldn’t find a parameter provided by nakama.  
Thanks.
