There is currently no way to use command line to do this.https://dev.epicgames.com/community/learning/knowledge-base/ZdE6B/epic-online-services-am-i-able-to-use-command-line-to-install-games-from-epic-game-store