make all_os
Download 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=admin123
Using download
subcommand.
Help:
nexus-cli download --help
Usage:
nexus-cli download -g com.example -a artifactA -p jar -v 1.0.1 -H http://localhost:8081/nexus -U admin -P admin123
Using multi-download
subcommand.
Help:
nexus-cli multi-download --help
Usage:
Create a file named 'artifacts.txt'.
com.example:artifactA:1.0.1:jar
com.example:artifactB:1.0-SNAPSHOT:war
com.example:artifactC:LATEST:war
nexus-cli multi-download -f artifacts.txt -h http://localhost:8081/nexus -U admin -P admin123
WIP