Add posibility to run the server in cli.