Nexus CLI for Docker Registry
Download
Linux
$ export VERSION="1.3.0"
$ wget https://github.com/f9n/nexus-cli/releases/download/v${VERSION}/nexus-cli_${VERSION}_Linux_x86_64.tar.gz
$ tar xvfz nexus-cli_${VERSION}_Linux_x86_64.tar.gz
$ mv nexus-cli /usr/local/bin
$ nexus-cli --version
Darwin
$ export VERSION="1.3.0"
$ wget https://github.com/f9n/nexus-cli/releases/download/v${VERSION}/nexus-cli_${VERSION}_Darwin_x86_64.tar.gz
$ tar xvfz nexus-cli_${VERSION}_Darwin_x86_64.tar.gz
$ mv nexus-cli /usr/local/bin
$ nexus-cli --version
Installation
To install the library and command line program, use the following:
$ go get -u github.com/f9n/nexus-cli
Usage
NAME:
Nexus CLI - Manage Docker Private Registry on Nexus
USAGE:
nexus-cli [global options] command [command options] [arguments...]
VERSION:
1.3.0
AUTHOR:
Mohamed Labouardy <mohamed@labouardy.com>
COMMANDS:
configure Configure Nexus Credentials
image Manage Docker Images
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
Available Commands
$ nexus-cli configure
$ nexus-cli image ls
$ nexus-cli image ls --detail
$ nexus-cli image ls --sort-by-size
$ nexus-cli image tags -name mlabouardy/nginx
$ nexus-cli image info -name mlabouardy/nginx -tag 1.2.0
$ nexus-cli image delete -name mlabouardy/nginx
$ nexus-cli image delete -name mlabouardy/nginx -tag 1.2.0
$ nexus-cli image delete -name mlabouardy/nginx -keep 4
$ nexus-cli image size -name mlabouardy/nginx
$ nexus-cli image size -name mlabouardy/nginx --human-readable
Tutorials