All apps/Harbor CLI

Harbor CLI

harbor-cli

The official command-line interface for Harbor.

Runs as harbor|macOS, Linux, Windows|github.com

Command form

ai-draft · 4 tasks · 15 fields

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.

Opens the form; the finished command lands at your prompt, unrun
otty gui harbor-cli

harbor login

Log in

Authenticate with a Harbor registry.

Log inExample values, fixed in this page — nothing here reaches a terminal
Basic
Server*
string
Username*
string
TasksEach one presets the form for one job
Log in
serverusername
ParametersOnly these flags are editable in the form
Server
string · positional 0
Username
string
--username-u
Context name
string
--context-name-n
Read password from stdin
boolean
--password-stdin

harbor project list

List projects

List Harbor projects.

List projectsExample values, fixed in this page — nothing here reaches a terminal
TasksEach one presets the form for one job
List projects
List as JSON
output_format
ParametersOnly these flags are editable in the form
Project name
string
--name
Private only
boolean
--private
Public only
boolean
--public
Page
integer
--page
Page size
0 fetches all.
integer
--page-size
Output format
enum
--output-format-ojsonyamlcsv

harbor repo list

List repositories

List repositories within a project.

List repositoriesExample values, fixed in this page — nothing here reaches a terminal
Basic
Project name*
string
TasksEach one presets the form for one job
List repositories
project
ParametersOnly these flags are editable in the form
Project name
string · positional 0
Query
string
--query-q
Page
integer
--page
Page size
integer
--page-size
Output format
enum
--output-format-ojsonyamlcsv
SourcesEvery flag above is checked against these
docs
harbor login [server] [flags] -n, --context-name string Login context name (optional) --password-stdin Take the password from stdin -u, --username string Username
manual2026-10-27

github.com

docs
harbor project list [flags] --name string Name of the project --page int Page number (default 1) --page-size int Size of per page (0 to fetch all) --private Show only private projects --public Show only public projects --sort string Sort the resource list in ascending or descending order…
manual2026-10-27

github.com

docs
harbor repo list <project_name> --page int Page number (default 1) --page-size int Size of per page (default 10) -q, --query string Query string to query resources -o, --output-format string Output format. One of: json|yaml|csv
manual2026-10-27

github.com

Before it fills your prompt, Otty checks the installed harbor against its version. A form that does not match your version is not offered.