Added --console arg to run in CLI mode