- NAME
-
- gcloud artifacts repositories - manage Artifact Registry repositories
- SYNOPSIS
-
-
gcloud artifacts repositories
COMMAND
[GCLOUD_WIDE_FLAG …
]
-
- EXAMPLES
-
To create a repository with the name
my-repo
, run:gcloud artifacts repositories create my-repo
To delete a repository with the name
my-repo
, run:gcloud artifacts repositories delete my-repo
To describe a repository with the name
my-repo
, run:gcloud artifacts repositories describe my-repo
To list all Artifact Registry repositories, run:
gcloud artifacts repositories list
To set an IAM policy for repository
my-repo
, run:gcloud artifacts repositories set-iam-policy my-repo policy.json
To get an IAM policy for repository
my-repo
, run:gcloud artifacts repositories get-iam-policy my-repo
To add an IAM policy binding for the role of 'roles/editor' for the user 'test-user@gmail.com' on repository
my-repo
, run:gcloud artifacts repositories add-iam-policy-binding my-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 repository
my-repo
, run:gcloud artifacts repositories remove-iam-policy-binding my-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
-
is one of the following:COMMAND
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 Registry repository.
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:
gcloud alpha artifacts repositories
gcloud beta artifacts repositories
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-02-06 UTC.