We now have a very similar code in CLI's util/runApp and UI component/appsubmit.vue. We should try refactoring these by moving most of the app submission code to the warehouse API.
We also have UI modals/newtask.vue that has a similar code.. but it's more specialized than newapp / CLI so I am not sure how much of it can be refactored to the server side.. but just a note.
We now have a very similar code in CLI's util/runApp and UI component/appsubmit.vue. We should try refactoring these by moving most of the app submission code to the warehouse API.