gcloud artifacts repositories - manage Artifact Registry repositories
gcloud artifacts repositories COMMAND [GCLOUD_WIDE_FLAG ...]
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'
These flags are available to all commands: --help.
Run $ gcloud help for details.
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.
- describe
Describe an Artifact Registry repository.
- get-iam-policy
Get IAM policy for an Artifact Registry repository.
- list
List repositories in the specified project.
- remove-iam-policy-binding
Remove an IAM policy binding from the IAM policy of an Artifact Registry repository.
- set-iam-policy
Set the IAM policy for an Artifact Registry repository.
- update
Update an Artifact Registry repository.
These variants are also available:
$ gcloud alpha artifacts repositories
$ gcloud beta artifacts repositories