This is not yet an offical project for Harbor open source Registry
Download the cli jar file directly in github: Github release page
alias harbor="java -jar harbor-cli-0.0.1-SNAPSHOT.jar"
then you can uses harbor
directly.
In future, will compile directly to OS dependent native image so you will not need aliasing.
harbor login --username <username> --password <password> --api <https_api>
Example:
harbor login --username myuser --password ASafePassword --api demo.goharbor.io
harbor project --help
harbor repository --help
harbor artifact --help
Package as a native image in various OS and add back tons of sub-command
More options for output
Output examples for .JSON / .YAML for complex type
Please feel free to open issue for feature requests.
This CLI depends on harbor-client-java
- following instruction to mvn install
in Harbor Java Client
Then ./mvnw clean package