gcloud alpha artifacts versions - manage Artifact Registry package versions
gcloud alpha artifacts versions COMMAND [GCLOUD_WIDE_FLAG ...]
To list all versions for a package when the artifacts/repository and artifacts/location properties are set to a repository in the current project, run:
$ gcloud alpha artifacts versions list --package=my-pkg
To delete version 1.0.0 under package my-pkg, run:
$ gcloud alpha artifacts versions delete 1.0.0 --package=my-pkg
To delete version 1.0.0 under package my-pkg with its tags, run:
$ gcloud alpha artifacts versions delete 1.0.0 --package=my-pkg \ --delete-tags
These flags are available to all commands: --help.
Run $ gcloud help for details.
COMMAND is one of the following:
- delete
(ALPHA) Delete an Artifact Registry package version.
- list
(ALPHA) List Artifact Registry package versions.
This command is currently in alpha and might change without notice. If this command fails with API permission errors despite specifying the correct project, you might be trying to access an API with an invitation-only early access allowlist. These variants are also available:
$ gcloud artifacts versions
$ gcloud beta artifacts versions