Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/harness/harness-cli/llms.txt

Use this file to discover all available pages before exploring further.

List all registries in your account, organization, or project. Supports filtering by package type and pagination.

Usage

hc registry list [flags]

Options

--package-type
string
Filter registries by package type (DOCKER, NPM, MAVEN, etc.)
--page-size
int
default:"10"
Number of items per page
--page
int
default:"0"
Page number (zero-indexed)

Examples

List All Registries

Display all registries with default pagination:
hc registry list
The default page size is 10 items. Use --page-size to adjust.

Filter by Package Type

List only Docker registries:
hc registry list --package-type DOCKER
List NPM registries:
hc registry list --package-type NPM
List Maven registries:
hc registry list --package-type MAVEN

Custom Pagination

Get 25 registries per page:
hc registry list --page-size 25
Get the second page of results:
hc registry list --page-size 20 --page 1
Get the third page:
hc registry list --page-size 20 --page 2

Output in JSON Format

hc registry list --format json

Output

The command displays a table with the following columns:
ColumnDescription
RegistryRegistry identifier
Package TypeType of packages (DOCKER, NPM, MAVEN, etc.)
SizeTotal size of the registry
Registry TypeRegistry type (e.g., VIRTUAL, LOCAL)
DescriptionRegistry description
LinkURL to the registry

Example Output

$ hc registry list

Registry            Package Type  Size        Registry Type  Description
my-docker-reg       DOCKER        1.2 GB      VIRTUAL        Production Docker registry
npm-packages        NPM           450 MB      VIRTUAL        NPM packages for frontend
maven-releases      MAVEN         2.1 GB      VIRTUAL        Maven release artifacts
pypi-local          PYTHON        890 MB      LOCAL          Python packages

Page 1 of 3 (Total: 28 registries)

Pagination Details

The output includes pagination information:
  • Current page number
  • Total number of pages
  • Total item count
To navigate through pages:
# First page (page 0)
hc registry list --page 0

# Second page (page 1)
hc registry list --page 1

# Third page (page 2)
hc registry list --page 2
Page numbers are zero-indexed, so the first page is --page 0.

Supported Package Types

You can filter by any of these package types:
  • DOCKER - Docker container images
  • HELM - Helm charts
  • MAVEN - Java/Maven artifacts
  • NPM - Node.js packages
  • NUGET - .NET packages
  • PYTHON - Python packages
  • GO - Go modules
  • GENERIC - Generic file storage
  • CONDA - Conda packages
  • COMPOSER - PHP packages
  • DART - Dart/Flutter packages

Context

The command uses your current authentication context (account, organization, project). To list registries from a different context:
hc registry list --account my-account --org my-org --project my-project

Build docs developers (and LLMs) love