Extract App from CLI
Only assign fields in the App constructor