Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cf-download should support downloading a single file from the application #7

Open
lmsurpre opened this issue Aug 3, 2016 · 0 comments

Comments

@lmsurpre
Copy link
Member

lmsurpre commented Aug 3, 2016

The readme claims

Additionally, the path can point to a single file to be downloaded. Note: this works similarly to "cf files [path]".

However, I tried this today and got the following, not very helpful, error message:

> cf download letsencrypt /app/conf/live/ibmjstart.biz/cert.pem
[ Info: using .cfignore ]
0 :  Getting files for app letsencrypt in org [email protected] / space dev as [email protected]...

1 :  FAILED

2 :  Server error, status code: 404, error code: 0, message: 

Is it possible to support this use case?

cf files prints the file to the console, but redirecting it to a file would involve stripping the first couple lines off the output with sed (or similar)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant