@tigrisdata/cli 2.14.3 → 2.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/auth/client.js +1 -1
  2. package/dist/auth/fly.js +1 -1
  3. package/dist/auth/iam.js +1 -0
  4. package/dist/auth/provider.js +1 -0
  5. package/dist/auth/storage.js +1 -1
  6. package/dist/{chunk-WIOXQDND.js → chunk-4ZHCF5D6.js} +1 -1
  7. package/dist/chunk-7TRUGAFK.js +4 -0
  8. package/dist/chunk-ALJKYIQL.js +5 -0
  9. package/dist/{chunk-2XAO2OYD.js → chunk-ATBINUDP.js} +1 -1
  10. package/dist/{chunk-5J2RG53O.js → chunk-AU3RCZHB.js} +1 -1
  11. package/dist/chunk-EYGRHNNY.js +1 -0
  12. package/dist/chunk-GAWFFIPC.js +4 -0
  13. package/dist/chunk-IRDNZN7R.js +7 -0
  14. package/dist/chunk-JQUG732D.js +1 -0
  15. package/dist/chunk-KK7FZ7QM.js +1 -0
  16. package/dist/chunk-LVAJB4FR.js +2 -0
  17. package/dist/chunk-OHGCOC5Q.js +1 -0
  18. package/dist/chunk-PG746YF3.js +3 -0
  19. package/dist/{chunk-BETAO4PB.js → chunk-PPNBQWSR.js} +1 -1
  20. package/dist/chunk-TRRXHLUE.js +8 -0
  21. package/dist/chunk-VAVMX5DC.js +4 -0
  22. package/dist/chunk-YFMOI263.js +1 -0
  23. package/dist/chunk-YYVLDLPP.js +8 -0
  24. package/dist/cli-core.js +1 -1
  25. package/dist/cli.js +1 -1
  26. package/dist/constants.js +1 -1
  27. package/dist/index.js +1 -1
  28. package/dist/lib/access-keys/assign.js +1 -3
  29. package/dist/lib/access-keys/create.js +1 -3
  30. package/dist/lib/access-keys/delete.js +1 -3
  31. package/dist/lib/access-keys/get.js +1 -3
  32. package/dist/lib/access-keys/list.js +1 -3
  33. package/dist/lib/buckets/create.js +1 -1
  34. package/dist/lib/buckets/delete.js +1 -1
  35. package/dist/lib/buckets/get.js +1 -1
  36. package/dist/lib/buckets/list.js +1 -1
  37. package/dist/lib/buckets/set-cors.js +1 -1
  38. package/dist/lib/buckets/set-locations.js +1 -1
  39. package/dist/lib/buckets/set-migration.js +1 -1
  40. package/dist/lib/buckets/set-notifications.js +1 -1
  41. package/dist/lib/buckets/set-transition.js +1 -1
  42. package/dist/lib/buckets/set-ttl.js +1 -1
  43. package/dist/lib/buckets/set.js +1 -1
  44. package/dist/lib/configure/index.js +1 -1
  45. package/dist/lib/cp.js +1 -1
  46. package/dist/lib/credentials/test.js +1 -1
  47. package/dist/lib/forks/create.js +1 -1
  48. package/dist/lib/forks/list.js +1 -1
  49. package/dist/lib/iam/policies/create.js +1 -3
  50. package/dist/lib/iam/policies/delete.js +1 -3
  51. package/dist/lib/iam/policies/edit.js +1 -3
  52. package/dist/lib/iam/policies/get.js +1 -3
  53. package/dist/lib/iam/policies/list.js +1 -3
  54. package/dist/lib/iam/users/invite.js +1 -6
  55. package/dist/lib/iam/users/list.js +4 -9
  56. package/dist/lib/iam/users/remove.js +1 -6
  57. package/dist/lib/iam/users/revoke-invitation.js +1 -6
  58. package/dist/lib/iam/users/update-role.js +1 -6
  59. package/dist/lib/login/credentials.js +1 -1
  60. package/dist/lib/login/oauth.js +1 -1
  61. package/dist/lib/login/select.js +1 -1
  62. package/dist/lib/logout.js +1 -1
  63. package/dist/lib/ls.js +1 -1
  64. package/dist/lib/mk.js +1 -1
  65. package/dist/lib/mv.js +1 -1
  66. package/dist/lib/objects/delete.js +1 -1
  67. package/dist/lib/objects/get.js +1 -1
  68. package/dist/lib/objects/info.js +1 -0
  69. package/dist/lib/objects/list.js +1 -1
  70. package/dist/lib/objects/put.js +1 -1
  71. package/dist/lib/objects/set.js +1 -1
  72. package/dist/lib/organizations/create.js +1 -7
  73. package/dist/lib/organizations/list.js +1 -4
  74. package/dist/lib/organizations/select.js +3 -6
  75. package/dist/lib/presign.js +3 -1
  76. package/dist/lib/rm.js +1 -1
  77. package/dist/lib/snapshots/list.js +1 -1
  78. package/dist/lib/snapshots/take.js +1 -1
  79. package/dist/lib/stat.js +1 -1
  80. package/dist/lib/touch.js +1 -1
  81. package/dist/lib/update.js +1 -0
  82. package/dist/lib/whoami.js +2 -2
  83. package/dist/specs.yaml +110 -219
  84. package/dist/utils/bucket-info.js +1 -1
  85. package/dist/utils/exit.js +1 -1
  86. package/dist/utils/format.js +1 -1
  87. package/dist/utils/messages.js +1 -1
  88. package/dist/utils/options.js +1 -1
  89. package/dist/utils/path.js +1 -1
  90. package/dist/utils/specs.js +1 -1
  91. package/dist/utils/update-check.js +1 -1
  92. package/package.json +30 -23
  93. package/dist/auth/config.js +0 -1
  94. package/dist/auth/s3-client.js +0 -1
  95. package/dist/auth/types.js +0 -0
  96. package/dist/chunk-2ALXOKBR.js +0 -1
  97. package/dist/chunk-2JHVFROL.js +0 -2
  98. package/dist/chunk-6JFWKF3Y.js +0 -8
  99. package/dist/chunk-CFMM35UQ.js +0 -2
  100. package/dist/chunk-CLT45ZCW.js +0 -1
  101. package/dist/chunk-CQCBYE3X.js +0 -6
  102. package/dist/chunk-DOUR5YEY.js +0 -1
  103. package/dist/chunk-IFEXFA2T.js +0 -1
  104. package/dist/chunk-JRALYIRA.js +0 -1
  105. package/dist/chunk-LCWHZUZZ.js +0 -1
  106. package/dist/chunk-LQ4BU234.js +0 -4
  107. package/dist/chunk-RJGUZ3B2.js +0 -7
  108. package/dist/chunk-XBGYA42R.js +0 -4
  109. package/dist/chunk-Y3JRLJCC.js +0 -1
package/dist/specs.yaml CHANGED
@@ -86,6 +86,19 @@ definitions:
86
86
 
87
87
  access_options: &access_options [public, private]
88
88
 
89
+ global_arguments: &global_arguments
90
+ - name: format
91
+ description: Output format
92
+ options: [json, table]
93
+ default: table
94
+ - name: json
95
+ description: Output as JSON
96
+ type: flag
97
+ - name: yes
98
+ description: Skip confirmation prompts
99
+ type: flag
100
+ alias: "y"
101
+
89
102
  commands:
90
103
  #########################
91
104
  # Authentication
@@ -202,15 +215,16 @@ commands:
202
215
  onSuccess: ''
203
216
  onFailure: 'Failed to get user information'
204
217
  onAlreadyDone: "Not authenticated\nRun \"tigris login\" to authenticate"
205
- arguments:
206
- - name: format
207
- description: Output format
208
- alias: f
209
- options: [json, table]
210
- default: table
211
- - name: json
212
- description: Output as JSON
213
- type: flag
218
+ # update
219
+ - name: update
220
+ description: Update the CLI to the latest version
221
+ examples:
222
+ - "tigris update"
223
+ messages:
224
+ onStart: 'Checking for updates...'
225
+ onSuccess: 'Updated to {{latestVersion}}'
226
+ onFailure: 'Failed to update'
227
+ onAlreadyDone: 'Already on the latest version ({{currentVersion}})'
214
228
 
215
229
  # logout
216
230
  - name: logout
@@ -245,14 +259,6 @@ commands:
245
259
  description: Bucket name to test access against (optional)
246
260
  alias: b
247
261
  required: false
248
- - name: format
249
- description: Output format
250
- alias: f
251
- options: [json, table]
252
- default: table
253
- - name: json
254
- description: Output as JSON
255
- type: flag
256
262
 
257
263
 
258
264
  #########################
@@ -284,12 +290,8 @@ commands:
284
290
  alias: snapshot
285
291
  - name: format
286
292
  description: Output format
287
- alias: f
288
293
  options: [json, table, xml]
289
294
  default: table
290
- - name: json
291
- description: Output as JSON
292
- type: flag
293
295
 
294
296
  # mk
295
297
  - name: mk
@@ -353,14 +355,6 @@ commands:
353
355
  - name: source-snapshot
354
356
  description: Fork from a specific snapshot of the source bucket. Accepts a snapshot version string or any UNIX nanosecond-precision timestamp (e.g. 1765889000501544464). Requires --fork-of
355
357
  alias: source-snap
356
- - name: format
357
- description: Output format
358
- alias: f
359
- options: [json, table]
360
- default: table
361
- - name: json
362
- description: Output as JSON
363
- type: flag
364
358
 
365
359
  # touch
366
360
  - name: touch
@@ -378,14 +372,6 @@ commands:
378
372
  examples:
379
373
  - my-bucket/my-file.txt
380
374
  - t3://my-bucket/my-file.txt
381
- - name: format
382
- description: Output format
383
- alias: f
384
- options: [json, table]
385
- default: table
386
- - name: json
387
- description: Output as JSON
388
- type: flag
389
375
 
390
376
  # stat
391
377
  - name: stat
@@ -409,12 +395,8 @@ commands:
409
395
  - t3://my-bucket/my-object.json
410
396
  - name: format
411
397
  description: Output format
412
- alias: f
413
398
  options: [json, table, xml]
414
399
  default: table
415
- - name: json
416
- description: Output as JSON
417
- type: flag
418
400
  - name: snapshot-version
419
401
  description: Read from a specific bucket snapshot. Accepts a snapshot version string or any UNIX nanosecond-precision timestamp (e.g. 1765889000501544464)
420
402
  alias: snapshot
@@ -449,15 +431,14 @@ commands:
449
431
  alias: e
450
432
  default: '3600'
451
433
  - name: access-key
452
- description: Access key ID to use for signing. If not provided, resolved from credentials or prompted interactively
434
+ description: Access key ID to use for signing. If not provided, resolved from credentials or auto-selected
435
+ - name: select
436
+ description: Interactively select an access key (OAuth only)
437
+ type: flag
453
438
  - name: format
454
439
  description: Output format
455
- alias: f
456
440
  options: [url, json]
457
441
  default: url
458
- - name: json
459
- description: Output as JSON
460
- type: flag
461
442
 
462
443
  # cp
463
444
  - name: cp
@@ -494,14 +475,6 @@ commands:
494
475
  type: flag
495
476
  alias: r
496
477
  description: Copy directories recursively
497
- - name: format
498
- description: Output format
499
- alias: f
500
- options: [json, table]
501
- default: table
502
- - name: json
503
- description: Output as JSON
504
- type: flag
505
478
 
506
479
  # mv
507
480
  - name: mv
@@ -536,14 +509,7 @@ commands:
536
509
  - name: force
537
510
  type: flag
538
511
  alias: f
539
- description: Skip confirmation prompt
540
- - name: format
541
- description: Output format
542
- options: [json, table]
543
- default: table
544
- - name: json
545
- description: Output as JSON
546
- type: flag
512
+ description: Skip confirmation prompts (alias for --yes)
547
513
 
548
514
  # rm
549
515
  - name: rm
@@ -573,14 +539,7 @@ commands:
573
539
  - name: force
574
540
  type: flag
575
541
  alias: f
576
- description: Skip confirmation prompt
577
- - name: format
578
- description: Output format
579
- options: [json, table]
580
- default: table
581
- - name: json
582
- description: Output as JSON
583
- type: flag
542
+ description: Skip confirmation prompts (alias for --yes)
584
543
 
585
544
  #########################
586
545
  # Manage organizations
@@ -608,12 +567,8 @@ commands:
608
567
  arguments:
609
568
  - name: format
610
569
  description: Output format
611
- alias: f
612
570
  options: [json, table, xml, select]
613
571
  default: select
614
- - name: json
615
- description: Output as JSON
616
- type: flag
617
572
  - name: select
618
573
  description: Interactive selection mode
619
574
  alias: i
@@ -688,14 +643,15 @@ commands:
688
643
  arguments:
689
644
  - name: format
690
645
  description: Output format
691
- alias: f
692
646
  options: [json, table, xml]
693
647
  default: table
694
- - name: json
695
- description: Output as JSON
696
- type: flag
697
648
  - name: forks-of
698
649
  description: Only list buckets that are forks of the named source bucket
650
+ - name: limit
651
+ description: Maximum number of items to return per page
652
+ - name: page-token
653
+ description: Pagination token from a previous request to fetch the next page
654
+ alias: pt
699
655
  # create
700
656
  - name: create
701
657
  description: Create a new bucket with optional access, tier, and location settings
@@ -761,14 +717,6 @@ commands:
761
717
  - name: source-snapshot
762
718
  description: Fork from a specific snapshot of the source bucket. Accepts a snapshot version string or any UNIX nanosecond-precision timestamp (e.g. 1765889000501544464). Requires --fork-of
763
719
  alias: source-snap
764
- - name: format
765
- description: Output format
766
- alias: f
767
- options: [json, table]
768
- default: table
769
- - name: json
770
- description: Output as JSON
771
- type: flag
772
720
  # get
773
721
  - name: get
774
722
  description: Show details for a bucket including access level, region, tier, and custom domain
@@ -788,19 +736,15 @@ commands:
788
736
  - my-bucket
789
737
  - name: format
790
738
  description: Output format
791
- alias: f
792
739
  options: [json, table, xml]
793
740
  default: table
794
- - name: json
795
- description: Output as JSON
796
- type: flag
797
741
  # delete
798
742
  - name: delete
799
743
  description: Delete one or more buckets by name. The bucket must be empty or delete-protection must be off
800
744
  alias: d
801
745
  examples:
802
- - "tigris buckets delete my-bucket --force"
803
- - "tigris buckets delete bucket-a,bucket-b --force"
746
+ - "tigris buckets delete my-bucket --yes"
747
+ - "tigris buckets delete bucket-a,bucket-b --yes"
804
748
  messages:
805
749
  onStart: 'Deleting bucket...'
806
750
  onSuccess: "Bucket '{{name}}' deleted successfully"
@@ -818,15 +762,7 @@ commands:
818
762
  - my-bucket
819
763
  - name: force
820
764
  type: flag
821
- description: Skip confirmation prompt
822
- - name: format
823
- description: Output format
824
- alias: f
825
- options: [json, table]
826
- default: table
827
- - name: json
828
- description: Output as JSON
829
- type: flag
765
+ description: Skip confirmation prompts (alias for --yes)
830
766
  # set
831
767
  - name: set
832
768
  description: Update settings on an existing bucket such as access level, location, caching, or custom domain
@@ -874,13 +810,6 @@ commands:
874
810
  - name: enable-additional-headers
875
811
  description: Enable additional HTTP headers (X-Content-Type-Options nosniff)
876
812
  type: boolean
877
- - name: format
878
- description: Output format
879
- options: [json, table]
880
- default: table
881
- - name: json
882
- description: Output as JSON
883
- type: flag
884
813
  # set-ttl
885
814
  - name: set-ttl
886
815
  description: Configure object expiration (TTL) on a bucket. Objects expire after a number of days or on a specific date
@@ -1121,12 +1050,8 @@ commands:
1121
1050
  - my-bucket
1122
1051
  - name: format
1123
1052
  description: Output format
1124
- alias: f
1125
1053
  options: [json, table, xml]
1126
1054
  default: table
1127
- - name: json
1128
- description: Output as JSON
1129
- type: flag
1130
1055
  # create
1131
1056
  - name: create
1132
1057
  description: (Deprecated, use "buckets create --fork-of") Create a new fork (copy-on-write clone) of the source bucket
@@ -1188,12 +1113,8 @@ commands:
1188
1113
  - my-bucket
1189
1114
  - name: format
1190
1115
  description: Output format
1191
- alias: f
1192
1116
  options: [json, table, xml]
1193
1117
  default: table
1194
- - name: json
1195
- description: Output as JSON
1196
- type: flag
1197
1118
  # take
1198
1119
  - name: take
1199
1120
  description: Take a new snapshot of the bucket's current state. Optionally provide a name for the snapshot
@@ -1230,6 +1151,7 @@ commands:
1230
1151
  - "tigris objects get my-bucket report.pdf --output ./report.pdf"
1231
1152
  - "tigris objects put my-bucket report.pdf ./report.pdf"
1232
1153
  - "tigris objects delete my-bucket report.pdf"
1154
+ - "tigris objects info my-bucket report.pdf"
1233
1155
  commands:
1234
1156
  # list
1235
1157
  - name: list
@@ -1237,6 +1159,8 @@ commands:
1237
1159
  alias: l
1238
1160
  examples:
1239
1161
  - "tigris objects list my-bucket"
1162
+ - "tigris objects list t3://my-bucket"
1163
+ - "tigris objects list t3://my-bucket/images/"
1240
1164
  - "tigris objects list my-bucket --prefix images/"
1241
1165
  - "tigris objects list my-bucket --format json"
1242
1166
  messages:
@@ -1246,31 +1170,35 @@ commands:
1246
1170
  onEmpty: 'No objects found'
1247
1171
  arguments:
1248
1172
  - name: bucket
1249
- description: Name of the bucket
1173
+ description: Name of the bucket, or a path with optional prefix (t3://bucket/prefix/)
1250
1174
  type: positional
1251
1175
  required: true
1252
1176
  examples:
1253
1177
  - my-bucket
1178
+ - t3://my-bucket
1179
+ - t3://my-bucket/images/
1254
1180
  - name: prefix
1255
1181
  description: Filter objects by key prefix (e.g. "images/" to list only images)
1256
1182
  alias: p
1257
1183
  - name: format
1258
1184
  description: Output format
1259
- alias: f
1260
1185
  options: [json, table, xml]
1261
1186
  default: table
1262
- - name: json
1263
- description: Output as JSON
1264
- type: flag
1265
1187
  - name: snapshot-version
1266
1188
  description: Read from a specific bucket snapshot. Accepts a snapshot version string or any UNIX nanosecond-precision timestamp (e.g. 1765889000501544464)
1267
1189
  alias: snapshot
1190
+ - name: limit
1191
+ description: Maximum number of items to return per page
1192
+ - name: page-token
1193
+ description: Pagination token from a previous request to fetch the next page
1194
+ alias: pt
1268
1195
  # get
1269
1196
  - name: get
1270
1197
  description: Download an object by key. Prints to stdout by default, or saves to a file with --output
1271
1198
  alias: g
1272
1199
  examples:
1273
1200
  - "tigris objects get my-bucket config.json"
1201
+ - "tigris objects get t3://my-bucket/config.json"
1274
1202
  - "tigris objects get my-bucket archive.zip --output ./archive.zip --mode stream"
1275
1203
  messages:
1276
1204
  onStart: 'Getting object...'
@@ -1278,15 +1206,15 @@ commands:
1278
1206
  onFailure: 'Failed to get object'
1279
1207
  arguments:
1280
1208
  - name: bucket
1281
- description: Name of the bucket
1209
+ description: Name of the bucket, or a full path (t3://bucket/key)
1282
1210
  type: positional
1283
1211
  required: true
1284
1212
  examples:
1285
1213
  - my-bucket
1214
+ - t3://my-bucket/config.json
1286
1215
  - name: key
1287
- description: Key of the object
1216
+ description: Key of the object (omit if bucket contains the full path)
1288
1217
  type: positional
1289
- required: true
1290
1218
  examples:
1291
1219
  - my-file.txt
1292
1220
  - name: output
@@ -1299,20 +1227,13 @@ commands:
1299
1227
  - name: snapshot-version
1300
1228
  description: Read from a specific bucket snapshot. Accepts a snapshot version string or any UNIX nanosecond-precision timestamp (e.g. 1765889000501544464)
1301
1229
  alias: snapshot
1302
- - name: format
1303
- description: Output format
1304
- alias: f
1305
- options: [json, table]
1306
- default: table
1307
- - name: json
1308
- description: Output as JSON
1309
- type: flag
1310
1230
  # put
1311
1231
  - name: put
1312
1232
  description: Upload a local file as an object. Content-type is auto-detected from extension unless overridden
1313
1233
  alias: p
1314
1234
  examples:
1315
1235
  - "tigris objects put my-bucket report.pdf ./report.pdf"
1236
+ - "tigris objects put t3://my-bucket/report.pdf ./report.pdf"
1316
1237
  - "tigris objects put my-bucket logo.png ./logo.png --access public --content-type image/png"
1317
1238
  messages:
1318
1239
  onStart: 'Uploading object...'
@@ -1323,15 +1244,15 @@ commands:
1323
1244
  description: 'Generate a presigned URL for the uploaded object'
1324
1245
  arguments:
1325
1246
  - name: bucket
1326
- description: Name of the bucket
1247
+ description: Name of the bucket, or a full path (t3://bucket/key)
1327
1248
  type: positional
1328
1249
  required: true
1329
1250
  examples:
1330
1251
  - my-bucket
1252
+ - t3://my-bucket/report.pdf
1331
1253
  - name: key
1332
- description: Key for the object
1254
+ description: Key for the object (omit if bucket contains the full path)
1333
1255
  type: positional
1334
- required: true
1335
1256
  examples:
1336
1257
  - my-file.txt
1337
1258
  - name: file
@@ -1349,19 +1270,16 @@ commands:
1349
1270
  alias: t
1350
1271
  - name: format
1351
1272
  description: Output format
1352
- alias: f
1353
1273
  options: [json, table, xml]
1354
1274
  default: table
1355
- - name: json
1356
- description: Output as JSON
1357
- type: flag
1358
1275
  # delete
1359
1276
  - name: delete
1360
1277
  description: Delete one or more objects by key from the given bucket
1361
1278
  alias: d
1362
1279
  examples:
1363
- - "tigris objects delete my-bucket old-file.txt --force"
1364
- - "tigris objects delete my-bucket file-a.txt,file-b.txt --force"
1280
+ - "tigris objects delete my-bucket old-file.txt --yes"
1281
+ - "tigris objects delete t3://my-bucket/old-file.txt --yes"
1282
+ - "tigris objects delete my-bucket file-a.txt,file-b.txt --yes"
1365
1283
  messages:
1366
1284
  onStart: 'Deleting object...'
1367
1285
  onSuccess: "Object '{{key}}' deleted successfully"
@@ -1371,35 +1289,28 @@ commands:
1371
1289
  description: 'List remaining objects in the bucket'
1372
1290
  arguments:
1373
1291
  - name: bucket
1374
- description: Name of the bucket
1292
+ description: Name of the bucket, or a full path (t3://bucket/key)
1375
1293
  type: positional
1376
1294
  required: true
1377
1295
  examples:
1378
1296
  - my-bucket
1297
+ - t3://my-bucket/old-file.txt
1379
1298
  - name: key
1380
- description: Key of the object (comma separated for multiple)
1299
+ description: Key of the object (comma separated for multiple, omit if bucket contains the full path)
1381
1300
  type: positional
1382
- required: true
1383
1301
  multiple: true
1384
1302
  examples:
1385
1303
  - my-file.txt
1386
1304
  - name: force
1387
1305
  type: flag
1388
- description: Skip confirmation prompt
1389
- - name: format
1390
- description: Output format
1391
- alias: f
1392
- options: [json, table]
1393
- default: table
1394
- - name: json
1395
- description: Output as JSON
1396
- type: flag
1306
+ description: Skip confirmation prompts (alias for --yes)
1397
1307
  # set
1398
1308
  - name: set
1399
1309
  description: Update settings on an existing object such as access level
1400
1310
  alias: s
1401
1311
  examples:
1402
1312
  - "tigris objects set my-bucket my-file.txt --access public"
1313
+ - "tigris objects set t3://my-bucket/my-file.txt --access public"
1403
1314
  - "tigris objects set my-bucket my-file.txt --access private"
1404
1315
  messages:
1405
1316
  onStart: 'Updating object...'
@@ -1407,13 +1318,12 @@ commands:
1407
1318
  onFailure: 'Failed to update object'
1408
1319
  arguments:
1409
1320
  - name: bucket
1410
- description: Name of the bucket
1321
+ description: Name of the bucket, or a full path (t3://bucket/key)
1411
1322
  type: positional
1412
1323
  required: true
1413
1324
  - name: key
1414
- description: Key of the object
1325
+ description: Key of the object (omit if bucket contains the full path)
1415
1326
  type: positional
1416
- required: true
1417
1327
  - name: access
1418
1328
  description: Access level
1419
1329
  alias: a
@@ -1422,14 +1332,33 @@ commands:
1422
1332
  - name: new-key
1423
1333
  description: Rename the object to a new key
1424
1334
  alias: n
1335
+ # info
1336
+ - name: info
1337
+ description: Show metadata for an object (content type, size, modified date)
1338
+ alias: i
1339
+ examples:
1340
+ - "tigris objects info my-bucket report.pdf"
1341
+ - "tigris objects info t3://my-bucket/report.pdf"
1342
+ - "tigris objects info my-bucket report.pdf --format json"
1343
+ messages:
1344
+ onStart: ''
1345
+ onSuccess: ''
1346
+ onFailure: 'Failed to get object info'
1347
+ arguments:
1348
+ - name: bucket
1349
+ type: positional
1350
+ required: true
1351
+ description: Name of the bucket, or a full path (t3://bucket/key)
1352
+ - name: key
1353
+ type: positional
1354
+ description: Key of the object (omit if bucket contains the full path)
1425
1355
  - name: format
1426
1356
  description: Output format
1427
- alias: f
1428
- options: [json, table]
1357
+ options: [json, table, xml]
1429
1358
  default: table
1430
- - name: json
1431
- description: Output as JSON
1432
- type: flag
1359
+ - name: snapshot-version
1360
+ description: Read from a specific bucket snapshot
1361
+ alias: snapshot
1433
1362
 
1434
1363
  #########################
1435
1364
  # Manage access keys
@@ -1455,12 +1384,13 @@ commands:
1455
1384
  arguments:
1456
1385
  - name: format
1457
1386
  description: Output format
1458
- alias: f
1459
1387
  options: [json, table, xml]
1460
1388
  default: table
1461
- - name: json
1462
- description: Output as JSON
1463
- type: flag
1389
+ - name: limit
1390
+ description: Maximum number of items to return per page
1391
+ - name: page-token
1392
+ description: Pagination token from a previous request to fetch the next page
1393
+ alias: pt
1464
1394
  - name: create
1465
1395
  description: Create a new access key with the given name. Returns the key ID and secret (shown only once)
1466
1396
  alias: c
@@ -1480,19 +1410,11 @@ commands:
1480
1410
  required: true
1481
1411
  examples:
1482
1412
  - my-key
1483
- - name: format
1484
- description: Output format
1485
- alias: f
1486
- options: [json, table]
1487
- default: table
1488
- - name: json
1489
- description: Output as JSON
1490
- type: flag
1491
1413
  - name: delete
1492
1414
  description: Permanently delete an access key by its ID. This revokes all access immediately
1493
1415
  alias: d
1494
1416
  examples:
1495
- - "tigris access-keys delete tid_AaBbCcDdEeFf --force"
1417
+ - "tigris access-keys delete tid_AaBbCcDdEeFf --yes"
1496
1418
  messages:
1497
1419
  onStart: 'Deleting access key...'
1498
1420
  onSuccess: 'Access key deleted'
@@ -1506,15 +1428,7 @@ commands:
1506
1428
  - tid_AaBbCcDdEeFf
1507
1429
  - name: force
1508
1430
  type: flag
1509
- description: Skip confirmation prompt
1510
- - name: format
1511
- description: Output format
1512
- alias: f
1513
- options: [json, table]
1514
- default: table
1515
- - name: json
1516
- description: Output as JSON
1517
- type: flag
1431
+ description: Skip confirmation prompts (alias for --yes)
1518
1432
  - name: get
1519
1433
  description: Show details for an access key including its name, creation date, and assigned bucket roles
1520
1434
  alias: g
@@ -1531,14 +1445,6 @@ commands:
1531
1445
  required: true
1532
1446
  examples:
1533
1447
  - tid_AaBbCcDdEeFf
1534
- - name: format
1535
- description: Output format
1536
- alias: f
1537
- options: [json, table]
1538
- default: table
1539
- - name: json
1540
- description: Output as JSON
1541
- type: flag
1542
1448
  - name: assign
1543
1449
  description: Assign per-bucket roles to an access key. Pair each --bucket with a --role (Editor or ReadOnly), or use --admin for org-wide access
1544
1450
  alias: a
@@ -1578,14 +1484,6 @@ commands:
1578
1484
  - name: revoke-roles
1579
1485
  description: Revoke all bucket roles from the access key
1580
1486
  type: flag
1581
- - name: format
1582
- description: Output format
1583
- alias: f
1584
- options: [json, table]
1585
- default: table
1586
- - name: json
1587
- description: Output as JSON
1588
- type: flag
1589
1487
 
1590
1488
  #########################
1591
1489
  # IAM - Identity and Access Management
@@ -1618,12 +1516,13 @@ commands:
1618
1516
  arguments:
1619
1517
  - name: format
1620
1518
  description: Output format
1621
- alias: f
1622
1519
  options: [json, table, xml]
1623
1520
  default: table
1624
- - name: json
1625
- description: Output as JSON
1626
- type: flag
1521
+ - name: limit
1522
+ description: Maximum number of items to return per page
1523
+ - name: page-token
1524
+ description: Pagination token from a previous request to fetch the next page
1525
+ alias: pt
1627
1526
  - name: get
1628
1527
  description: Show details for a policy including its document and attached users. If no ARN provided, shows interactive selection
1629
1528
  alias: g
@@ -1644,12 +1543,8 @@ commands:
1644
1543
  - arn:aws:iam::org_id:policy/my-policy
1645
1544
  - name: format
1646
1545
  description: Output format
1647
- alias: f
1648
1546
  options: [json, table, xml]
1649
1547
  default: table
1650
- - name: json
1651
- description: Output as JSON
1652
- type: flag
1653
1548
  - name: create
1654
1549
  description: Create a new policy with the given name and policy document. Document can be provided via file, inline JSON, or stdin
1655
1550
  alias: c
@@ -1705,7 +1600,7 @@ commands:
1705
1600
  alias: d
1706
1601
  examples:
1707
1602
  - "tigris iam policies delete"
1708
- - "tigris iam policies delete arn:aws:iam::org_id:policy/my-policy --force"
1603
+ - "tigris iam policies delete arn:aws:iam::org_id:policy/my-policy --yes"
1709
1604
  messages:
1710
1605
  onStart: 'Deleting policy...'
1711
1606
  onSuccess: "Policy '{{resource}}' deleted"
@@ -1720,7 +1615,7 @@ commands:
1720
1615
  - arn:aws:iam::org_id:policy/my-policy
1721
1616
  - name: force
1722
1617
  type: flag
1723
- description: Skip confirmation prompt
1618
+ description: Skip confirmation prompts (alias for --yes)
1724
1619
 
1725
1620
  - name: users
1726
1621
  description: Manage organization users and invitations
@@ -1744,12 +1639,8 @@ commands:
1744
1639
  arguments:
1745
1640
  - name: format
1746
1641
  description: Output format
1747
- alias: f
1748
1642
  options: [json, table, xml]
1749
1643
  default: table
1750
- - name: json
1751
- description: Output as JSON
1752
- type: flag
1753
1644
  - name: invite
1754
1645
  description: Invite users to the organization by email
1755
1646
  alias: i
@@ -1780,8 +1671,8 @@ commands:
1780
1671
  alias: ri
1781
1672
  examples:
1782
1673
  - "tigris iam users revoke-invitation"
1783
- - "tigris iam users revoke-invitation invitation_id --force"
1784
- - "tigris iam users revoke-invitation id1,id2,id3 --force"
1674
+ - "tigris iam users revoke-invitation invitation_id --yes"
1675
+ - "tigris iam users revoke-invitation id1,id2,id3 --yes"
1785
1676
  messages:
1786
1677
  onStart: 'Revoking invitation...'
1787
1678
  onSuccess: "Invitation(s) revoked"
@@ -1795,7 +1686,7 @@ commands:
1795
1686
  multiple: true
1796
1687
  - name: force
1797
1688
  type: flag
1798
- description: Skip confirmation prompt
1689
+ description: Skip confirmation prompts (alias for --yes)
1799
1690
  - name: update-role
1800
1691
  description: Update user roles in the organization. If no user ID provided, shows interactive selection
1801
1692
  alias: ur
@@ -1826,8 +1717,8 @@ commands:
1826
1717
  alias: rm
1827
1718
  examples:
1828
1719
  - "tigris iam users remove"
1829
- - "tigris iam users remove user@example.com --force"
1830
- - "tigris iam users remove user@example.com,user@example.net --force"
1720
+ - "tigris iam users remove user@example.com --yes"
1721
+ - "tigris iam users remove user@example.com,user@example.net --yes"
1831
1722
  messages:
1832
1723
  onStart: 'Removing user...'
1833
1724
  onSuccess: "User(s) removed"
@@ -1841,4 +1732,4 @@ commands:
1841
1732
  multiple: true
1842
1733
  - name: force
1843
1734
  type: flag
1844
- description: Skip confirmation prompt
1735
+ description: Skip confirmation prompts (alias for --yes)