Skip to main content

Synopsis

Lists all artifacts in the Harness Artifact Registry. Results can be filtered by registry and paginated for large datasets.
hc artifact list [flags]

Options

--registry
string
Filter artifacts by registry name
--page-size
integer
default:"10"
Number of items per page
--page
integer
default:"0"
Page number (zero-indexed)

Output Format

The command displays artifacts in a table format with the following columns:
  • Artifact - Name of the artifact
  • Version - Latest or current version
  • Package Type - Type of package (Docker, NPM, Maven, etc.)
  • Registry - Registry identifier
  • Download Count - Number of times downloaded

Examples

hc artifact list

Output Example

Artifact           Version    Package Type  Registry         Download Count
nginx             1.21.0     DOCKER        docker-registry  125
react-app         2.0.1      NPM           npm-registry     89
spring-boot-app   3.1.0      MAVEN         maven-registry   45

Page: 0 | Total Pages: 5 | Total Items: 123

Filtering Tips

When listing artifacts across multiple registries, omit the --registry flag to see all artifacts in your account.
Use --page-size to control the number of results displayed. Larger page sizes reduce the number of API calls but may take longer to load.

See Also

Build docs developers (and LLMs) love