mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 14:56:05 +00:00
gcloud: Wed May 14 10:45:02 UTC 2025
This commit is contained in:
parent
dfebca5b6c
commit
82f3a66664
423 changed files with 11160 additions and 1149 deletions
|
|
@ -18,52 +18,56 @@ EXAMPLES
|
|||
|
||||
$ gcloud artifacts repositories list --limit=5
|
||||
|
||||
To list repositories with name as `my_repo`:
|
||||
To list repositories with name as my_repo:
|
||||
|
||||
$ gcloud artifacts repositories list \
|
||||
--filter='name="projects/my-project/locations/us/repositories/my\
|
||||
--filter='name="projects/my-project/locations/us/repositories/my\
|
||||
_repo"'
|
||||
|
||||
To list repositories with a given partial name, use `*` to match any character in name:
|
||||
To list repositories with a given partial name, use * to match any
|
||||
character in name:
|
||||
|
||||
$ gcloud artifacts repositories list \
|
||||
--filter='name="projects/my-project/locations/us/repositories/*r\
|
||||
--filter='name="projects/my-project/locations/us/repositories/*r\
|
||||
epo"'
|
||||
|
||||
$ gcloud artifacts repositories list \
|
||||
--filter='name="projects/my-project/locations/us/repositories/my\
|
||||
--filter='name="projects/my-project/locations/us/repositories/my\
|
||||
_*"'
|
||||
|
||||
To list files that have annotations:
|
||||
To list files that have annotations:
|
||||
|
||||
$ gcloud artifacts repositories list --filter=annotations:*
|
||||
|
||||
To list repositories with annotations pair as [annotation_key: annotation_value]
|
||||
To list repositories with annotations pair as [annotation_key:
|
||||
annotation_value]
|
||||
|
||||
$ gcloud artifacts repositories list \
|
||||
--filter='annotations.annotation_key:annotation_value'
|
||||
--filter='annotations.annotation_key:annotation_value'
|
||||
|
||||
To list repositories with annotations containing key as `my_key`:
|
||||
To list repositories with annotations containing key as my_key:
|
||||
|
||||
$ gcloud artifacts repositories list --filter='annotations.my_key'
|
||||
|
||||
If the key or value contains special characters, such as `my.key` or `my.value`, backtick("`") is required:
|
||||
If the key or value contains special characters, such as my.key or
|
||||
my.value, backtick("") is required:
|
||||
|
||||
$ gcloud artifacts repositories list --filter='annotations.`my.key`'
|
||||
|
||||
$ gcloud artifacts repositories list \
|
||||
--filter='annotations.`my.key`:`my.value`'
|
||||
--filter='annotations.`my.key`:`my.value`'
|
||||
|
||||
To list repositories with given partial annotation key or value, use `*` to match any character:
|
||||
To list repositories with given partial annotation key or value, use * to
|
||||
match any character:
|
||||
|
||||
$ gcloud artifacts repositories list \
|
||||
--filter='annotations.*key:`*.value`'
|
||||
--filter='annotations.*key:`*.value`'
|
||||
|
||||
To list repositories ordered by create_time:
|
||||
To list repositories ordered by create_time:
|
||||
|
||||
$ gcloud artifacts repositories list --sort-by=create_time
|
||||
|
||||
To list repositories ordered by update_time reversely:
|
||||
To list repositories ordered by update_time reversely:
|
||||
|
||||
$ gcloud artifacts repositories list--sort-by=~update_time
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue