Synopsis
Pulls artifacts from Harness Artifact Registry to your local system. Currently supports generic package types with more package types coming soon.Supported Package Types
- Generic
Pull generic artifacts from the registry.
Usage
Arguments
Name of the registry containing the artifact
Path to the package in format:
<package-name>/<version>/<filename>Local path where the file will be saved (directory or file path)
Options
Base URL for the Packages API
Examples
Behavior
Destination is a Directory
- If destination exists and is a directory, file is saved inside it
- Uses filename from Content-Disposition header or package path
- Creates directory if it doesn’t exist
Destination is a File Path
- If destination includes a filename, saves to that exact path
- Creates parent directories if needed
- Overwrites existing file
Progress Tracking
The command shows download progress with file size and transfer speed:Output
After successful download, the command displays JSON with details:Package Path Format
The package path follows this structure:package-name- Name of the package (can include nested paths)version- Version of the packagefilename- Specific file within the package version
Error Handling
Invalid package path format
Invalid package path format
File not found
File not found
hc artifact get to check available files.Permission denied
Permission denied
Empty response
Empty response
Use Cases
Download configuration files
Download configuration files
Retrieve build artifacts
Retrieve build artifacts
Get release packages
Get release packages
Tips
Content-Disposition header - The actual filename is determined by the Content-Disposition header from the server, which may differ from the path component.
Coming Soon
Support for additional package types:- NPM packages
- Maven artifacts
- Python packages
- Docker images
- And more
See Also
- hc artifact push - Push artifacts to registry
- hc artifact list - List available artifacts
- hc artifact get - Get artifact information