Harness CLI (hc) Examples
Examples of various use cases of Harness CLI.
DEPRECATION NOTICE
Harness CLI (hc) v1.x.x will be deprecated and will reach end of life in a future release.
We recommend migrating to the new version of Harness CLI to continue receiving the latest features, improvements, and official support.
Registry Management Examples
List Registries
View all registries in your project:
hc registry list --org devrel --project sd1You can also use the short alias:
hc reg list --org devrel --project sd1
This displays a table with your registries, including their identifiers, package types, and other details.
Artifact Management Examples
Pull Artifacts
Download artifacts from your registry to your local machine.
General syntax:
Flag:
--pkg-url: Full URL to the artifact package (useful for direct access)
Example with package URL:

This downloads the specified artifact to the destination path on your local machine.
Last updated
Was this helpful?