For the complete documentation index, see llms.txt. This page is also available as Markdown.

Harness CLI (hc) Examples

Examples of various use cases of Harness CLI.

Registry Management Examples

List Registries

View all registries in your project:

hc registry list --org devrel --project sd1

You can also use the short alias:

hc reg list --org devrel --project sd1
Registry List

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:

Pull Generic Artifact

This downloads the specified artifact to the destination path on your local machine.


LEARN MORE

For comprehensive documentation on managing artifacts and registries with the Harness CLI, including additional commands, flags, and advanced usage examples, visit the Artifact Registry CLI documentation.

Last updated

Was this helpful?