Change download api to accept global options.
Add download command feature to ci run.