@tigrisdata/cli 2.14.2 → 2.15.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.
- package/dist/auth/client.js +1 -1
- package/dist/auth/fly.js +1 -1
- package/dist/auth/iam.js +1 -0
- package/dist/auth/provider.js +1 -0
- package/dist/auth/storage.js +1 -1
- package/dist/chunk-3FMWZQ3C.js +4 -0
- package/dist/chunk-4RNEQIK4.js +1 -0
- package/dist/chunk-552FMFE5.js +5 -0
- package/dist/{chunk-2JHVFROL.js → chunk-5VDFQRGP.js} +1 -1
- package/dist/chunk-7RGWTDUP.js +1 -0
- package/dist/chunk-AEADROU6.js +4 -0
- package/dist/chunk-AHGPPFCQ.js +1 -0
- package/dist/{chunk-2XAO2OYD.js → chunk-ATBINUDP.js} +1 -1
- package/dist/chunk-BC2HK4K6.js +1 -0
- package/dist/{chunk-6JUHHFSZ.js → chunk-CMGXGXVC.js} +1 -1
- package/dist/chunk-JQUG732D.js +1 -0
- package/dist/chunk-JVQ7GLJH.js +4 -0
- package/dist/chunk-KCWQ4II7.js +8 -0
- package/dist/{chunk-BETAO4PB.js → chunk-PPNBQWSR.js} +1 -1
- package/dist/chunk-S33FT7Z7.js +8 -0
- package/dist/chunk-ZHAJEGAB.js +2 -0
- package/dist/cli-core.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/access-keys/assign.js +1 -3
- package/dist/lib/access-keys/create.js +1 -3
- package/dist/lib/access-keys/delete.js +1 -3
- package/dist/lib/access-keys/get.js +1 -3
- package/dist/lib/access-keys/list.js +1 -3
- package/dist/lib/buckets/create.js +1 -1
- package/dist/lib/buckets/delete.js +1 -1
- package/dist/lib/buckets/get.js +1 -1
- package/dist/lib/buckets/list.js +1 -1
- package/dist/lib/buckets/set-cors.js +1 -1
- package/dist/lib/buckets/set-locations.js +1 -1
- package/dist/lib/buckets/set-migration.js +1 -1
- package/dist/lib/buckets/set-notifications.js +1 -1
- package/dist/lib/buckets/set-transition.js +1 -1
- package/dist/lib/buckets/set-ttl.js +1 -1
- package/dist/lib/buckets/set.js +1 -1
- package/dist/lib/configure/index.js +1 -1
- package/dist/lib/cp.js +1 -1
- package/dist/lib/credentials/test.js +1 -1
- package/dist/lib/forks/create.js +1 -1
- package/dist/lib/forks/list.js +1 -1
- package/dist/lib/iam/policies/create.js +1 -3
- package/dist/lib/iam/policies/delete.js +1 -3
- package/dist/lib/iam/policies/edit.js +1 -3
- package/dist/lib/iam/policies/get.js +1 -3
- package/dist/lib/iam/policies/list.js +1 -3
- package/dist/lib/iam/users/invite.js +1 -6
- package/dist/lib/iam/users/list.js +4 -9
- package/dist/lib/iam/users/remove.js +1 -6
- package/dist/lib/iam/users/revoke-invitation.js +1 -6
- package/dist/lib/iam/users/update-role.js +1 -6
- package/dist/lib/login/credentials.js +1 -1
- package/dist/lib/login/oauth.js +1 -1
- package/dist/lib/login/select.js +1 -1
- package/dist/lib/logout.js +1 -1
- package/dist/lib/ls.js +1 -1
- package/dist/lib/mk.js +1 -1
- package/dist/lib/mv.js +1 -1
- package/dist/lib/objects/delete.js +1 -1
- package/dist/lib/objects/get.js +1 -1
- package/dist/lib/objects/info.js +1 -0
- package/dist/lib/objects/list.js +1 -1
- package/dist/lib/objects/put.js +1 -1
- package/dist/lib/objects/set.js +1 -1
- package/dist/lib/organizations/create.js +1 -7
- package/dist/lib/organizations/list.js +1 -4
- package/dist/lib/organizations/select.js +3 -6
- package/dist/lib/presign.js +3 -1
- package/dist/lib/rm.js +1 -1
- package/dist/lib/snapshots/list.js +1 -1
- package/dist/lib/snapshots/take.js +1 -1
- package/dist/lib/stat.js +1 -1
- package/dist/lib/touch.js +1 -1
- package/dist/lib/update.js +1 -0
- package/dist/lib/whoami.js +2 -2
- package/dist/specs.yaml +90 -219
- package/dist/utils/exit.js +1 -1
- package/dist/utils/messages.js +1 -1
- package/dist/utils/options.js +1 -1
- package/dist/utils/path.js +1 -1
- package/dist/utils/specs.js +1 -1
- package/dist/utils/update-check.js +1 -1
- package/package.json +29 -19
- package/dist/auth/config.js +0 -1
- package/dist/auth/s3-client.js +0 -1
- package/dist/auth/types.js +0 -0
- package/dist/chunk-2OCXBP2S.js +0 -2
- package/dist/chunk-ATWHUC3K.js +0 -1
- package/dist/chunk-BPIW7V7B.js +0 -4
- package/dist/chunk-DOUR5YEY.js +0 -1
- package/dist/chunk-IBL3RYXP.js +0 -1
- package/dist/chunk-IFEXFA2T.js +0 -1
- package/dist/chunk-JRALYIRA.js +0 -1
- package/dist/chunk-LCWHZUZZ.js +0 -1
- package/dist/chunk-LQ4BU234.js +0 -4
- package/dist/chunk-RJGUZ3B2.js +0 -7
- package/dist/chunk-XBHZ4YXB.js +0 -1
- package/dist/chunk-YY3QLWFZ.js +0 -8
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
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
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
|
|
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
|
|
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
|
|
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,12 +643,8 @@ 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
|
|
699
650
|
# create
|
|
@@ -761,14 +712,6 @@ commands:
|
|
|
761
712
|
- name: source-snapshot
|
|
762
713
|
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
714
|
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
715
|
# get
|
|
773
716
|
- name: get
|
|
774
717
|
description: Show details for a bucket including access level, region, tier, and custom domain
|
|
@@ -788,19 +731,15 @@ commands:
|
|
|
788
731
|
- my-bucket
|
|
789
732
|
- name: format
|
|
790
733
|
description: Output format
|
|
791
|
-
alias: f
|
|
792
734
|
options: [json, table, xml]
|
|
793
735
|
default: table
|
|
794
|
-
- name: json
|
|
795
|
-
description: Output as JSON
|
|
796
|
-
type: flag
|
|
797
736
|
# delete
|
|
798
737
|
- name: delete
|
|
799
738
|
description: Delete one or more buckets by name. The bucket must be empty or delete-protection must be off
|
|
800
739
|
alias: d
|
|
801
740
|
examples:
|
|
802
|
-
- "tigris buckets delete my-bucket --
|
|
803
|
-
- "tigris buckets delete bucket-a,bucket-b --
|
|
741
|
+
- "tigris buckets delete my-bucket --yes"
|
|
742
|
+
- "tigris buckets delete bucket-a,bucket-b --yes"
|
|
804
743
|
messages:
|
|
805
744
|
onStart: 'Deleting bucket...'
|
|
806
745
|
onSuccess: "Bucket '{{name}}' deleted successfully"
|
|
@@ -818,15 +757,7 @@ commands:
|
|
|
818
757
|
- my-bucket
|
|
819
758
|
- name: force
|
|
820
759
|
type: flag
|
|
821
|
-
description: Skip confirmation
|
|
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
|
|
760
|
+
description: Skip confirmation prompts (alias for --yes)
|
|
830
761
|
# set
|
|
831
762
|
- name: set
|
|
832
763
|
description: Update settings on an existing bucket such as access level, location, caching, or custom domain
|
|
@@ -874,13 +805,6 @@ commands:
|
|
|
874
805
|
- name: enable-additional-headers
|
|
875
806
|
description: Enable additional HTTP headers (X-Content-Type-Options nosniff)
|
|
876
807
|
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
808
|
# set-ttl
|
|
885
809
|
- name: set-ttl
|
|
886
810
|
description: Configure object expiration (TTL) on a bucket. Objects expire after a number of days or on a specific date
|
|
@@ -1121,12 +1045,8 @@ commands:
|
|
|
1121
1045
|
- my-bucket
|
|
1122
1046
|
- name: format
|
|
1123
1047
|
description: Output format
|
|
1124
|
-
alias: f
|
|
1125
1048
|
options: [json, table, xml]
|
|
1126
1049
|
default: table
|
|
1127
|
-
- name: json
|
|
1128
|
-
description: Output as JSON
|
|
1129
|
-
type: flag
|
|
1130
1050
|
# create
|
|
1131
1051
|
- name: create
|
|
1132
1052
|
description: (Deprecated, use "buckets create --fork-of") Create a new fork (copy-on-write clone) of the source bucket
|
|
@@ -1188,12 +1108,8 @@ commands:
|
|
|
1188
1108
|
- my-bucket
|
|
1189
1109
|
- name: format
|
|
1190
1110
|
description: Output format
|
|
1191
|
-
alias: f
|
|
1192
1111
|
options: [json, table, xml]
|
|
1193
1112
|
default: table
|
|
1194
|
-
- name: json
|
|
1195
|
-
description: Output as JSON
|
|
1196
|
-
type: flag
|
|
1197
1113
|
# take
|
|
1198
1114
|
- name: take
|
|
1199
1115
|
description: Take a new snapshot of the bucket's current state. Optionally provide a name for the snapshot
|
|
@@ -1230,6 +1146,7 @@ commands:
|
|
|
1230
1146
|
- "tigris objects get my-bucket report.pdf --output ./report.pdf"
|
|
1231
1147
|
- "tigris objects put my-bucket report.pdf ./report.pdf"
|
|
1232
1148
|
- "tigris objects delete my-bucket report.pdf"
|
|
1149
|
+
- "tigris objects info my-bucket report.pdf"
|
|
1233
1150
|
commands:
|
|
1234
1151
|
# list
|
|
1235
1152
|
- name: list
|
|
@@ -1237,6 +1154,8 @@ commands:
|
|
|
1237
1154
|
alias: l
|
|
1238
1155
|
examples:
|
|
1239
1156
|
- "tigris objects list my-bucket"
|
|
1157
|
+
- "tigris objects list t3://my-bucket"
|
|
1158
|
+
- "tigris objects list t3://my-bucket/images/"
|
|
1240
1159
|
- "tigris objects list my-bucket --prefix images/"
|
|
1241
1160
|
- "tigris objects list my-bucket --format json"
|
|
1242
1161
|
messages:
|
|
@@ -1246,22 +1165,20 @@ commands:
|
|
|
1246
1165
|
onEmpty: 'No objects found'
|
|
1247
1166
|
arguments:
|
|
1248
1167
|
- name: bucket
|
|
1249
|
-
description: Name of the bucket
|
|
1168
|
+
description: Name of the bucket, or a path with optional prefix (t3://bucket/prefix/)
|
|
1250
1169
|
type: positional
|
|
1251
1170
|
required: true
|
|
1252
1171
|
examples:
|
|
1253
1172
|
- my-bucket
|
|
1173
|
+
- t3://my-bucket
|
|
1174
|
+
- t3://my-bucket/images/
|
|
1254
1175
|
- name: prefix
|
|
1255
1176
|
description: Filter objects by key prefix (e.g. "images/" to list only images)
|
|
1256
1177
|
alias: p
|
|
1257
1178
|
- name: format
|
|
1258
1179
|
description: Output format
|
|
1259
|
-
alias: f
|
|
1260
1180
|
options: [json, table, xml]
|
|
1261
1181
|
default: table
|
|
1262
|
-
- name: json
|
|
1263
|
-
description: Output as JSON
|
|
1264
|
-
type: flag
|
|
1265
1182
|
- name: snapshot-version
|
|
1266
1183
|
description: Read from a specific bucket snapshot. Accepts a snapshot version string or any UNIX nanosecond-precision timestamp (e.g. 1765889000501544464)
|
|
1267
1184
|
alias: snapshot
|
|
@@ -1271,6 +1188,7 @@ commands:
|
|
|
1271
1188
|
alias: g
|
|
1272
1189
|
examples:
|
|
1273
1190
|
- "tigris objects get my-bucket config.json"
|
|
1191
|
+
- "tigris objects get t3://my-bucket/config.json"
|
|
1274
1192
|
- "tigris objects get my-bucket archive.zip --output ./archive.zip --mode stream"
|
|
1275
1193
|
messages:
|
|
1276
1194
|
onStart: 'Getting object...'
|
|
@@ -1278,15 +1196,15 @@ commands:
|
|
|
1278
1196
|
onFailure: 'Failed to get object'
|
|
1279
1197
|
arguments:
|
|
1280
1198
|
- name: bucket
|
|
1281
|
-
description: Name of the bucket
|
|
1199
|
+
description: Name of the bucket, or a full path (t3://bucket/key)
|
|
1282
1200
|
type: positional
|
|
1283
1201
|
required: true
|
|
1284
1202
|
examples:
|
|
1285
1203
|
- my-bucket
|
|
1204
|
+
- t3://my-bucket/config.json
|
|
1286
1205
|
- name: key
|
|
1287
|
-
description: Key of the object
|
|
1206
|
+
description: Key of the object (omit if bucket contains the full path)
|
|
1288
1207
|
type: positional
|
|
1289
|
-
required: true
|
|
1290
1208
|
examples:
|
|
1291
1209
|
- my-file.txt
|
|
1292
1210
|
- name: output
|
|
@@ -1299,20 +1217,13 @@ commands:
|
|
|
1299
1217
|
- name: snapshot-version
|
|
1300
1218
|
description: Read from a specific bucket snapshot. Accepts a snapshot version string or any UNIX nanosecond-precision timestamp (e.g. 1765889000501544464)
|
|
1301
1219
|
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
1220
|
# put
|
|
1311
1221
|
- name: put
|
|
1312
1222
|
description: Upload a local file as an object. Content-type is auto-detected from extension unless overridden
|
|
1313
1223
|
alias: p
|
|
1314
1224
|
examples:
|
|
1315
1225
|
- "tigris objects put my-bucket report.pdf ./report.pdf"
|
|
1226
|
+
- "tigris objects put t3://my-bucket/report.pdf ./report.pdf"
|
|
1316
1227
|
- "tigris objects put my-bucket logo.png ./logo.png --access public --content-type image/png"
|
|
1317
1228
|
messages:
|
|
1318
1229
|
onStart: 'Uploading object...'
|
|
@@ -1323,15 +1234,15 @@ commands:
|
|
|
1323
1234
|
description: 'Generate a presigned URL for the uploaded object'
|
|
1324
1235
|
arguments:
|
|
1325
1236
|
- name: bucket
|
|
1326
|
-
description: Name of the bucket
|
|
1237
|
+
description: Name of the bucket, or a full path (t3://bucket/key)
|
|
1327
1238
|
type: positional
|
|
1328
1239
|
required: true
|
|
1329
1240
|
examples:
|
|
1330
1241
|
- my-bucket
|
|
1242
|
+
- t3://my-bucket/report.pdf
|
|
1331
1243
|
- name: key
|
|
1332
|
-
description: Key for the object
|
|
1244
|
+
description: Key for the object (omit if bucket contains the full path)
|
|
1333
1245
|
type: positional
|
|
1334
|
-
required: true
|
|
1335
1246
|
examples:
|
|
1336
1247
|
- my-file.txt
|
|
1337
1248
|
- name: file
|
|
@@ -1349,19 +1260,16 @@ commands:
|
|
|
1349
1260
|
alias: t
|
|
1350
1261
|
- name: format
|
|
1351
1262
|
description: Output format
|
|
1352
|
-
alias: f
|
|
1353
1263
|
options: [json, table, xml]
|
|
1354
1264
|
default: table
|
|
1355
|
-
- name: json
|
|
1356
|
-
description: Output as JSON
|
|
1357
|
-
type: flag
|
|
1358
1265
|
# delete
|
|
1359
1266
|
- name: delete
|
|
1360
1267
|
description: Delete one or more objects by key from the given bucket
|
|
1361
1268
|
alias: d
|
|
1362
1269
|
examples:
|
|
1363
|
-
- "tigris objects delete my-bucket old-file.txt --
|
|
1364
|
-
- "tigris objects delete my-bucket
|
|
1270
|
+
- "tigris objects delete my-bucket old-file.txt --yes"
|
|
1271
|
+
- "tigris objects delete t3://my-bucket/old-file.txt --yes"
|
|
1272
|
+
- "tigris objects delete my-bucket file-a.txt,file-b.txt --yes"
|
|
1365
1273
|
messages:
|
|
1366
1274
|
onStart: 'Deleting object...'
|
|
1367
1275
|
onSuccess: "Object '{{key}}' deleted successfully"
|
|
@@ -1371,35 +1279,28 @@ commands:
|
|
|
1371
1279
|
description: 'List remaining objects in the bucket'
|
|
1372
1280
|
arguments:
|
|
1373
1281
|
- name: bucket
|
|
1374
|
-
description: Name of the bucket
|
|
1282
|
+
description: Name of the bucket, or a full path (t3://bucket/key)
|
|
1375
1283
|
type: positional
|
|
1376
1284
|
required: true
|
|
1377
1285
|
examples:
|
|
1378
1286
|
- my-bucket
|
|
1287
|
+
- t3://my-bucket/old-file.txt
|
|
1379
1288
|
- name: key
|
|
1380
|
-
description: Key of the object (comma separated for multiple)
|
|
1289
|
+
description: Key of the object (comma separated for multiple, omit if bucket contains the full path)
|
|
1381
1290
|
type: positional
|
|
1382
|
-
required: true
|
|
1383
1291
|
multiple: true
|
|
1384
1292
|
examples:
|
|
1385
1293
|
- my-file.txt
|
|
1386
1294
|
- name: force
|
|
1387
1295
|
type: flag
|
|
1388
|
-
description: Skip confirmation
|
|
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
|
|
1296
|
+
description: Skip confirmation prompts (alias for --yes)
|
|
1397
1297
|
# set
|
|
1398
1298
|
- name: set
|
|
1399
1299
|
description: Update settings on an existing object such as access level
|
|
1400
1300
|
alias: s
|
|
1401
1301
|
examples:
|
|
1402
1302
|
- "tigris objects set my-bucket my-file.txt --access public"
|
|
1303
|
+
- "tigris objects set t3://my-bucket/my-file.txt --access public"
|
|
1403
1304
|
- "tigris objects set my-bucket my-file.txt --access private"
|
|
1404
1305
|
messages:
|
|
1405
1306
|
onStart: 'Updating object...'
|
|
@@ -1407,13 +1308,12 @@ commands:
|
|
|
1407
1308
|
onFailure: 'Failed to update object'
|
|
1408
1309
|
arguments:
|
|
1409
1310
|
- name: bucket
|
|
1410
|
-
description: Name of the bucket
|
|
1311
|
+
description: Name of the bucket, or a full path (t3://bucket/key)
|
|
1411
1312
|
type: positional
|
|
1412
1313
|
required: true
|
|
1413
1314
|
- name: key
|
|
1414
|
-
description: Key of the object
|
|
1315
|
+
description: Key of the object (omit if bucket contains the full path)
|
|
1415
1316
|
type: positional
|
|
1416
|
-
required: true
|
|
1417
1317
|
- name: access
|
|
1418
1318
|
description: Access level
|
|
1419
1319
|
alias: a
|
|
@@ -1422,14 +1322,33 @@ commands:
|
|
|
1422
1322
|
- name: new-key
|
|
1423
1323
|
description: Rename the object to a new key
|
|
1424
1324
|
alias: n
|
|
1325
|
+
# info
|
|
1326
|
+
- name: info
|
|
1327
|
+
description: Show metadata for an object (content type, size, modified date)
|
|
1328
|
+
alias: i
|
|
1329
|
+
examples:
|
|
1330
|
+
- "tigris objects info my-bucket report.pdf"
|
|
1331
|
+
- "tigris objects info t3://my-bucket/report.pdf"
|
|
1332
|
+
- "tigris objects info my-bucket report.pdf --format json"
|
|
1333
|
+
messages:
|
|
1334
|
+
onStart: ''
|
|
1335
|
+
onSuccess: ''
|
|
1336
|
+
onFailure: 'Failed to get object info'
|
|
1337
|
+
arguments:
|
|
1338
|
+
- name: bucket
|
|
1339
|
+
type: positional
|
|
1340
|
+
required: true
|
|
1341
|
+
description: Name of the bucket, or a full path (t3://bucket/key)
|
|
1342
|
+
- name: key
|
|
1343
|
+
type: positional
|
|
1344
|
+
description: Key of the object (omit if bucket contains the full path)
|
|
1425
1345
|
- name: format
|
|
1426
1346
|
description: Output format
|
|
1427
|
-
|
|
1428
|
-
options: [json, table]
|
|
1347
|
+
options: [json, table, xml]
|
|
1429
1348
|
default: table
|
|
1430
|
-
- name:
|
|
1431
|
-
description:
|
|
1432
|
-
|
|
1349
|
+
- name: snapshot-version
|
|
1350
|
+
description: Read from a specific bucket snapshot
|
|
1351
|
+
alias: snapshot
|
|
1433
1352
|
|
|
1434
1353
|
#########################
|
|
1435
1354
|
# Manage access keys
|
|
@@ -1455,12 +1374,8 @@ commands:
|
|
|
1455
1374
|
arguments:
|
|
1456
1375
|
- name: format
|
|
1457
1376
|
description: Output format
|
|
1458
|
-
alias: f
|
|
1459
1377
|
options: [json, table, xml]
|
|
1460
1378
|
default: table
|
|
1461
|
-
- name: json
|
|
1462
|
-
description: Output as JSON
|
|
1463
|
-
type: flag
|
|
1464
1379
|
- name: create
|
|
1465
1380
|
description: Create a new access key with the given name. Returns the key ID and secret (shown only once)
|
|
1466
1381
|
alias: c
|
|
@@ -1480,19 +1395,11 @@ commands:
|
|
|
1480
1395
|
required: true
|
|
1481
1396
|
examples:
|
|
1482
1397
|
- 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
1398
|
- name: delete
|
|
1492
1399
|
description: Permanently delete an access key by its ID. This revokes all access immediately
|
|
1493
1400
|
alias: d
|
|
1494
1401
|
examples:
|
|
1495
|
-
- "tigris access-keys delete tid_AaBbCcDdEeFf --
|
|
1402
|
+
- "tigris access-keys delete tid_AaBbCcDdEeFf --yes"
|
|
1496
1403
|
messages:
|
|
1497
1404
|
onStart: 'Deleting access key...'
|
|
1498
1405
|
onSuccess: 'Access key deleted'
|
|
@@ -1506,15 +1413,7 @@ commands:
|
|
|
1506
1413
|
- tid_AaBbCcDdEeFf
|
|
1507
1414
|
- name: force
|
|
1508
1415
|
type: flag
|
|
1509
|
-
description: Skip confirmation
|
|
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
|
|
1416
|
+
description: Skip confirmation prompts (alias for --yes)
|
|
1518
1417
|
- name: get
|
|
1519
1418
|
description: Show details for an access key including its name, creation date, and assigned bucket roles
|
|
1520
1419
|
alias: g
|
|
@@ -1531,14 +1430,6 @@ commands:
|
|
|
1531
1430
|
required: true
|
|
1532
1431
|
examples:
|
|
1533
1432
|
- 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
1433
|
- name: assign
|
|
1543
1434
|
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
1435
|
alias: a
|
|
@@ -1578,14 +1469,6 @@ commands:
|
|
|
1578
1469
|
- name: revoke-roles
|
|
1579
1470
|
description: Revoke all bucket roles from the access key
|
|
1580
1471
|
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
1472
|
|
|
1590
1473
|
#########################
|
|
1591
1474
|
# IAM - Identity and Access Management
|
|
@@ -1618,12 +1501,8 @@ commands:
|
|
|
1618
1501
|
arguments:
|
|
1619
1502
|
- name: format
|
|
1620
1503
|
description: Output format
|
|
1621
|
-
alias: f
|
|
1622
1504
|
options: [json, table, xml]
|
|
1623
1505
|
default: table
|
|
1624
|
-
- name: json
|
|
1625
|
-
description: Output as JSON
|
|
1626
|
-
type: flag
|
|
1627
1506
|
- name: get
|
|
1628
1507
|
description: Show details for a policy including its document and attached users. If no ARN provided, shows interactive selection
|
|
1629
1508
|
alias: g
|
|
@@ -1644,12 +1523,8 @@ commands:
|
|
|
1644
1523
|
- arn:aws:iam::org_id:policy/my-policy
|
|
1645
1524
|
- name: format
|
|
1646
1525
|
description: Output format
|
|
1647
|
-
alias: f
|
|
1648
1526
|
options: [json, table, xml]
|
|
1649
1527
|
default: table
|
|
1650
|
-
- name: json
|
|
1651
|
-
description: Output as JSON
|
|
1652
|
-
type: flag
|
|
1653
1528
|
- name: create
|
|
1654
1529
|
description: Create a new policy with the given name and policy document. Document can be provided via file, inline JSON, or stdin
|
|
1655
1530
|
alias: c
|
|
@@ -1705,7 +1580,7 @@ commands:
|
|
|
1705
1580
|
alias: d
|
|
1706
1581
|
examples:
|
|
1707
1582
|
- "tigris iam policies delete"
|
|
1708
|
-
- "tigris iam policies delete arn:aws:iam::org_id:policy/my-policy --
|
|
1583
|
+
- "tigris iam policies delete arn:aws:iam::org_id:policy/my-policy --yes"
|
|
1709
1584
|
messages:
|
|
1710
1585
|
onStart: 'Deleting policy...'
|
|
1711
1586
|
onSuccess: "Policy '{{resource}}' deleted"
|
|
@@ -1720,7 +1595,7 @@ commands:
|
|
|
1720
1595
|
- arn:aws:iam::org_id:policy/my-policy
|
|
1721
1596
|
- name: force
|
|
1722
1597
|
type: flag
|
|
1723
|
-
description: Skip confirmation
|
|
1598
|
+
description: Skip confirmation prompts (alias for --yes)
|
|
1724
1599
|
|
|
1725
1600
|
- name: users
|
|
1726
1601
|
description: Manage organization users and invitations
|
|
@@ -1744,12 +1619,8 @@ commands:
|
|
|
1744
1619
|
arguments:
|
|
1745
1620
|
- name: format
|
|
1746
1621
|
description: Output format
|
|
1747
|
-
alias: f
|
|
1748
1622
|
options: [json, table, xml]
|
|
1749
1623
|
default: table
|
|
1750
|
-
- name: json
|
|
1751
|
-
description: Output as JSON
|
|
1752
|
-
type: flag
|
|
1753
1624
|
- name: invite
|
|
1754
1625
|
description: Invite users to the organization by email
|
|
1755
1626
|
alias: i
|
|
@@ -1780,8 +1651,8 @@ commands:
|
|
|
1780
1651
|
alias: ri
|
|
1781
1652
|
examples:
|
|
1782
1653
|
- "tigris iam users revoke-invitation"
|
|
1783
|
-
- "tigris iam users revoke-invitation invitation_id --
|
|
1784
|
-
- "tigris iam users revoke-invitation id1,id2,id3 --
|
|
1654
|
+
- "tigris iam users revoke-invitation invitation_id --yes"
|
|
1655
|
+
- "tigris iam users revoke-invitation id1,id2,id3 --yes"
|
|
1785
1656
|
messages:
|
|
1786
1657
|
onStart: 'Revoking invitation...'
|
|
1787
1658
|
onSuccess: "Invitation(s) revoked"
|
|
@@ -1795,7 +1666,7 @@ commands:
|
|
|
1795
1666
|
multiple: true
|
|
1796
1667
|
- name: force
|
|
1797
1668
|
type: flag
|
|
1798
|
-
description: Skip confirmation
|
|
1669
|
+
description: Skip confirmation prompts (alias for --yes)
|
|
1799
1670
|
- name: update-role
|
|
1800
1671
|
description: Update user roles in the organization. If no user ID provided, shows interactive selection
|
|
1801
1672
|
alias: ur
|
|
@@ -1826,8 +1697,8 @@ commands:
|
|
|
1826
1697
|
alias: rm
|
|
1827
1698
|
examples:
|
|
1828
1699
|
- "tigris iam users remove"
|
|
1829
|
-
- "tigris iam users remove user@example.com --
|
|
1830
|
-
- "tigris iam users remove user@example.com,user@example.net --
|
|
1700
|
+
- "tigris iam users remove user@example.com --yes"
|
|
1701
|
+
- "tigris iam users remove user@example.com,user@example.net --yes"
|
|
1831
1702
|
messages:
|
|
1832
1703
|
onStart: 'Removing user...'
|
|
1833
1704
|
onSuccess: "User(s) removed"
|
|
@@ -1841,4 +1712,4 @@ commands:
|
|
|
1841
1712
|
multiple: true
|
|
1842
1713
|
- name: force
|
|
1843
1714
|
type: flag
|
|
1844
|
-
description: Skip confirmation
|
|
1715
|
+
description: Skip confirmation prompts (alias for --yes)
|
package/dist/utils/exit.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-3FMWZQ3C.js";import"../chunk-DV3LCXRH.js";import"../chunk-5VDFQRGP.js";import"../chunk-PPNBQWSR.js";export{a as exitWithError,b as failWithError,c as getSuccessNextActions,d as printNextActions};
|