You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cli/bucket.md
+64-2Lines changed: 64 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -411,11 +411,24 @@ OPTIONS:
411
411
|`--bytes`|`bool`| show sizes in bytes (ie., do not convert to KiB, MiB, GiB, etc.) |`false`|
412
412
|`--name-only`|`bool`| fast request to retrieve only the names of objects in the bucket; if defined, all comma-separated fields in the `--props` flag will be ignored with only two exceptions: `name` and `status`|`false`|
413
413
414
+
### Footer Information:
415
+
416
+
When listing objects, a footer will be displayed showing:
417
+
- Total number of objects listed
418
+
- For remote buckets with `--cached` option: number of objects present in-cluster
419
+
- For `--paged` option: current page number
420
+
- For `--count-only` option: time elapsed to fetch the list
421
+
422
+
Examples of footer variations:
423
+
*`Listed 12345 names`
424
+
*`Listed 12345 names (in-cluster: 456)`
425
+
*`Page 123: 1000 names (in-cluster: none)`
426
+
414
427
### Examples
415
428
416
429
#### List AIS and Cloud buckets with all defaults
417
430
418
-
List objects in the AIS bucket `bucket_name`.
431
+
**1**. List objects in the AIS bucket `bucket_name`.
419
432
420
433
```console
421
434
$ ais ls ais://bucket_name
@@ -425,7 +438,7 @@ shard-1.tar 16.00KiB
425
438
...
426
439
```
427
440
428
-
List objects in the remote bucket `bucket_name`.
441
+
**2**. List objects in the remote bucket `bucket_name`.
429
442
430
443
```console
431
444
ais ls aws://bucket_name
@@ -435,6 +448,55 @@ shard-1.tar 16.00KiB
435
448
...
436
449
```
437
450
451
+
**3**. List objects from a remote AIS cluster with a namespace:
452
+
```
453
+
$ ais ls ais://@Bghort1l#ml/bucket_name
454
+
NAME SIZE VERSION
455
+
shard-0.tar 16.00KiB 1
456
+
shard-1.tar 16.00KiB 1
457
+
...
458
+
```
459
+
460
+
**4**. List objects with paged output (showing page numbers):
461
+
```
462
+
$ ais ls ais://bucket_name --paged --limit 100
463
+
[... object listing ...]
464
+
465
+
Page 1: 100 names
466
+
```
467
+
468
+
**5**. List cached objects from a remote bucket:
469
+
```
470
+
$ ais ls s3://bucket_name --cached
471
+
[... listing of only in-cluster objects ...]
472
+
473
+
Listed 456789 names
474
+
```
475
+
476
+
**6**. Count objects in a bucket:
477
+
```
478
+
$ ais ls s3://bucket_name/aprefix --count-only
479
+
Listed 28,230 names in 5.62s
480
+
```
481
+
482
+
**7**. Count objects with paged output:
483
+
```
484
+
$ ais ls s3://bucket_name/bprefix --count-only --paged
485
+
486
+
Page 1: 1,000 names in 772ms
487
+
Page 2: 1,000 names in 180ms
488
+
Page 3: 1,000 names in 265ms
489
+
...
490
+
Page 29: 230 names in 130ms
491
+
```
492
+
493
+
### Notes:
494
+
495
+
- When using `--paged` with remote buckets, the footer will show both page number and in-cluster object count when applicable
496
+
- The `--diff` option requires remote backends supporting some form of versioning (e.g., object version, checksum, and/or ETag)
497
+
- For more information on working with archived content, see docs/archive.md
498
+
- To fully synchronize in-cluster content with remote backend, see documentation on [out-of-band updates](/docs/out_of_band.md)
0 commit comments