Marathon CLI "app show" should probably be idempotent with "app add"
If you do dcos marathon app show /foo > foo.json, you should be able to later do dcos marathon app add foo.json. Or at least there should be a switch to allow this.
Instead, what you get is this:
Curiously, the JSON provided by the UI (edit->JSON mode) can be copied out, pasted to a file, and fed to marathon app add.
dcos marathon app show (is an equivalent of v2/apps/id) returns not only the normalized app definition but also the corresponding tasks of the app - hence you can't just add it back. UI uses groups endpoint plus some filtering to make a app definition. Currently there is no simple "one liner" that gives you an app definition that you can post back. This is however planned for the next API version though I can not say when it is going to happen.
, could you please add the specific app definition to the ticket? Thx.