@@ -17,19 +17,36 @@ func NewArtifactsCommand(f *factory.Factory) *cobra.Command {
1717 cmd := & cobra.Command {
1818 Use : "artifacts" ,
1919 Short : "Manage Service Registry Artifacts commands" ,
20- Long : `Apicurio Registry Artifacts enables developers to manage and share the structure of their data.
21- For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy.
22- Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time.
23- For example, this includes rules for content validation and version compatibility.
24-
25- Registry commands enable client applications to manage the artifacts in the registry.
26- This set of commands provide create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata.` ,
20+ Long : `
21+ Apicurio Registry Artifacts enables developers to manage and share the structure of their data.
22+ For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy.
23+ Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time.
24+ For example, this includes rules for content validation and version compatibility.
25+
26+ Registry commands enable client applications to manage the artifacts in the registry.
27+ This set of commands provide create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata.
28+ ` ,
2729 Example : `
28- ## Create artifact in my-group from schema.json file
29- rhoas service-registry artifacts create my-group schema.json
30+ ## Create artifact in my-group from schema.json file
31+ rhoas service-registry artifact create --artifact=my-artifact --group=my-group artifact.json
32+
33+ ## Get artifact content
34+ rhoas service-registry artifact get --artifact=my-artifact --group=my-group file.json
35+
36+ ## Delete artifact
37+ rhoas service-registry artifact delete --artifact=my-artifact
38+
39+ ## Get artifact metadata
40+ rhoas service-registry artifact metadata --artifact=my-artifact --group=my-group
41+
42+ ## Update artifact
43+ rhoas service-registry artifact update --artifact=my-artifact artifact-new.json
44+
45+ ## List Artifacts
46+ rhoas service-registry artifact list --group=my-group --limit=10 page=1
3047
31- ## List Artifacts
32- rhoas service-registry artifacts list my-group
48+ ## View artifact versions
49+ rhoas service-registry artifact versions --artifact=my-artifact --group= my-group
3350 ` ,
3451 Args : cobra .MinimumNArgs (1 ),
3552 }
0 commit comments