gcloud artifacts repositories

NAME
gcloud artifacts repositories - manage Artifact Registry repositories
SYNOPSIS
gcloud artifacts repositoriesCOMMAND[GCLOUD_WIDE_FLAG]
EXAMPLES
To create a repository with the namemy-repo, run:
gcloudartifactsrepositoriescreatemy-repo

To delete a repository with the namemy-repo, run:

gcloudartifactsrepositoriesdeletemy-repo

To describe a repository with the namemy-repo, run:

gcloudartifactsrepositoriesdescribemy-repo

To list all Artifact Registry repositories, run:

gcloudartifactsrepositorieslist

To set an IAM policy for repositorymy-repo, run:

gcloudartifactsrepositoriesset-iam-policymy-repopolicy.json

To get an IAM policy for repositorymy-repo, run:

gcloudartifactsrepositoriesget-iam-policymy-repo

To add an IAM policy binding for the role of 'roles/editor' for the user'test-user@gmail.com' on repositorymy-repo, run:

gcloudartifactsrepositoriesadd-iam-policy-bindingmy-repo--member='user:test-user@gmail.com'--role='roles/editor'

To remove an IAM policy binding for the role of 'roles/editor' for the user'test-user@gmail.com' on repositorymy-repo, run:

gcloudartifactsrepositoriesremove-iam-policy-bindingmy-repo--member='user:test-user@gmail.com'--role='roles/editor'
GCLOUD WIDE FLAGS
These flags are available to all commands:--help.

Run$gcloud help for details.

COMMANDS
COMMAND is one of the following:
add-iam-policy-binding
Add an IAM policy binding to the IAM policy of an Artifact Registry repository.
create
Create an Artifact Registry repository.
delete
Delete an Artifact Registry repository.
delete-cleanup-policies
Delete cleanup policies from an Artifact Registry repository.
describe
Describe an Artifact Registry repository.
get-iam-policy
Get IAM policy for an Artifact Registry repository.
list
List repositories in the specified project.
list-cleanup-policies
List cleanup policies of an Artifact Registry repository.
remove-iam-policy-binding
Remove an IAM policy binding from the IAM policy of an Artifact Registryrepository.
set-cleanup-policies
Set or update cleanup policies for an Artifact Registry repository.
set-iam-policy
Set the IAM policy for an Artifact Registry repository.
update
Update an Artifact Registry repository.
NOTES
These variants are also available:
gcloudalphaartifactsrepositories
gcloudbetaartifactsrepositories

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.