make all_osDownload the latest release to any directory in your system. Rename it as nexus-cli or for Windows, nexus-cli.exe.
Run it as nexus-cli --help or nexus-cli.exe --help.
Environment Variables to avoid using flags -H, -U, -P for host and authentication settings.
NEXUS_HOST=http://localhost:8081/nexus
NEXUS_USERNAME=admin
NEXUS_PASSWORD=admin123Using download subcommand.
Help:
nexus-cli download --helpUsage:
nexus-cli download -g com.example -a artifactA -p jar -v 1.0.1 -H http://localhost:8081/nexus -U admin -P admin123Using multi-download subcommand.
Help:
nexus-cli multi-download --helpUsage:
Create a file named 'artifacts.txt'.
com.example:artifactA:1.0.1:jar
com.example:artifactB:1.0-SNAPSHOT:war
com.example:artifactC:LATEST:warnexus-cli multi-download -f artifacts.txt -h http://localhost:8081/nexus -U admin -P admin123WIP