@tigrisdata/cli 2.14.0-beta.2 → 2.14.0-beta.3
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-3LHPCSFG.js +4 -0
- package/dist/chunk-4R4YLHT7.js +7 -0
- package/dist/chunk-52HSMT5H.js +1 -0
- package/dist/chunk-5VDFQRGP.js +2 -0
- package/dist/chunk-7J6WK54T.js +1 -0
- package/dist/chunk-AHGPPFCQ.js +1 -0
- package/dist/{chunk-2XAO2OYD.js → chunk-ATBINUDP.js} +1 -1
- package/dist/chunk-CLO5HM7B.js +1 -0
- package/dist/chunk-DZUJWPQ3.js +8 -0
- package/dist/chunk-EULV7RV7.js +5 -0
- package/dist/{chunk-LCWHZUZZ.js → chunk-NDNMIXDC.js} +1 -1
- package/dist/{chunk-BETAO4PB.js → chunk-PPNBQWSR.js} +1 -1
- package/dist/{chunk-ZK3HJDIZ.js → chunk-RG5EZWTN.js} +1 -1
- package/dist/chunk-RTJM32XN.js +5 -0
- package/dist/chunk-X3GRUJWS.js +1 -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/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 +2 -5
- package/dist/lib/organizations/list.js +1 -4
- package/dist/lib/organizations/select.js +3 -6
- package/dist/lib/presign.js +1 -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 +41 -208
- 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 +25 -15
- 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-5LRGY6RN.js +0 -2
- package/dist/chunk-DHUR7FTP.js +0 -4
- package/dist/chunk-DOUR5YEY.js +0 -1
- package/dist/chunk-E4MLGABW.js +0 -1
- package/dist/chunk-FP2FMNEE.js +0 -8
- package/dist/chunk-GHTFMDGV.js +0 -4
- package/dist/chunk-GZ7JBHFT.js +0 -1
- package/dist/chunk-IJYKPR4W.js +0 -2
- package/dist/chunk-JRALYIRA.js +0 -1
- package/dist/chunk-KH63ANUX.js +0 -1
- package/dist/chunk-S5P27E6L.js +0 -7
- package/dist/chunk-XLRVNE6T.js +0 -1
package/dist/lib/stat.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as w}from"../chunk-WIOXQDND.js";import{a as d,f as c}from"../chunk-CQCBYE3X.js";import{f as j}from"../chunk-NDNMIXDC.js";import{c as O}from"../chunk-EULV7RV7.js";import{a as g,b}from"../chunk-AHGPPFCQ.js";import{b as i}from"../chunk-3FMWZQ3C.js";import"../chunk-DV3LCXRH.js";import{b as k,c as n,i as y}from"../chunk-5VDFQRGP.js";import"../chunk-PPNBQWSR.js";import"../chunk-7J6WK54T.js";import"../chunk-CLO5HM7B.js";import"../chunk-ATBINUDP.js";import{getBucketInfo as A,getStats as I,head as M}from"@tigrisdata/storage";var t=y("stat");async function z(u){k(t);let h=g(u,["path"]),m=b(u),v=g(u,["snapshot-version","snapshotVersion","snapshot"]),f=await O();if(!h){let{data:o,error:r}=await I({config:f});r&&i(t,r);let p=[{metric:"Active Buckets",value:String(o.stats.activeBuckets)},{metric:"Total Objects",value:String(o.stats.totalObjects)},{metric:"Total Unique Objects",value:String(o.stats.totalUniqueObjects)},{metric:"Total Storage",value:d(o.stats.totalStorageBytes)}],l=c(p,m,"stats","stat",[{key:"metric",header:"Metric"},{key:"value",header:"Value"}]);console.log(l),n(t),process.exit(0)}let{bucket:a,path:s}=j(h);if(a||i(t,"Invalid path"),!s||s==="/"){let{data:o,error:r}=await A(a,{config:f});r&&i(t,r);let p=w(o).map(({label:T,value:V})=>({metric:T,value:V})),l=c(p,m,"bucket-info","info",[{key:"metric",header:"Metric"},{key:"value",header:"Value"}]);console.log(l),n(t,{bucket:a}),process.exit(0)}let{data:e,error:S}=await M(s,{...v?{snapshotVersion:v}:{},config:{...f,bucket:a}});S&&i(t,S),e||i(t,"Object not found");let x=[{metric:"Path",value:e.path},{metric:"Size",value:d(e.size)},{metric:"Content-Type",value:e.contentType||"N/A"},{metric:"Content-Disposition",value:e.contentDisposition||"N/A"},{metric:"Modified",value:e.modified.toISOString()}],B=c(x,m,"object-info","info",[{key:"metric",header:"Metric"},{key:"value",header:"Value"}]);console.log(B),n(t,{bucket:a,path:s}),process.exit(0)}export{z as default};
|
package/dist/lib/touch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f
|
|
1
|
+
import{f}from"../chunk-NDNMIXDC.js";import{c as s}from"../chunk-EULV7RV7.js";import{a,b as c}from"../chunk-AHGPPFCQ.js";import{a as t}from"../chunk-3FMWZQ3C.js";import"../chunk-DV3LCXRH.js";import"../chunk-5VDFQRGP.js";import"../chunk-PPNBQWSR.js";import"../chunk-7J6WK54T.js";import"../chunk-CLO5HM7B.js";import"../chunk-ATBINUDP.js";import{put as p}from"@tigrisdata/storage";async function u(e){let i=a(e,["path"]);i||t("path argument is required");let{bucket:o,path:r}=f(i);o||t("Invalid path"),r||t("Object key is required (use mk to create buckets)");let g=c(e),m=await s(),{error:n}=await p(r,"",{config:{...m,bucket:o}});n&&t(n),console.log(g==="json"?JSON.stringify({action:"created",bucket:o,path:r}):`Created '${o}/${r}'`),process.exit(0)}export{u as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as d}from"../chunk-AHGPPFCQ.js";import{a as t,c as l,d as p,e as f}from"../chunk-DZUJWPQ3.js";import{b as m}from"../chunk-3FMWZQ3C.js";import"../chunk-DV3LCXRH.js";import{b as s,c as i,f as a,i as c}from"../chunk-5VDFQRGP.js";import"../chunk-PPNBQWSR.js";import"../chunk-ATBINUDP.js";import{execSync as h}from"child_process";var r=c("update");async function v(u={}){let g=d(u);s(r);try{let o=await f(),e=l(t,o),n=p();if(g==="json"){console.log(JSON.stringify({currentVersion:t,latestVersion:o,updateAvailable:e,updateCommand:n}));return}console.log(`Current version: ${t}`),e?(console.log(`Latest version: ${o}`),console.log("Updating..."),h(n,{stdio:"inherit",...process.platform==="win32"?{shell:"powershell.exe"}:{}}),i(r,{latestVersion:o})):a(r,{currentVersion:t})}catch(o){m(r,o)}}export{v as default};
|
package/dist/lib/whoami.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
`))}catch(
|
|
1
|
+
import{c as y}from"../chunk-EULV7RV7.js";import{b as $}from"../chunk-AHGPPFCQ.js";import{b as m}from"../chunk-3FMWZQ3C.js";import"../chunk-DV3LCXRH.js";import{f as g,i as p}from"../chunk-5VDFQRGP.js";import"../chunk-PPNBQWSR.js";import{d as w}from"../chunk-7J6WK54T.js";import{i as A,m as z,s as O}from"../chunk-CLO5HM7B.js";import"../chunk-ATBINUDP.js";import{listOrganizations as S}from"@tigrisdata/iam";var d=p("whoami");async function k(C={}){try{let u=$(C),a=O(),f=z(),c,l;if(a==="oauth"){let i=w();if(!await i.isAuthenticated()){g(d);return}let o=await i.getIdTokenClaims();c=o.email,l=o.sub}else if(f)c=void 0,l=f.accessKeyId;else{g(d);return}let t=[];t.push(""),t.push("User Information:"),t.push(` Email: ${c||"N/A"}`),t.push(` User ID: ${l||"N/A"}`);let n=[],s;if(a==="oauth"){let i=await y();s=A();let{data:e,error:o}=await S({config:i});if(o&&m(d,o),n=e?.organizations??[],n.length>0){if(t.push(""),t.push(`Organizations (${n.length}):`),n.forEach(r=>{let I=r.id===s?">":" ";t.push(` ${I} ${r.name} (${r.id})`)}),s){let r=n.find(h=>h.id===s);r&&(t.push(""),t.push(`Active: ${r.name}`))}}else t.push(""),t.push("Organizations: None")}else t.push(""),t.push("Login method: Access Key Credentials"),t.push(" (Organization listing requires OAuth login: tigris login)");if(u==="json"){let i={email:c,userId:l,loginMethod:a};if(a==="oauth"&&(i.organizations=n.map(e=>({id:e.id,name:e.name})),s)){let e=n.find(o=>o.id===s);e&&(i.activeOrganization=e.name)}console.log(JSON.stringify(i));return}t.push(""),console.log(t.join(`
|
|
2
|
+
`))}catch(u){m(d,u)}}export{k as default};
|
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
|
|
@@ -452,12 +434,8 @@ commands:
|
|
|
452
434
|
description: Access key ID to use for signing. If not provided, resolved from credentials or prompted interactively
|
|
453
435
|
- name: format
|
|
454
436
|
description: Output format
|
|
455
|
-
alias: f
|
|
456
437
|
options: [url, json]
|
|
457
438
|
default: url
|
|
458
|
-
- name: json
|
|
459
|
-
description: Output as JSON
|
|
460
|
-
type: flag
|
|
461
439
|
|
|
462
440
|
# cp
|
|
463
441
|
- name: cp
|
|
@@ -494,14 +472,6 @@ commands:
|
|
|
494
472
|
type: flag
|
|
495
473
|
alias: r
|
|
496
474
|
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
475
|
|
|
506
476
|
# mv
|
|
507
477
|
- name: mv
|
|
@@ -536,14 +506,7 @@ commands:
|
|
|
536
506
|
- name: force
|
|
537
507
|
type: flag
|
|
538
508
|
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
|
|
509
|
+
description: Skip confirmation prompts (alias for --yes)
|
|
547
510
|
|
|
548
511
|
# rm
|
|
549
512
|
- name: rm
|
|
@@ -573,14 +536,7 @@ commands:
|
|
|
573
536
|
- name: force
|
|
574
537
|
type: flag
|
|
575
538
|
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
|
|
539
|
+
description: Skip confirmation prompts (alias for --yes)
|
|
584
540
|
|
|
585
541
|
#########################
|
|
586
542
|
# Manage organizations
|
|
@@ -608,12 +564,8 @@ commands:
|
|
|
608
564
|
arguments:
|
|
609
565
|
- name: format
|
|
610
566
|
description: Output format
|
|
611
|
-
alias: f
|
|
612
567
|
options: [json, table, xml, select]
|
|
613
568
|
default: select
|
|
614
|
-
- name: json
|
|
615
|
-
description: Output as JSON
|
|
616
|
-
type: flag
|
|
617
569
|
- name: select
|
|
618
570
|
description: Interactive selection mode
|
|
619
571
|
alias: i
|
|
@@ -688,12 +640,8 @@ commands:
|
|
|
688
640
|
arguments:
|
|
689
641
|
- name: format
|
|
690
642
|
description: Output format
|
|
691
|
-
alias: f
|
|
692
643
|
options: [json, table, xml]
|
|
693
644
|
default: table
|
|
694
|
-
- name: json
|
|
695
|
-
description: Output as JSON
|
|
696
|
-
type: flag
|
|
697
645
|
- name: forks-of
|
|
698
646
|
description: Only list buckets that are forks of the named source bucket
|
|
699
647
|
# create
|
|
@@ -761,14 +709,6 @@ commands:
|
|
|
761
709
|
- name: source-snapshot
|
|
762
710
|
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
711
|
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
712
|
# get
|
|
773
713
|
- name: get
|
|
774
714
|
description: Show details for a bucket including access level, region, tier, and custom domain
|
|
@@ -788,19 +728,15 @@ commands:
|
|
|
788
728
|
- my-bucket
|
|
789
729
|
- name: format
|
|
790
730
|
description: Output format
|
|
791
|
-
alias: f
|
|
792
731
|
options: [json, table, xml]
|
|
793
732
|
default: table
|
|
794
|
-
- name: json
|
|
795
|
-
description: Output as JSON
|
|
796
|
-
type: flag
|
|
797
733
|
# delete
|
|
798
734
|
- name: delete
|
|
799
735
|
description: Delete one or more buckets by name. The bucket must be empty or delete-protection must be off
|
|
800
736
|
alias: d
|
|
801
737
|
examples:
|
|
802
|
-
- "tigris buckets delete my-bucket --
|
|
803
|
-
- "tigris buckets delete bucket-a,bucket-b --
|
|
738
|
+
- "tigris buckets delete my-bucket --yes"
|
|
739
|
+
- "tigris buckets delete bucket-a,bucket-b --yes"
|
|
804
740
|
messages:
|
|
805
741
|
onStart: 'Deleting bucket...'
|
|
806
742
|
onSuccess: "Bucket '{{name}}' deleted successfully"
|
|
@@ -818,15 +754,7 @@ commands:
|
|
|
818
754
|
- my-bucket
|
|
819
755
|
- name: force
|
|
820
756
|
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
|
|
757
|
+
description: Skip confirmation prompts (alias for --yes)
|
|
830
758
|
# set
|
|
831
759
|
- name: set
|
|
832
760
|
description: Update settings on an existing bucket such as access level, location, caching, or custom domain
|
|
@@ -874,13 +802,6 @@ commands:
|
|
|
874
802
|
- name: enable-additional-headers
|
|
875
803
|
description: Enable additional HTTP headers (X-Content-Type-Options nosniff)
|
|
876
804
|
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
805
|
# set-ttl
|
|
885
806
|
- name: set-ttl
|
|
886
807
|
description: Configure object expiration (TTL) on a bucket. Objects expire after a number of days or on a specific date
|
|
@@ -1121,12 +1042,8 @@ commands:
|
|
|
1121
1042
|
- my-bucket
|
|
1122
1043
|
- name: format
|
|
1123
1044
|
description: Output format
|
|
1124
|
-
alias: f
|
|
1125
1045
|
options: [json, table, xml]
|
|
1126
1046
|
default: table
|
|
1127
|
-
- name: json
|
|
1128
|
-
description: Output as JSON
|
|
1129
|
-
type: flag
|
|
1130
1047
|
# create
|
|
1131
1048
|
- name: create
|
|
1132
1049
|
description: (Deprecated, use "buckets create --fork-of") Create a new fork (copy-on-write clone) of the source bucket
|
|
@@ -1188,12 +1105,8 @@ commands:
|
|
|
1188
1105
|
- my-bucket
|
|
1189
1106
|
- name: format
|
|
1190
1107
|
description: Output format
|
|
1191
|
-
alias: f
|
|
1192
1108
|
options: [json, table, xml]
|
|
1193
1109
|
default: table
|
|
1194
|
-
- name: json
|
|
1195
|
-
description: Output as JSON
|
|
1196
|
-
type: flag
|
|
1197
1110
|
# take
|
|
1198
1111
|
- name: take
|
|
1199
1112
|
description: Take a new snapshot of the bucket's current state. Optionally provide a name for the snapshot
|
|
@@ -1256,12 +1169,8 @@ commands:
|
|
|
1256
1169
|
alias: p
|
|
1257
1170
|
- name: format
|
|
1258
1171
|
description: Output format
|
|
1259
|
-
alias: f
|
|
1260
1172
|
options: [json, table, xml]
|
|
1261
1173
|
default: table
|
|
1262
|
-
- name: json
|
|
1263
|
-
description: Output as JSON
|
|
1264
|
-
type: flag
|
|
1265
1174
|
- name: snapshot-version
|
|
1266
1175
|
description: Read from a specific bucket snapshot. Accepts a snapshot version string or any UNIX nanosecond-precision timestamp (e.g. 1765889000501544464)
|
|
1267
1176
|
alias: snapshot
|
|
@@ -1299,14 +1208,6 @@ commands:
|
|
|
1299
1208
|
- name: snapshot-version
|
|
1300
1209
|
description: Read from a specific bucket snapshot. Accepts a snapshot version string or any UNIX nanosecond-precision timestamp (e.g. 1765889000501544464)
|
|
1301
1210
|
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
1211
|
# put
|
|
1311
1212
|
- name: put
|
|
1312
1213
|
description: Upload a local file as an object. Content-type is auto-detected from extension unless overridden
|
|
@@ -1349,19 +1250,15 @@ commands:
|
|
|
1349
1250
|
alias: t
|
|
1350
1251
|
- name: format
|
|
1351
1252
|
description: Output format
|
|
1352
|
-
alias: f
|
|
1353
1253
|
options: [json, table, xml]
|
|
1354
1254
|
default: table
|
|
1355
|
-
- name: json
|
|
1356
|
-
description: Output as JSON
|
|
1357
|
-
type: flag
|
|
1358
1255
|
# delete
|
|
1359
1256
|
- name: delete
|
|
1360
1257
|
description: Delete one or more objects by key from the given bucket
|
|
1361
1258
|
alias: d
|
|
1362
1259
|
examples:
|
|
1363
|
-
- "tigris objects delete my-bucket old-file.txt --
|
|
1364
|
-
- "tigris objects delete my-bucket file-a.txt,file-b.txt --
|
|
1260
|
+
- "tigris objects delete my-bucket old-file.txt --yes"
|
|
1261
|
+
- "tigris objects delete my-bucket file-a.txt,file-b.txt --yes"
|
|
1365
1262
|
messages:
|
|
1366
1263
|
onStart: 'Deleting object...'
|
|
1367
1264
|
onSuccess: "Object '{{key}}' deleted successfully"
|
|
@@ -1385,15 +1282,7 @@ commands:
|
|
|
1385
1282
|
- my-file.txt
|
|
1386
1283
|
- name: force
|
|
1387
1284
|
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
|
|
1285
|
+
description: Skip confirmation prompts (alias for --yes)
|
|
1397
1286
|
# set
|
|
1398
1287
|
- name: set
|
|
1399
1288
|
description: Update settings on an existing object such as access level
|
|
@@ -1422,14 +1311,6 @@ commands:
|
|
|
1422
1311
|
- name: new-key
|
|
1423
1312
|
description: Rename the object to a new key
|
|
1424
1313
|
alias: n
|
|
1425
|
-
- name: format
|
|
1426
|
-
description: Output format
|
|
1427
|
-
alias: f
|
|
1428
|
-
options: [json, table]
|
|
1429
|
-
default: table
|
|
1430
|
-
- name: json
|
|
1431
|
-
description: Output as JSON
|
|
1432
|
-
type: flag
|
|
1433
1314
|
|
|
1434
1315
|
#########################
|
|
1435
1316
|
# Manage access keys
|
|
@@ -1455,12 +1336,8 @@ commands:
|
|
|
1455
1336
|
arguments:
|
|
1456
1337
|
- name: format
|
|
1457
1338
|
description: Output format
|
|
1458
|
-
alias: f
|
|
1459
1339
|
options: [json, table, xml]
|
|
1460
1340
|
default: table
|
|
1461
|
-
- name: json
|
|
1462
|
-
description: Output as JSON
|
|
1463
|
-
type: flag
|
|
1464
1341
|
- name: create
|
|
1465
1342
|
description: Create a new access key with the given name. Returns the key ID and secret (shown only once)
|
|
1466
1343
|
alias: c
|
|
@@ -1480,19 +1357,11 @@ commands:
|
|
|
1480
1357
|
required: true
|
|
1481
1358
|
examples:
|
|
1482
1359
|
- 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
1360
|
- name: delete
|
|
1492
1361
|
description: Permanently delete an access key by its ID. This revokes all access immediately
|
|
1493
1362
|
alias: d
|
|
1494
1363
|
examples:
|
|
1495
|
-
- "tigris access-keys delete tid_AaBbCcDdEeFf --
|
|
1364
|
+
- "tigris access-keys delete tid_AaBbCcDdEeFf --yes"
|
|
1496
1365
|
messages:
|
|
1497
1366
|
onStart: 'Deleting access key...'
|
|
1498
1367
|
onSuccess: 'Access key deleted'
|
|
@@ -1506,15 +1375,7 @@ commands:
|
|
|
1506
1375
|
- tid_AaBbCcDdEeFf
|
|
1507
1376
|
- name: force
|
|
1508
1377
|
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
|
|
1378
|
+
description: Skip confirmation prompts (alias for --yes)
|
|
1518
1379
|
- name: get
|
|
1519
1380
|
description: Show details for an access key including its name, creation date, and assigned bucket roles
|
|
1520
1381
|
alias: g
|
|
@@ -1531,14 +1392,6 @@ commands:
|
|
|
1531
1392
|
required: true
|
|
1532
1393
|
examples:
|
|
1533
1394
|
- 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
1395
|
- name: assign
|
|
1543
1396
|
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
1397
|
alias: a
|
|
@@ -1578,14 +1431,6 @@ commands:
|
|
|
1578
1431
|
- name: revoke-roles
|
|
1579
1432
|
description: Revoke all bucket roles from the access key
|
|
1580
1433
|
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
1434
|
|
|
1590
1435
|
#########################
|
|
1591
1436
|
# IAM - Identity and Access Management
|
|
@@ -1618,12 +1463,8 @@ commands:
|
|
|
1618
1463
|
arguments:
|
|
1619
1464
|
- name: format
|
|
1620
1465
|
description: Output format
|
|
1621
|
-
alias: f
|
|
1622
1466
|
options: [json, table, xml]
|
|
1623
1467
|
default: table
|
|
1624
|
-
- name: json
|
|
1625
|
-
description: Output as JSON
|
|
1626
|
-
type: flag
|
|
1627
1468
|
- name: get
|
|
1628
1469
|
description: Show details for a policy including its document and attached users. If no ARN provided, shows interactive selection
|
|
1629
1470
|
alias: g
|
|
@@ -1644,12 +1485,8 @@ commands:
|
|
|
1644
1485
|
- arn:aws:iam::org_id:policy/my-policy
|
|
1645
1486
|
- name: format
|
|
1646
1487
|
description: Output format
|
|
1647
|
-
alias: f
|
|
1648
1488
|
options: [json, table, xml]
|
|
1649
1489
|
default: table
|
|
1650
|
-
- name: json
|
|
1651
|
-
description: Output as JSON
|
|
1652
|
-
type: flag
|
|
1653
1490
|
- name: create
|
|
1654
1491
|
description: Create a new policy with the given name and policy document. Document can be provided via file, inline JSON, or stdin
|
|
1655
1492
|
alias: c
|
|
@@ -1705,7 +1542,7 @@ commands:
|
|
|
1705
1542
|
alias: d
|
|
1706
1543
|
examples:
|
|
1707
1544
|
- "tigris iam policies delete"
|
|
1708
|
-
- "tigris iam policies delete arn:aws:iam::org_id:policy/my-policy --
|
|
1545
|
+
- "tigris iam policies delete arn:aws:iam::org_id:policy/my-policy --yes"
|
|
1709
1546
|
messages:
|
|
1710
1547
|
onStart: 'Deleting policy...'
|
|
1711
1548
|
onSuccess: "Policy '{{resource}}' deleted"
|
|
@@ -1720,7 +1557,7 @@ commands:
|
|
|
1720
1557
|
- arn:aws:iam::org_id:policy/my-policy
|
|
1721
1558
|
- name: force
|
|
1722
1559
|
type: flag
|
|
1723
|
-
description: Skip confirmation
|
|
1560
|
+
description: Skip confirmation prompts (alias for --yes)
|
|
1724
1561
|
|
|
1725
1562
|
- name: users
|
|
1726
1563
|
description: Manage organization users and invitations
|
|
@@ -1744,12 +1581,8 @@ commands:
|
|
|
1744
1581
|
arguments:
|
|
1745
1582
|
- name: format
|
|
1746
1583
|
description: Output format
|
|
1747
|
-
alias: f
|
|
1748
1584
|
options: [json, table, xml]
|
|
1749
1585
|
default: table
|
|
1750
|
-
- name: json
|
|
1751
|
-
description: Output as JSON
|
|
1752
|
-
type: flag
|
|
1753
1586
|
- name: invite
|
|
1754
1587
|
description: Invite users to the organization by email
|
|
1755
1588
|
alias: i
|
|
@@ -1780,8 +1613,8 @@ commands:
|
|
|
1780
1613
|
alias: ri
|
|
1781
1614
|
examples:
|
|
1782
1615
|
- "tigris iam users revoke-invitation"
|
|
1783
|
-
- "tigris iam users revoke-invitation invitation_id --
|
|
1784
|
-
- "tigris iam users revoke-invitation id1,id2,id3 --
|
|
1616
|
+
- "tigris iam users revoke-invitation invitation_id --yes"
|
|
1617
|
+
- "tigris iam users revoke-invitation id1,id2,id3 --yes"
|
|
1785
1618
|
messages:
|
|
1786
1619
|
onStart: 'Revoking invitation...'
|
|
1787
1620
|
onSuccess: "Invitation(s) revoked"
|
|
@@ -1795,7 +1628,7 @@ commands:
|
|
|
1795
1628
|
multiple: true
|
|
1796
1629
|
- name: force
|
|
1797
1630
|
type: flag
|
|
1798
|
-
description: Skip confirmation
|
|
1631
|
+
description: Skip confirmation prompts (alias for --yes)
|
|
1799
1632
|
- name: update-role
|
|
1800
1633
|
description: Update user roles in the organization. If no user ID provided, shows interactive selection
|
|
1801
1634
|
alias: ur
|
|
@@ -1826,8 +1659,8 @@ commands:
|
|
|
1826
1659
|
alias: rm
|
|
1827
1660
|
examples:
|
|
1828
1661
|
- "tigris iam users remove"
|
|
1829
|
-
- "tigris iam users remove user@example.com --
|
|
1830
|
-
- "tigris iam users remove user@example.com,user@example.net --
|
|
1662
|
+
- "tigris iam users remove user@example.com --yes"
|
|
1663
|
+
- "tigris iam users remove user@example.com,user@example.net --yes"
|
|
1831
1664
|
messages:
|
|
1832
1665
|
onStart: 'Removing user...'
|
|
1833
1666
|
onSuccess: "User(s) removed"
|
|
@@ -1841,4 +1674,4 @@ commands:
|
|
|
1841
1674
|
multiple: true
|
|
1842
1675
|
- name: force
|
|
1843
1676
|
type: flag
|
|
1844
|
-
description: Skip confirmation
|
|
1677
|
+
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};
|
package/dist/utils/messages.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i}from"../chunk-5VDFQRGP.js";import"../chunk-PPNBQWSR.js";export{a as interpolate,i as msg,f as printAlreadyDone,h as printDeprecated,e as printEmpty,d as printFailure,g as printHint,b as printStart,c as printSuccess};
|
package/dist/utils/options.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b,c}from"../chunk-AHGPPFCQ.js";export{b as getFormat,a as getOption,c as parseBoolean};
|
package/dist/utils/path.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i}from"../chunk-NDNMIXDC.js";export{g as globToRegex,d as isPathFolder,a as isRemotePath,i as listAllItems,f as parseAnyPath,c as parsePath,e as parsePaths,b as parseRemotePath,h as wildcardPrefix};
|
package/dist/utils/specs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e}from"../chunk-PPNBQWSR.js";export{e as buildPromptChoices,d as getArgumentSpec,c as getCommandSpec,b as loadSpecs,a as setSpecs};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,c as b}from"../chunk-
|
|
1
|
+
import{b as a,c as b,d as c,e as d,f as e}from"../chunk-DZUJWPQ3.js";import"../chunk-ATBINUDP.js";export{e as checkForUpdates,d as fetchLatestVersion,c as getUpdateCommand,b as isNewerVersion,a as readUpdateCache};
|