EugenMayer / nexus-cli

Nexus CLI for Docker Registry v2 🐳

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nexus CLI for Docker Registry

Usage

Build

This is a docker based build, so you do not need any dependencies beside docker

make build-docker

you find the binaries in ./dist

Download

Pick a release from https://github.com/EugenMayer/nexus-cli/releases

Available Commands

Configurate nexus-cli with your credentials and endpoint

$ nexus-cli configure

List all available images

$ nexus-cli image ls

Show all tags of a specific image

$ nexus-cli image tags -name dockernamespace/yourimage

Get information of a specific tag

$ nexus-cli image info -name dockernamespace/yourimage -tag 1.2.0

Delete a specific tag

$ nexus-cli image delete -name dockernamespace/yourimage -tag 1.2.0

Delete several specific tags

$ nexus-cli image delete -name dockernamespace/yourimage -tag 1.2.0,1.2.1,1.2.3-beta1

Run a dry-run test prior deleting

$ nexus-cli image delete -name dockernamespace/yourimage -keep 4 -dry-run

Delete all tags, but keep the most recent 4. Be aware, latest does also count and is considered "the most recent".

$ nexus-cli image delete -name dockernamespace/yourimage -keep 4

Tutorials

Credits

This is a long time fork of https://github.com/mlabouardy/nexus-cli since the old project seems to be stalling / is dead. Of course, thank you for the work you already have put into that Mohamed Labouardy

About

Nexus CLI for Docker Registry v2 🐳

License:MIT License


Languages

Language:Go 93.8%Language:Makefile 4.0%Language:Dockerfile 2.2%