@tigrisdata/cli 2.6.2 → 2.7.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/README.md +242 -80
- package/dist/auth/client.js +1 -1
- package/dist/auth/config.js +1 -1
- package/dist/auth/s3-client.js +1 -1
- package/dist/auth/storage.js +1 -1
- package/dist/{chunk-6U4U4JM6.js → chunk-7F4WI32C.js} +1 -1
- package/dist/chunk-BP52O7NB.js +1 -0
- package/dist/{chunk-QZXBLNMQ.js → chunk-DC3ZKGQV.js} +1 -1
- package/dist/chunk-EXTBL5CE.js +12 -0
- package/dist/{chunk-DJIPPZGR.js → chunk-HCOG24E2.js} +1 -1
- package/dist/chunk-NYQG3EX3.js +8 -0
- package/dist/chunk-PRJKBTQP.js +2 -0
- package/dist/{chunk-JVB3Y42V.js → chunk-UUITLEOI.js} +1 -1
- package/dist/{chunk-HE7E7ZMA.js → chunk-VT3KZHZZ.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 +2 -2
- package/dist/lib/access-keys/create.js +2 -2
- package/dist/lib/access-keys/delete.js +2 -2
- package/dist/lib/access-keys/get.js +2 -2
- package/dist/lib/access-keys/list.js +2 -2
- 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.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/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/organizations/create.js +2 -2
- package/dist/lib/organizations/list.js +2 -2
- package/dist/lib/organizations/select.js +3 -3
- 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/touch.js +1 -1
- package/dist/lib/whoami.js +1 -1
- package/dist/specs.yaml +210 -64
- package/dist/utils/update-check.js +1 -1
- package/package.json +3 -1
- package/postinstall.cjs +32 -0
- package/dist/chunk-D63SZLT5.js +0 -1
- package/dist/chunk-ESJWTUFN.js +0 -1
- package/dist/chunk-TPUZYSCZ.js +0 -12
- package/dist/chunk-TUJTXB5G.js +0 -8
package/dist/specs.yaml
CHANGED
|
@@ -79,8 +79,11 @@ commands:
|
|
|
79
79
|
#########################
|
|
80
80
|
# configure
|
|
81
81
|
- name: configure
|
|
82
|
-
description: Save credentials
|
|
82
|
+
description: Save access-key credentials to ~/.tigris/config.json for persistent use across all commands
|
|
83
83
|
alias: c
|
|
84
|
+
examples:
|
|
85
|
+
- "tigris configure --access-key tid_AaBb --access-secret tsec_XxYy"
|
|
86
|
+
- "tigris configure --endpoint https://custom.endpoint.dev"
|
|
84
87
|
messages:
|
|
85
88
|
onStart: 'Saving credentials...'
|
|
86
89
|
onSuccess: 'Credentials saved to ~/.tigris/config.json. You can now use all tigris commands.'
|
|
@@ -101,7 +104,11 @@ commands:
|
|
|
101
104
|
|
|
102
105
|
# login
|
|
103
106
|
- name: login
|
|
104
|
-
description: Start a session
|
|
107
|
+
description: Start a session via OAuth (default) or temporary credentials. Session state is cleared on logout
|
|
108
|
+
examples:
|
|
109
|
+
- "tigris login"
|
|
110
|
+
- "tigris login oauth"
|
|
111
|
+
- "tigris login credentials --access-key tid_AaBb --access-secret tsec_XxYy"
|
|
105
112
|
messages:
|
|
106
113
|
onStart: ''
|
|
107
114
|
onSuccess: 'Login successful'
|
|
@@ -126,8 +133,10 @@ commands:
|
|
|
126
133
|
onFailure: 'Login failed'
|
|
127
134
|
# oauth
|
|
128
135
|
- name: oauth
|
|
129
|
-
description: Login via browser
|
|
136
|
+
description: Login via browser using OAuth2 device flow. Best for interactive use
|
|
130
137
|
alias: o
|
|
138
|
+
examples:
|
|
139
|
+
- "tigris login oauth"
|
|
131
140
|
messages:
|
|
132
141
|
onStart: 'Opening browser for authentication...'
|
|
133
142
|
onSuccess: "Logged in successfully\nOrganization '{{org}}' selected"
|
|
@@ -136,8 +145,11 @@ commands:
|
|
|
136
145
|
hint: "You have {{count}} organizations.\nRun \"tigris orgs list\" to switch."
|
|
137
146
|
# credentials
|
|
138
147
|
- name: credentials
|
|
139
|
-
description: Login with access key
|
|
148
|
+
description: Login with an access key and secret. Creates a temporary session that is cleared on logout
|
|
140
149
|
alias: c
|
|
150
|
+
examples:
|
|
151
|
+
- "tigris login credentials --access-key tid_AaBb --access-secret tsec_XxYy"
|
|
152
|
+
- "tigris login credentials"
|
|
141
153
|
messages:
|
|
142
154
|
onStart: 'Authenticating...'
|
|
143
155
|
onSuccess: 'Logged in with credentials'
|
|
@@ -155,8 +167,10 @@ commands:
|
|
|
155
167
|
|
|
156
168
|
# whoami
|
|
157
169
|
- name: whoami
|
|
158
|
-
description:
|
|
170
|
+
description: Print the currently authenticated user, organization, and auth method
|
|
159
171
|
alias: w
|
|
172
|
+
examples:
|
|
173
|
+
- "tigris whoami"
|
|
160
174
|
messages:
|
|
161
175
|
onStart: ''
|
|
162
176
|
onSuccess: ''
|
|
@@ -165,7 +179,9 @@ commands:
|
|
|
165
179
|
|
|
166
180
|
# logout
|
|
167
181
|
- name: logout
|
|
168
|
-
description: End
|
|
182
|
+
description: End the current session and clear login state. Credentials saved via 'configure' are kept
|
|
183
|
+
examples:
|
|
184
|
+
- "tigris logout"
|
|
169
185
|
messages:
|
|
170
186
|
onStart: 'Logging out...'
|
|
171
187
|
onSuccess: 'Logged out. Your configured credentials are still saved.'
|
|
@@ -173,12 +189,18 @@ commands:
|
|
|
173
189
|
|
|
174
190
|
# credentials
|
|
175
191
|
- name: credentials
|
|
176
|
-
description:
|
|
192
|
+
description: Test whether your current credentials can reach Tigris and optionally verify access to a specific bucket
|
|
177
193
|
alias: creds
|
|
194
|
+
examples:
|
|
195
|
+
- "tigris credentials test"
|
|
196
|
+
- "tigris credentials test --bucket my-bucket"
|
|
178
197
|
operations:
|
|
179
198
|
- name: test
|
|
180
|
-
description:
|
|
199
|
+
description: Verify that current credentials are valid. Optionally checks access to a specific bucket
|
|
181
200
|
alias: t
|
|
201
|
+
examples:
|
|
202
|
+
- "tigris credentials test"
|
|
203
|
+
- "tigris credentials test --bucket my-bucket"
|
|
182
204
|
messages:
|
|
183
205
|
onStart: 'Testing credentials...'
|
|
184
206
|
onSuccess: 'Credentials are valid'
|
|
@@ -195,12 +217,20 @@ commands:
|
|
|
195
217
|
#########################
|
|
196
218
|
# ls
|
|
197
219
|
- name: ls
|
|
198
|
-
description: List buckets or objects
|
|
220
|
+
description: List all buckets (no arguments) or objects under a bucket/prefix path. Accepts bare names or t3:// URIs
|
|
199
221
|
alias: list
|
|
222
|
+
examples:
|
|
223
|
+
- "tigris ls"
|
|
224
|
+
- "tigris ls my-bucket"
|
|
225
|
+
- "tigris ls my-bucket/images/"
|
|
226
|
+
- "tigris ls t3://my-bucket/prefix/"
|
|
227
|
+
messages:
|
|
228
|
+
onFailure: 'Failed to list. Verify the bucket exists and your credentials have access'
|
|
229
|
+
onEmpty: 'No results found. Run "tigris ls" to see all buckets'
|
|
200
230
|
arguments:
|
|
201
231
|
- name: path
|
|
202
232
|
type: positional
|
|
203
|
-
description:
|
|
233
|
+
description: A bucket name or bucket/prefix path. Omit to list all buckets. Supports t3:// and tigris:// prefixes
|
|
204
234
|
examples:
|
|
205
235
|
- my-bucket
|
|
206
236
|
- my-bucket/my-path
|
|
@@ -209,13 +239,19 @@ commands:
|
|
|
209
239
|
|
|
210
240
|
# mk
|
|
211
241
|
- name: mk
|
|
212
|
-
description: Create a bucket or a folder
|
|
242
|
+
description: Create a bucket (bare name) or a folder inside a bucket (bucket/folder/ with trailing slash)
|
|
213
243
|
alias: create
|
|
244
|
+
examples:
|
|
245
|
+
- "tigris mk my-bucket"
|
|
246
|
+
- "tigris mk my-bucket/images/"
|
|
247
|
+
- "tigris mk t3://my-bucket"
|
|
248
|
+
messages:
|
|
249
|
+
onFailure: 'Failed to create. Check the name is valid and your credentials have write access'
|
|
214
250
|
arguments:
|
|
215
251
|
- name: path
|
|
216
252
|
required: true
|
|
217
253
|
type: positional
|
|
218
|
-
description:
|
|
254
|
+
description: A bucket name or bucket/folder/ path. Trailing slash creates a folder inside the bucket. Supports t3:// and tigris:// prefixes
|
|
219
255
|
examples:
|
|
220
256
|
- my-bucket
|
|
221
257
|
- my-bucket/my-path
|
|
@@ -224,24 +260,29 @@ commands:
|
|
|
224
260
|
|
|
225
261
|
# touch
|
|
226
262
|
- name: touch
|
|
227
|
-
description: Create an empty object
|
|
263
|
+
description: Create an empty (zero-byte) object at the given bucket/key path
|
|
264
|
+
examples:
|
|
265
|
+
- "tigris touch my-bucket/placeholder.txt"
|
|
266
|
+
- "tigris touch t3://my-bucket/logs/"
|
|
267
|
+
messages:
|
|
268
|
+
onFailure: 'Failed to create object. Verify the bucket exists and your credentials have write access'
|
|
228
269
|
arguments:
|
|
229
270
|
- name: path
|
|
230
271
|
required: true
|
|
231
272
|
type: positional
|
|
232
|
-
description: path
|
|
273
|
+
description: Object path as bucket/key. Supports t3:// and tigris:// prefixes
|
|
233
274
|
examples:
|
|
234
275
|
- my-bucket/my-file.txt
|
|
235
276
|
- t3://my-bucket/my-file.txt
|
|
236
277
|
|
|
237
278
|
# stat
|
|
238
279
|
- name: stat
|
|
239
|
-
description:
|
|
280
|
+
description: Show metadata (size, last-modified, content-type, storage tier) for a bucket, folder, or object
|
|
240
281
|
arguments:
|
|
241
282
|
- name: path
|
|
242
283
|
required: true
|
|
243
284
|
type: positional
|
|
244
|
-
description:
|
|
285
|
+
description: A bucket name, folder path, or object key. Supports t3:// and tigris:// prefixes
|
|
245
286
|
examples:
|
|
246
287
|
- my-bucket
|
|
247
288
|
- my-bucket/my-path
|
|
@@ -251,13 +292,20 @@ commands:
|
|
|
251
292
|
|
|
252
293
|
# cp
|
|
253
294
|
- name: cp
|
|
254
|
-
description: Copy files between local filesystem and Tigris, or within Tigris
|
|
295
|
+
description: Copy files between local filesystem and Tigris, or between paths within Tigris. At least one side must be a remote t3:// path
|
|
255
296
|
alias: copy
|
|
297
|
+
examples:
|
|
298
|
+
- "tigris cp ./file.txt t3://my-bucket/file.txt"
|
|
299
|
+
- "tigris cp t3://my-bucket/file.txt ./local-copy.txt"
|
|
300
|
+
- "tigris cp t3://my-bucket/src/ t3://my-bucket/dest/ -r"
|
|
301
|
+
- "tigris cp ./images/ t3://my-bucket/images/ -r"
|
|
302
|
+
messages:
|
|
303
|
+
onFailure: 'Copy failed. Verify both paths are correct and credentials have access'
|
|
256
304
|
arguments:
|
|
257
305
|
- name: src
|
|
258
306
|
required: true
|
|
259
307
|
type: positional
|
|
260
|
-
description:
|
|
308
|
+
description: Source path. Use t3:// (or tigris://) prefix for remote Tigris paths, bare paths for local files. At least one side must be remote. Quote wildcard patterns to prevent shell expansion
|
|
261
309
|
examples:
|
|
262
310
|
- ./file.txt
|
|
263
311
|
- ./dir/
|
|
@@ -267,7 +315,7 @@ commands:
|
|
|
267
315
|
- name: dest
|
|
268
316
|
required: true
|
|
269
317
|
type: positional
|
|
270
|
-
description:
|
|
318
|
+
description: Destination path. Use t3:// (or tigris://) prefix for remote Tigris paths, bare paths for local files
|
|
271
319
|
examples:
|
|
272
320
|
- .
|
|
273
321
|
- ./local-dir/
|
|
@@ -276,17 +324,23 @@ commands:
|
|
|
276
324
|
- name: recursive
|
|
277
325
|
type: flag
|
|
278
326
|
alias: r
|
|
279
|
-
description:
|
|
327
|
+
description: Copy directories recursively
|
|
280
328
|
|
|
281
329
|
# mv
|
|
282
330
|
- name: mv
|
|
283
|
-
description: Move objects within Tigris
|
|
331
|
+
description: Move (rename) objects within Tigris. Both source and destination must be remote t3:// paths
|
|
284
332
|
alias: move
|
|
333
|
+
examples:
|
|
334
|
+
- "tigris mv t3://my-bucket/old.txt t3://my-bucket/new.txt -f"
|
|
335
|
+
- "tigris mv t3://my-bucket/old-dir/ t3://my-bucket/new-dir/ -rf"
|
|
336
|
+
- "tigris mv my-bucket/a.txt my-bucket/b.txt -f"
|
|
337
|
+
messages:
|
|
338
|
+
onFailure: 'Move failed. Verify both paths are remote and credentials have access'
|
|
285
339
|
arguments:
|
|
286
340
|
- name: src
|
|
287
341
|
type: positional
|
|
288
342
|
required: true
|
|
289
|
-
description:
|
|
343
|
+
description: Remote source path. Use t3:// (or tigris://) prefix. Quote wildcard patterns to prevent shell expansion
|
|
290
344
|
examples:
|
|
291
345
|
- t3://my-bucket/my-path/my-object.json
|
|
292
346
|
- t3://my-bucket/my-path/
|
|
@@ -294,14 +348,14 @@ commands:
|
|
|
294
348
|
- name: dest
|
|
295
349
|
type: positional
|
|
296
350
|
required: true
|
|
297
|
-
description:
|
|
351
|
+
description: Remote destination path. Use t3:// (or tigris://) prefix
|
|
298
352
|
examples:
|
|
299
353
|
- t3://my-bucket
|
|
300
354
|
- t3://my-bucket/new-path/
|
|
301
355
|
- name: recursive
|
|
302
356
|
type: flag
|
|
303
357
|
alias: r
|
|
304
|
-
description:
|
|
358
|
+
description: Move directories recursively
|
|
305
359
|
- name: force
|
|
306
360
|
type: flag
|
|
307
361
|
alias: f
|
|
@@ -309,13 +363,20 @@ commands:
|
|
|
309
363
|
|
|
310
364
|
# rm
|
|
311
365
|
- name: rm
|
|
312
|
-
description: Remove a bucket, folder, or object from Tigris
|
|
366
|
+
description: Remove a bucket, folder, or object from Tigris. A bare bucket name deletes the bucket itself
|
|
313
367
|
alias: remove
|
|
368
|
+
examples:
|
|
369
|
+
- "tigris rm t3://my-bucket/file.txt -f"
|
|
370
|
+
- "tigris rm t3://my-bucket/folder/ -rf"
|
|
371
|
+
- "tigris rm t3://my-bucket -f"
|
|
372
|
+
- 'tigris rm "t3://my-bucket/logs/*.tmp" -f'
|
|
373
|
+
messages:
|
|
374
|
+
onFailure: 'Remove failed. Verify the path exists and credentials have delete access'
|
|
314
375
|
arguments:
|
|
315
376
|
- name: path
|
|
316
377
|
type: positional
|
|
317
378
|
required: true
|
|
318
|
-
description:
|
|
379
|
+
description: Remote path to remove. A bucket-only path removes the bucket. Use t3:// (or tigris://) prefix. Quote wildcard patterns to prevent shell expansion
|
|
319
380
|
examples:
|
|
320
381
|
- t3://my-bucket
|
|
321
382
|
- t3://my-bucket/my-path/my-object.json
|
|
@@ -324,7 +385,7 @@ commands:
|
|
|
324
385
|
- name: recursive
|
|
325
386
|
type: flag
|
|
326
387
|
alias: r
|
|
327
|
-
description:
|
|
388
|
+
description: Remove directories recursively
|
|
328
389
|
- name: force
|
|
329
390
|
type: flag
|
|
330
391
|
alias: f
|
|
@@ -335,12 +396,19 @@ commands:
|
|
|
335
396
|
#########################
|
|
336
397
|
- name: organizations
|
|
337
398
|
alias: orgs
|
|
338
|
-
description:
|
|
399
|
+
description: List, create, and switch between organizations. An organization is a workspace that contains your resources like buckets and access keys
|
|
400
|
+
examples:
|
|
401
|
+
- "tigris orgs list"
|
|
402
|
+
- "tigris orgs create my-org"
|
|
403
|
+
- "tigris orgs select my-org"
|
|
339
404
|
operations:
|
|
340
405
|
# list
|
|
341
406
|
- name: list
|
|
342
|
-
description: List organizations
|
|
407
|
+
description: List all organizations you belong to and interactively select one as active
|
|
343
408
|
alias: l
|
|
409
|
+
examples:
|
|
410
|
+
- "tigris orgs list"
|
|
411
|
+
- "tigris orgs list --format json"
|
|
344
412
|
messages:
|
|
345
413
|
onStart: 'Listing organizations...'
|
|
346
414
|
onSuccess: "Organization '{{name}}' selected"
|
|
@@ -348,7 +416,7 @@ commands:
|
|
|
348
416
|
onEmpty: "No organizations found. You may need to re-authenticate.\nRun: tigris login"
|
|
349
417
|
arguments:
|
|
350
418
|
- name: format
|
|
351
|
-
description:
|
|
419
|
+
description: Output format
|
|
352
420
|
alias: f
|
|
353
421
|
options: [json, table, xml, select]
|
|
354
422
|
default: select
|
|
@@ -357,8 +425,10 @@ commands:
|
|
|
357
425
|
alias: i
|
|
358
426
|
type: flag
|
|
359
427
|
- name: create
|
|
360
|
-
description: Create organization
|
|
428
|
+
description: Create a new organization with the given name
|
|
361
429
|
alias: c
|
|
430
|
+
examples:
|
|
431
|
+
- "tigris orgs create my-org"
|
|
362
432
|
messages:
|
|
363
433
|
onStart: 'Creating organization...'
|
|
364
434
|
onSuccess: "Organization '{{name}}' created successfully\nOrganization ID: {{id}}"
|
|
@@ -372,8 +442,10 @@ commands:
|
|
|
372
442
|
examples:
|
|
373
443
|
- my-organization
|
|
374
444
|
- name: select
|
|
375
|
-
description:
|
|
445
|
+
description: Set the named organization as your active org for all subsequent commands
|
|
376
446
|
alias: s
|
|
447
|
+
examples:
|
|
448
|
+
- "tigris orgs select my-org"
|
|
377
449
|
messages:
|
|
378
450
|
onStart: ''
|
|
379
451
|
onSuccess: "Organization '{{name}}' selected"
|
|
@@ -390,13 +462,21 @@ commands:
|
|
|
390
462
|
# Manage buckets
|
|
391
463
|
#########################
|
|
392
464
|
- name: buckets
|
|
393
|
-
description:
|
|
465
|
+
description: Create, inspect, update, and delete buckets. Buckets are top-level containers that hold objects
|
|
394
466
|
alias: b
|
|
467
|
+
examples:
|
|
468
|
+
- "tigris buckets list"
|
|
469
|
+
- "tigris buckets create my-bucket"
|
|
470
|
+
- "tigris buckets get my-bucket"
|
|
471
|
+
- "tigris buckets delete my-bucket"
|
|
395
472
|
operations:
|
|
396
473
|
# list
|
|
397
474
|
- name: list
|
|
398
|
-
description: List buckets
|
|
475
|
+
description: List all buckets in the current organization
|
|
399
476
|
alias: l
|
|
477
|
+
examples:
|
|
478
|
+
- "tigris buckets list"
|
|
479
|
+
- "tigris buckets list --format json"
|
|
400
480
|
messages:
|
|
401
481
|
onStart: 'Listing buckets...'
|
|
402
482
|
onSuccess: 'Found {{count}} bucket(s)'
|
|
@@ -404,14 +484,18 @@ commands:
|
|
|
404
484
|
onEmpty: 'No buckets found'
|
|
405
485
|
arguments:
|
|
406
486
|
- name: format
|
|
407
|
-
description:
|
|
487
|
+
description: Output format
|
|
408
488
|
alias: f
|
|
409
489
|
options: [json, table, xml]
|
|
410
490
|
default: table
|
|
411
491
|
# create
|
|
412
492
|
- name: create
|
|
413
|
-
description: Create bucket
|
|
493
|
+
description: Create a new bucket with optional access, tier, consistency, and region settings
|
|
414
494
|
alias: c
|
|
495
|
+
examples:
|
|
496
|
+
- "tigris buckets create my-bucket"
|
|
497
|
+
- "tigris buckets create my-bucket --access public --region iad"
|
|
498
|
+
- "tigris buckets create my-bucket --enable-snapshots --default-tier STANDARD_IA"
|
|
415
499
|
messages:
|
|
416
500
|
onStart: 'Creating bucket...'
|
|
417
501
|
onSuccess: "Bucket '{{name}}' created successfully"
|
|
@@ -450,8 +534,10 @@ commands:
|
|
|
450
534
|
default: 'global'
|
|
451
535
|
# get
|
|
452
536
|
- name: get
|
|
453
|
-
description:
|
|
537
|
+
description: Show details for a bucket including access level, region, tier, and custom domain
|
|
454
538
|
alias: g
|
|
539
|
+
examples:
|
|
540
|
+
- "tigris buckets get my-bucket"
|
|
455
541
|
messages:
|
|
456
542
|
onStart: 'Getting bucket details...'
|
|
457
543
|
onSuccess: ''
|
|
@@ -465,8 +551,11 @@ commands:
|
|
|
465
551
|
- my-bucket
|
|
466
552
|
# delete
|
|
467
553
|
- name: delete
|
|
468
|
-
description: Delete bucket
|
|
554
|
+
description: Delete one or more buckets by name. The bucket must be empty or delete-protection must be off
|
|
469
555
|
alias: d
|
|
556
|
+
examples:
|
|
557
|
+
- "tigris buckets delete my-bucket"
|
|
558
|
+
- "tigris buckets delete bucket-a,bucket-b"
|
|
470
559
|
messages:
|
|
471
560
|
onStart: 'Deleting bucket...'
|
|
472
561
|
onSuccess: "Bucket '{{name}}' deleted successfully"
|
|
@@ -481,8 +570,12 @@ commands:
|
|
|
481
570
|
- my-bucket
|
|
482
571
|
# set
|
|
483
572
|
- name: set
|
|
484
|
-
description: Update bucket
|
|
573
|
+
description: Update settings on an existing bucket such as access level, region, caching, or custom domain
|
|
485
574
|
alias: s
|
|
575
|
+
examples:
|
|
576
|
+
- "tigris buckets set my-bucket --access public"
|
|
577
|
+
- "tigris buckets set my-bucket --region iad,fra --cache-control 'max-age=3600'"
|
|
578
|
+
- "tigris buckets set my-bucket --custom-domain assets.example.com"
|
|
486
579
|
messages:
|
|
487
580
|
onStart: 'Updating bucket...'
|
|
488
581
|
onSuccess: 'Bucket {{name}} updated successfully'
|
|
@@ -519,13 +612,19 @@ commands:
|
|
|
519
612
|
# Manage forks
|
|
520
613
|
#########################
|
|
521
614
|
- name: forks
|
|
522
|
-
description:
|
|
615
|
+
description: List and create forks. A fork is a writable copy-on-write clone of a bucket, useful for testing or branching data
|
|
523
616
|
alias: f
|
|
617
|
+
examples:
|
|
618
|
+
- "tigris forks list my-bucket"
|
|
619
|
+
- "tigris forks create my-bucket my-fork"
|
|
524
620
|
operations:
|
|
525
621
|
# list
|
|
526
622
|
- name: list
|
|
527
|
-
description: List forks
|
|
623
|
+
description: List all forks created from the given source bucket
|
|
528
624
|
alias: l
|
|
625
|
+
examples:
|
|
626
|
+
- "tigris forks list my-bucket"
|
|
627
|
+
- "tigris forks list my-bucket --format json"
|
|
529
628
|
messages:
|
|
530
629
|
onStart: 'Listing forks...'
|
|
531
630
|
onSuccess: 'Found {{count}} fork(s)'
|
|
@@ -545,8 +644,11 @@ commands:
|
|
|
545
644
|
default: table
|
|
546
645
|
# create
|
|
547
646
|
- name: create
|
|
548
|
-
description: Create a fork of a
|
|
647
|
+
description: Create a new fork (copy-on-write clone) of the source bucket. Optionally fork from a specific snapshot
|
|
549
648
|
alias: c
|
|
649
|
+
examples:
|
|
650
|
+
- "tigris forks create my-bucket my-fork"
|
|
651
|
+
- "tigris forks create my-bucket my-fork --snapshot snap-2025-01-01"
|
|
550
652
|
messages:
|
|
551
653
|
onStart: 'Creating fork...'
|
|
552
654
|
onSuccess: "Fork '{{forkName}}' created from '{{name}}'"
|
|
@@ -572,13 +674,19 @@ commands:
|
|
|
572
674
|
# Manage snapshots
|
|
573
675
|
#########################
|
|
574
676
|
- name: snapshots
|
|
575
|
-
description:
|
|
677
|
+
description: List and take snapshots. A snapshot is a point-in-time, read-only copy of a bucket's state
|
|
576
678
|
alias: s
|
|
679
|
+
examples:
|
|
680
|
+
- "tigris snapshots list my-bucket"
|
|
681
|
+
- "tigris snapshots take my-bucket"
|
|
577
682
|
operations:
|
|
578
683
|
# list
|
|
579
684
|
- name: list
|
|
580
|
-
description: List snapshots
|
|
685
|
+
description: List all snapshots for the given bucket, ordered by creation time
|
|
581
686
|
alias: l
|
|
687
|
+
examples:
|
|
688
|
+
- "tigris snapshots list my-bucket"
|
|
689
|
+
- "tigris snapshots list my-bucket --format json"
|
|
582
690
|
messages:
|
|
583
691
|
onStart: 'Listing snapshots...'
|
|
584
692
|
onSuccess: 'Found {{count}} snapshot(s)'
|
|
@@ -598,8 +706,11 @@ commands:
|
|
|
598
706
|
default: table
|
|
599
707
|
# take
|
|
600
708
|
- name: take
|
|
601
|
-
description: Take a snapshot of a
|
|
709
|
+
description: Take a new snapshot of the bucket's current state. Optionally provide a name for the snapshot
|
|
602
710
|
alias: t
|
|
711
|
+
examples:
|
|
712
|
+
- "tigris snapshots take my-bucket"
|
|
713
|
+
- "tigris snapshots take my-bucket my-snapshot"
|
|
603
714
|
messages:
|
|
604
715
|
onStart: 'Taking snapshot...'
|
|
605
716
|
onSuccess: "Snapshot '{{snapshotName}}' taken for bucket '{{name}}'"
|
|
@@ -612,7 +723,7 @@ commands:
|
|
|
612
723
|
examples:
|
|
613
724
|
- my-bucket
|
|
614
725
|
- name: snapshot-name
|
|
615
|
-
description: Name of the snapshot (optional)
|
|
726
|
+
description: Name of the snapshot (optional, auto-generated if omitted)
|
|
616
727
|
type: positional
|
|
617
728
|
required: false
|
|
618
729
|
examples:
|
|
@@ -622,13 +733,22 @@ commands:
|
|
|
622
733
|
# Manage objects
|
|
623
734
|
#########################
|
|
624
735
|
- name: objects
|
|
625
|
-
description:
|
|
736
|
+
description: Low-level object operations for listing, downloading, uploading, and deleting individual objects in a bucket
|
|
626
737
|
alias: o
|
|
738
|
+
examples:
|
|
739
|
+
- "tigris objects list my-bucket"
|
|
740
|
+
- "tigris objects get my-bucket report.pdf --output ./report.pdf"
|
|
741
|
+
- "tigris objects put my-bucket report.pdf ./report.pdf"
|
|
742
|
+
- "tigris objects delete my-bucket report.pdf"
|
|
627
743
|
operations:
|
|
628
744
|
# list
|
|
629
745
|
- name: list
|
|
630
|
-
description: List objects in a bucket
|
|
746
|
+
description: List objects in a bucket, optionally filtered by a key prefix
|
|
631
747
|
alias: l
|
|
748
|
+
examples:
|
|
749
|
+
- "tigris objects list my-bucket"
|
|
750
|
+
- "tigris objects list my-bucket --prefix images/"
|
|
751
|
+
- "tigris objects list my-bucket --format json"
|
|
632
752
|
messages:
|
|
633
753
|
onStart: 'Listing objects...'
|
|
634
754
|
onSuccess: 'Found {{count}} object(s)'
|
|
@@ -642,7 +762,7 @@ commands:
|
|
|
642
762
|
examples:
|
|
643
763
|
- my-bucket
|
|
644
764
|
- name: prefix
|
|
645
|
-
description: Filter objects by prefix
|
|
765
|
+
description: Filter objects by key prefix (e.g. "images/" to list only images)
|
|
646
766
|
alias: p
|
|
647
767
|
- name: format
|
|
648
768
|
description: Output format
|
|
@@ -651,8 +771,11 @@ commands:
|
|
|
651
771
|
default: table
|
|
652
772
|
# get
|
|
653
773
|
- name: get
|
|
654
|
-
description:
|
|
774
|
+
description: Download an object by key. Prints to stdout by default, or saves to a file with --output
|
|
655
775
|
alias: g
|
|
776
|
+
examples:
|
|
777
|
+
- "tigris objects get my-bucket config.json"
|
|
778
|
+
- "tigris objects get my-bucket archive.zip --output ./archive.zip --mode stream"
|
|
656
779
|
messages:
|
|
657
780
|
onStart: 'Getting object...'
|
|
658
781
|
onSuccess: ''
|
|
@@ -674,13 +797,16 @@ commands:
|
|
|
674
797
|
description: Output file path (if not specified, prints to stdout)
|
|
675
798
|
alias: o
|
|
676
799
|
- name: mode
|
|
677
|
-
description: Response mode (auto-detected from extension if not specified)
|
|
800
|
+
description: 'Response mode: "string" loads into memory, "stream" writes in chunks (auto-detected from extension if not specified)'
|
|
678
801
|
alias: m
|
|
679
802
|
options: [string, stream]
|
|
680
803
|
# put
|
|
681
804
|
- name: put
|
|
682
|
-
description: Upload an object
|
|
805
|
+
description: Upload a local file as an object. Content-type is auto-detected from extension unless overridden
|
|
683
806
|
alias: p
|
|
807
|
+
examples:
|
|
808
|
+
- "tigris objects put my-bucket report.pdf ./report.pdf"
|
|
809
|
+
- "tigris objects put my-bucket logo.png ./logo.png --access public --content-type image/png"
|
|
684
810
|
messages:
|
|
685
811
|
onStart: 'Uploading object...'
|
|
686
812
|
onSuccess: "Object '{{key}}' uploaded successfully"
|
|
@@ -699,7 +825,7 @@ commands:
|
|
|
699
825
|
examples:
|
|
700
826
|
- my-file.txt
|
|
701
827
|
- name: file
|
|
702
|
-
description: Path to the file to upload
|
|
828
|
+
description: Path to the local file to upload
|
|
703
829
|
type: positional
|
|
704
830
|
examples:
|
|
705
831
|
- ./my-file.txt
|
|
@@ -709,7 +835,7 @@ commands:
|
|
|
709
835
|
options: *access_options
|
|
710
836
|
default: private
|
|
711
837
|
- name: content-type
|
|
712
|
-
description: Content type
|
|
838
|
+
description: Content type (auto-detected from extension if omitted)
|
|
713
839
|
alias: t
|
|
714
840
|
- name: format
|
|
715
841
|
description: Output format
|
|
@@ -718,8 +844,11 @@ commands:
|
|
|
718
844
|
default: table
|
|
719
845
|
# delete
|
|
720
846
|
- name: delete
|
|
721
|
-
description: Delete
|
|
847
|
+
description: Delete one or more objects by key from the given bucket
|
|
722
848
|
alias: d
|
|
849
|
+
examples:
|
|
850
|
+
- "tigris objects delete my-bucket old-file.txt"
|
|
851
|
+
- "tigris objects delete my-bucket file-a.txt,file-b.txt"
|
|
723
852
|
messages:
|
|
724
853
|
onStart: 'Deleting object...'
|
|
725
854
|
onSuccess: "Object '{{key}}' deleted successfully"
|
|
@@ -743,20 +872,28 @@ commands:
|
|
|
743
872
|
# Manage access keys
|
|
744
873
|
#########################
|
|
745
874
|
- name: access-keys
|
|
746
|
-
description:
|
|
875
|
+
description: Create, list, inspect, delete, and assign roles to access keys. Access keys are credentials used for programmatic API access
|
|
747
876
|
alias: keys
|
|
877
|
+
examples:
|
|
878
|
+
- "tigris access-keys list"
|
|
879
|
+
- "tigris access-keys create my-ci-key"
|
|
880
|
+
- "tigris access-keys assign tid_AaBb --bucket my-bucket --role Editor"
|
|
748
881
|
operations:
|
|
749
882
|
- name: list
|
|
750
|
-
description: List all access keys
|
|
883
|
+
description: List all access keys in the current organization
|
|
751
884
|
alias: l
|
|
885
|
+
examples:
|
|
886
|
+
- "tigris access-keys list"
|
|
752
887
|
messages:
|
|
753
888
|
onStart: ''
|
|
754
889
|
onSuccess: ''
|
|
755
890
|
onFailure: 'Failed to list access keys'
|
|
756
891
|
onEmpty: 'No access keys found'
|
|
757
892
|
- name: create
|
|
758
|
-
description: Create a new access key
|
|
893
|
+
description: Create a new access key with the given name. Returns the key ID and secret (shown only once)
|
|
759
894
|
alias: c
|
|
895
|
+
examples:
|
|
896
|
+
- "tigris access-keys create my-ci-key"
|
|
760
897
|
messages:
|
|
761
898
|
onStart: 'Creating access key...'
|
|
762
899
|
onSuccess: 'Access key created'
|
|
@@ -769,8 +906,10 @@ commands:
|
|
|
769
906
|
examples:
|
|
770
907
|
- my-key
|
|
771
908
|
- name: delete
|
|
772
|
-
description:
|
|
909
|
+
description: Permanently delete an access key by its ID. This revokes all access immediately
|
|
773
910
|
alias: d
|
|
911
|
+
examples:
|
|
912
|
+
- "tigris access-keys delete tid_AaBbCcDdEeFf"
|
|
774
913
|
messages:
|
|
775
914
|
onStart: 'Deleting access key...'
|
|
776
915
|
onSuccess: 'Access key deleted'
|
|
@@ -783,8 +922,10 @@ commands:
|
|
|
783
922
|
examples:
|
|
784
923
|
- tid_AaBbCcDdEeFf
|
|
785
924
|
- name: get
|
|
786
|
-
description:
|
|
925
|
+
description: Show details for an access key including its name, creation date, and assigned bucket roles
|
|
787
926
|
alias: g
|
|
927
|
+
examples:
|
|
928
|
+
- "tigris access-keys get tid_AaBbCcDdEeFf"
|
|
788
929
|
messages:
|
|
789
930
|
onStart: ''
|
|
790
931
|
onSuccess: ''
|
|
@@ -797,8 +938,13 @@ commands:
|
|
|
797
938
|
examples:
|
|
798
939
|
- tid_AaBbCcDdEeFf
|
|
799
940
|
- name: assign
|
|
800
|
-
description: Assign bucket roles to an access key
|
|
941
|
+
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
|
|
801
942
|
alias: a
|
|
943
|
+
examples:
|
|
944
|
+
- "tigris access-keys assign tid_AaBb --bucket my-bucket --role Editor"
|
|
945
|
+
- "tigris access-keys assign tid_AaBb --bucket a,b --role Editor,ReadOnly"
|
|
946
|
+
- "tigris access-keys assign tid_AaBb --admin"
|
|
947
|
+
- "tigris access-keys assign tid_AaBb --revoke-roles"
|
|
802
948
|
messages:
|
|
803
949
|
onStart: 'Assigning bucket roles...'
|
|
804
950
|
onSuccess: 'Bucket roles assigned'
|
|
@@ -812,11 +958,11 @@ commands:
|
|
|
812
958
|
- tid_AaBbCcDdEeFf
|
|
813
959
|
- name: bucket
|
|
814
960
|
alias: b
|
|
815
|
-
description: Bucket name (can specify multiple)
|
|
961
|
+
description: Bucket name (can specify multiple, comma-separated). Each bucket is paired positionally with a --role value
|
|
816
962
|
multiple: true
|
|
817
963
|
- name: role
|
|
818
964
|
alias: r
|
|
819
|
-
description: Role to assign (can specify multiple
|
|
965
|
+
description: Role to assign (can specify multiple, comma-separated). Each role pairs with the corresponding --bucket value
|
|
820
966
|
multiple: true
|
|
821
967
|
options:
|
|
822
968
|
- Editor
|
|
@@ -826,4 +972,4 @@ commands:
|
|
|
826
972
|
type: flag
|
|
827
973
|
- name: revoke-roles
|
|
828
974
|
description: Revoke all bucket roles from the access key
|
|
829
|
-
type: flag
|
|
975
|
+
type: flag
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,c as b}from"../chunk-
|
|
1
|
+
import{b as a,c as b}from"../chunk-NYQG3EX3.js";import"../chunk-BP52O7NB.js";export{b as checkForUpdates,a as isNewerVersion};
|