Harbor CLI
harbor-cliThe official command-line interface for Harbor.
The official command-line interface for Harbor.
Log in to a Harbor registry and list projects or repositories. Passwords are never entered here; use --password-stdin or the interactive prompt. Create, delete and other subcommands are left out.
harbor loginAuthenticate with a Harbor registry.
serverusernamestring · positional 0string--username-ustring--context-name-nboolean--password-stdinharbor project listList Harbor projects.
output_formatstring--nameboolean--privateboolean--publicinteger--pageinteger--page-sizeenum--output-format-ojsonyamlcsvharbor repo listList repositories within a project.
projectstring · positional 0string--query-qinteger--pageinteger--page-sizeenum--output-format-ojsonyamlcsvdocsmanual2026-10-27docsmanual2026-10-27docsmanual2026-10-27Before it fills your prompt, Otty checks the installed harbor against its version. A form that does not match your version is not offered.