Usage
Arguments
Unique identifier for the registry. Must follow naming conventions:
- Only lowercase letters, numbers, hyphens, and underscores
- Must start with a letter
- Maximum 63 characters
Options
Description of the registry
Package type for the registry. Supported types:
- DOCKER
- MAVEN
- NPM
- HELM
- PYTHON
- NUGET
- GO
- GENERIC
- CONDA
- COMPOSER
- DART
Examples (Planned)
Create a Docker Registry
Create an NPM Registry
Create a Maven Registry
Create a Python Registry
Create a Generic Registry
Supported Package Types
Package Type Details
| Package Type | Use Case | Typical Clients |
|---|---|---|
| DOCKER | Container images | docker, podman |
| NPM | Node.js packages | npm, yarn, pnpm |
| MAVEN | Java artifacts | mvn, gradle |
| PYTHON | Python packages | pip, poetry, pipenv |
| HELM | Kubernetes charts | helm |
| NUGET | .NET packages | nuget, dotnet |
| GO | Go modules | go get |
| GENERIC | Any file type | curl, wget |
| CONDA | Conda packages | conda |
| COMPOSER | PHP packages | composer |
| DART | Dart/Flutter packages | dart, flutter |
Registry Naming Conventions
Registry identifiers must follow these rules:- Allowed characters: lowercase letters (a-z), numbers (0-9), hyphens (-), underscores (_)
- First character: Must be a letter
- Length: 1-63 characters
- Uniqueness: Must be unique within the account/org/project scope
Valid Names
Invalid Names
Registry Hierarchy
Registries are created at the project level by default. The scope is determined by your authentication context:Default Settings
When created, registries have these default settings:- Package type: DOCKER (if not specified)
- Registry type: VIRTUAL (supports upstream registries)
- Access: Private (authentication required)
- Cleanup policies: None (manual cleanup required)
After Creation
Once created, you can:-
Configure client access:
-
Add metadata:
-
View details:
Implementation Status
This command structure is defined but the implementation returns:Use the Harness UI to create registries until CLI support is complete.
Alternative: Create via UI
To create a registry using the Harness UI:- Navigate to Artifacts > Registries
- Click + New Registry
- Select package type
- Enter identifier and description
- Configure advanced settings
- Click Create
Related Commands
- hc registry list - List existing registries
- hc registry get - Get registry details
- hc registry delete - Delete a registry
- hc registry configure - Configure package managers