https://github.com/bzon/nexus-cli
https://github.com/bzon/nexus-cli
devops golang nexus nexus-cli
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bzon/nexus-cli
- Owner: bzon
- License: mit
- Created: 2018-02-25T08:44:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-27T23:50:25.000Z (about 8 years ago)
- Last Synced: 2025-01-22T08:28:31.448Z (over 1 year ago)
- Topics: devops, golang, nexus, nexus-cli
- Language: Go
- Size: 39.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nexus CLI
## Building
```bash
make all_os
```
## Installation
Download the latest [release](https://github.com/bzon/nexus-cli/releases) 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`.
## Usage
Environment Variables to avoid using flags `-H`, `-U`, `-P` for host and authentication settings.
```bash
NEXUS_HOST=http://localhost:8081/nexus
NEXUS_USERNAME=admin
NEXUS_PASSWORD=admin123
```
### Downloading an Artifact
Using `download` subcommand.
Help:
```bash
nexus-cli download --help
```
Usage:
```bash
nexus-cli download -g com.example -a artifactA -p jar -v 1.0.1 -H http://localhost:8081/nexus -U admin -P admin123
```
### Downloading Multiple Artifacts
Using `multi-download` subcommand.
Help:
```bash
nexus-cli multi-download --help
```
Usage:
Create a file named 'artifacts.txt'.
```bash
com.example:artifactA:1.0.1:jar
com.example:artifactB:1.0-SNAPSHOT:war
com.example:artifactC:LATEST:war
```
```bash
nexus-cli multi-download -f artifacts.txt -h http://localhost:8081/nexus -U admin -P admin123
```
### Uploading an Artifact
WIP