cli icon indicating copy to clipboard operation
cli copied to clipboard

Feature request: Application Download

Open aristotelesneto opened this issue 12 years ago • 6 comments

It seems like the cloud controller already supports downloading the application bits.

It would be nice if the cli supported it as well.

aristotelesneto avatar May 01 '14 00:05 aristotelesneto

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: http://www.pivotaltracker.com/story/show/70488814. This repo is managed by the 'CLI' team.

cf-gitbot avatar May 01 '14 00:05 cf-gitbot

@wdneto out of curiosity, what's the use case that drives this feature?

scottruitt avatar May 01 '14 04:05 scottruitt

On the one hand, I can see the argument for having parity with CC so that people don't need to use cf curl if they want to use this API.

On the other hand.... this exposes additional complexity to users, and I can't imagine a use case for this (outside of a hypothetical situation debugging some very weird issues with application bits that have been improperly staged). Would this need to be core in the CLI for it to be valuable @wdneto? This would be an excellent candidate for a plugin, in my opinion.

tjarratt avatar May 01 '14 06:05 tjarratt

I actually want this feature as well- I once pushed a (not all the important) app, then had a hard drive melt down, so the only place that still had the source code was on CF. I was able to slowly recover the app, file by file, which was... tedious.

jfoley avatar May 01 '14 16:05 jfoley

I'm more than happy for this to be a plugin.

I agree that this is counter to the ideal 12 factor App model which should be adhered to as a developer, but we have customers who insist on making modifications to live Apps (which isn't really taken care of by the droplet download).

The great thing is that as a developer he actually also had the ability to download the changes by getting a console to the instance that had the modified files (via something like websockets) and push the content as present in that instance as a new App - then downloading the resulting droplet.

The feature just tries to make the downloading of the bits easier than:

APP=blah && cf curl "$(CF_TRACE=true cf app ${APP} | grep '"url": "/v2/apps' | cut -d "\"" -f 4)/download" > ${APP}.zip

aristotelesneto avatar May 01 '14 21:05 aristotelesneto

Closing this for now as the discussion has lead to this issue becoming a plugin.

XenoPhex avatar Jul 02 '14 21:07 XenoPhex