Skip to main content


rhoas service-registry artifact#

[beta] Manage Service Registry artifacts


Manage Service Registry schema and API artifacts in the currently selected Service Registry instance.

Commands are executed on the currently selected Service Registry instance, which can be overridden using the --instance-id flag.

Service Registry enables developers to manage and share the structure of their data. For example, client applications can dynamically push or pull the latest schema or API updates to or from the registry without needing to redeploy. Service Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility.

Artifact commands enable client applications to manage the schema and API artifacts in the registry instance. This set of commands provide create, read, update, and delete operations for artifacts, rules, versions, and metadata.

This command is available as part of the Development Preview release.


## Create artifact in my-group from schema.json filerhoas service-registry artifact create --artifact-id=my-artifact --group=my-group artifact.json
## Get artifact contentrhoas service-registry artifact get --artifact-id=my-artifact --group=my-group --output-file=artifact.json
## Get artifact content by hashrhoas service-registry artifact download --hash=cab4...al9 --output-file=artifact.json
## Delete artifactrhoas service-registry artifact delete --artifact-id=my-artifact
## Get artifact metadatarhoas service-registry artifact metadata --artifact-id=my-artifact --group=my-group
## Update artifactrhoas service-registry artifact update --artifact-id=my-artifact artifact-new.json
## List artifactsrhoas service-registry artifact list --group=my-group --limit=10 page=1
## View artifact versionsrhoas service-registry artifact versions --artifact-id=my-artifact --group=my-group
Artifacts file can be instance of any schema like OpenAPI, Avro etc.For example:

Options inherited from parent commands#

  -h, --help      Show help for a command  -v, --verbose   Enable verbose mode