Skip to main content

rhoas_service-registry_artifact_get

rhoas service-registry artifact get#

[beta] Get artifact by ID and group

Synopsis#

Get artifact by specifying ID and group. Command fetches the latest artifact from the registry based on the artifact-id and group.

When --version is specified, the command fetches the specific artifact version. Get command fetches artifacts based on --group and --artifact-id and --version. For fetching artifacts using global identifiers, use the "service-registry download" command

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

rhoas service-registry artifact get [flags]

Examples#

## Get latest artifact with name "my-artifact" and print it out to standard outrhoas service-registry artifact get --artifact-id=my-artifact
## Get latest artifact with name "my-artifact" from group "my-group" and save it to artifact.json filerhoas service-registry artifact get --artifact-id=my-artifact --group=my-group --output-file=artifact.json
## Get latest artifact and pipe it to another commandrhoas service-registry artifact get --artifact-id=my-artifact | grep -i 'user'
## Get artifact with custom version and print it out to standard outrhoas service-registry artifact get --artifact-id=myartifact --version=4

Options#

      --artifact-id string   ID of the artifact  -g, --group string         Artifact group (default "default")      --instance-id string   ID of the Service Registry instance to be used. By default, uses the currently selected instance      --output-file string   Location of the output file      --version string       Version of the artifact

Options inherited from parent commands#

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

SEE ALSO#