Hi, I downloaded and installed the cf download plugin (version 1.0). When I call the plugin through my Windows command line I get the following error:
dial tcp 127.0.0.1:54346: Er is een ongeldig argument opgegeven.
English translation of the error: An invalid argument specified.
I used the following command to download my app: cf download
What could be the problem? The firewall is off. If I do cf apps
on my command line, I see the apps.
Thanks in advance,
Arjan Kroon
What is the exact command line you tried to used to download your droplet?
cf download
If I look at the plugins with cf plugins , I see this:
Listing Installed Plugins... OK Plugin Name Version Command Name Command Help cf-download 1.0.0 download Download contents of a running app's file directory
Answer by JohnPape (1292) | Mar 04, 2016 at 03:08 PM
I'm pretty sure that cf download
is going to take an argument for the app name it's going to act on. I.e. cf download <app>
That is correct. I use cf download
Even if I use cf download I get the same error message.
If I use cf download I expect the following response: Error: Missing App Name NAME: download - Download contents of a running app's file directory USAGE: cf download APP_NAME [PATH] [--overwrite] [--verbose] [--omit ommited_paths] [-i instance_num]
Okay.. so give it an app name and try again.
Arjan, take a look at the blog article at http://blog.ibmjstart.net/2015/05/22/cf-download/ to give you information about the command line usage for the cf download plugin. As John Pape stated, you need to provide the name of the app that is actively running on Bluemix.
If your application is named "MyNodeApp", your CF download command line would be something like: cf download MyNodeApp --omit "app/node_modules; app/bin; logs" (By omitting app/node_modules you will greatly decrease download times. You can run npm install locally on your package.json after completing a download.)