harborctl icon indicating copy to clipboard operation
harborctl copied to clipboard

A CLI tool for the Docker Registry Harbor. This project offer a command-line interface to the Harbor API, you can use it to manager your users, projects, repositories, etc. (This project aims to refa...

Go Report Card Build Status License

harborctl

  __ __   ____  ____   ____    ___   ____      __ ______  _
 |  |  | /    ||    \ |    \  /   \ |    \    /  ]      || |
 |  |  ||  o  ||  D  )|  o  )|     ||  D  )  /  /|      || |
 |  _  ||     ||    / |     ||  O  ||    /  /  / |_|  |_|| |___
 |  |  ||  _  ||    \ |  O  ||     ||    \ /   \_  |  |  |     |
 |  |  ||  |  ||  .  \|     ||     ||  .  \\     | |  |  |     |
 |__|__||__|__||__|\_||_____| \___/ |__|\_| \____| |__|  |_____|

A CLI tool for the Docker Registry Harbor.

This project offer a command-line interface to the Harbor API, you can use it to manager your Harbor service as from Harbor UI.

NOTE

  • This project is initiated by "New Proposal: A Go CLI Client for Harbor".
  • This project named harborctl is still under developement, which is based on harbor v1.6.0-66709daa and swagger api version 1.6.0.
  • Another project named harbor-go-client is based on harbor v1.5.0-d59c257e and swagger api version 1.4.0. If you want to use this CLI tool with Harbro v1.6.0+, you may encounter incompatible issues. See "The issue with API version" for more details.

Features

Current Harbor API support status, see issue/5:

Installation

Assuming you already have a recent version of Go installed, pull down the code with go get:

go get -u github.com/moooofly/harborctl

You can also obtain the pre-compiled binary files from here, which is recommanded.

Documentation

See docs

Credits

License

harborctl is licensed under the MIT License. See LICENSE for the full license text.

This project uses open source components which have additional licensing terms. The licensing terms for these open source components can be found at the following locations: