Skip to content
This repository has been archived by the owner on Mar 1, 2021. It is now read-only.

EugenMayer/nexus-cli

 
 

Repository files navigation

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 🐳

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 93.8%
  • Makefile 4.0%
  • Dockerfile 2.2%