hc artifact command group provides comprehensive artifact management capabilities for Harness Artifact Registry (HAR). Use these commands to list, get, push, pull, copy, delete, and manage metadata for artifacts across multiple package formats.
Available Commands
list
List all artifacts in the registry
get
Get detailed information about artifacts
push
Push artifacts to the registry
pull
Pull artifacts from the registry
copy
Copy artifacts between registries
delete
Delete artifacts or versions
metadata
Manage artifact metadata
Supported Package Types
Harness Artifact Registry supports the following package types:- Generic - Any file type
- NPM - Node.js packages (.tgz)
- Maven - Java packages (.jar, .war)
- Python - Python packages (.whl, .tar.gz)
- Go - Go modules
- NuGet - .NET packages (.nupkg)
- Docker - Container images
- Cargo - Rust packages (.crate)
- Dart - Dart/Flutter packages (.tar.gz)
- Composer - PHP packages
- Conda - Conda packages
- RPM - Red Hat packages
Common Flags
Most artifact commands support these common flags:Registry identifier where the artifact resides
Base URL for the Packages API (defaults to account API base URL)
Authentication
All artifact commands require authentication. Ensure you are logged in usinghc login before executing artifact commands.
Examples
See Also
- Registry Commands - Manage registries
- Authentication - Login to Harness