@tigrisdata/cli 3.14.0 → 3.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -2
- package/dist/auth/fly.js +1 -1
- package/dist/auth/iam.js +1 -1
- package/dist/auth/provider.js +1 -1
- package/dist/browser/index.d.ts +2 -0
- package/dist/browser/index.js +252 -164
- package/dist/{chunk-YJ2RZYU4.js → chunk-4JH5FSSS.js} +1 -1
- package/dist/{chunk-CV77M3XG.js → chunk-5WJPZI3O.js} +1 -1
- package/dist/{chunk-EOCLTUJ4.js → chunk-APVIWSSE.js} +1 -1
- package/dist/{chunk-BTGWYSBL.js → chunk-AQJ4VUII.js} +1 -1
- package/dist/{chunk-GJLY3P2R.js → chunk-ARW2JHJ7.js} +1 -1
- package/dist/{chunk-X554SYWE.js → chunk-C2N3N2UW.js} +1 -1
- package/dist/{chunk-QBBCW6FL.js → chunk-CHRH4ZDS.js} +1 -1
- package/dist/{chunk-RAA7DIID.js → chunk-ERIIXOHU.js} +1 -1
- package/dist/{chunk-PGHGQCUB.js → chunk-I3WA7ZVW.js} +1 -1
- package/dist/chunk-JWAWHQZZ.js +1 -0
- package/dist/{chunk-P5DIPVOU.js → chunk-KY76VLEA.js} +1 -1
- package/dist/{chunk-A54TR6PZ.js → chunk-LOX4TCKM.js} +1 -1
- package/dist/chunk-MPZ2YNIU.js +5 -0
- package/dist/{chunk-7BWCRJKU.js → chunk-ONEBAQHI.js} +1 -1
- package/dist/{chunk-ELGUUOPX.js → chunk-PVLJ5AYH.js} +1 -1
- package/dist/chunk-Q4FK2FUN.js +7 -0
- package/dist/chunk-QVE2LNUP.js +4 -0
- package/dist/{chunk-PAANXFCH.js → chunk-WSBQ4MQX.js} +1 -1
- package/dist/cli-core.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/access-keys/assign.js +1 -1
- package/dist/lib/access-keys/attach-policy.js +1 -1
- package/dist/lib/access-keys/create.js +1 -1
- package/dist/lib/access-keys/delete.js +1 -1
- package/dist/lib/access-keys/detach-policy.js +1 -1
- package/dist/lib/access-keys/get.js +1 -1
- package/dist/lib/access-keys/list-policies.js +1 -1
- package/dist/lib/access-keys/list.js +1 -1
- package/dist/lib/access-keys/roles.js +1 -1
- package/dist/lib/access-keys/rotate.js +1 -1
- package/dist/lib/buckets/create.js +1 -1
- package/dist/lib/buckets/delete.js +1 -1
- package/dist/lib/buckets/disable-snapshots.js +1 -1
- package/dist/lib/buckets/enable-snapshots.js +1 -1
- package/dist/lib/buckets/get.js +1 -1
- package/dist/lib/buckets/lifecycle/create.js +1 -1
- package/dist/lib/buckets/lifecycle/edit.js +1 -1
- package/dist/lib/buckets/lifecycle/list.js +1 -1
- package/dist/lib/buckets/lifecycle/shared.js +1 -1
- package/dist/lib/buckets/list.js +1 -1
- package/dist/lib/buckets/merge.js +1 -1
- package/dist/lib/buckets/migrate.js +1 -1
- package/dist/lib/buckets/purge.js +1 -0
- package/dist/lib/buckets/rebase.js +1 -1
- package/dist/lib/buckets/restore.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.js +1 -1
- package/dist/lib/buckets/share.js +1 -1
- package/dist/lib/bundle.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/iam/policies/create.js +1 -1
- package/dist/lib/iam/policies/delete.js +1 -1
- package/dist/lib/iam/policies/edit.js +1 -1
- package/dist/lib/iam/policies/get.js +1 -1
- package/dist/lib/iam/policies/link-key.js +1 -1
- package/dist/lib/iam/policies/list-keys.js +1 -1
- package/dist/lib/iam/policies/list.js +1 -1
- package/dist/lib/iam/policies/select-policy.js +1 -1
- package/dist/lib/iam/policies/unlink-key.js +1 -1
- package/dist/lib/iam/teams/create.js +1 -1
- package/dist/lib/iam/teams/edit.js +1 -1
- package/dist/lib/iam/teams/list.js +1 -1
- package/dist/lib/iam/teams/shared.js +1 -1
- package/dist/lib/iam/users/invite.js +1 -1
- package/dist/lib/iam/users/list.js +1 -1
- package/dist/lib/iam/users/remove.js +1 -1
- package/dist/lib/iam/users/revoke-invitation.js +1 -1
- package/dist/lib/iam/users/update-role.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/info.js +1 -1
- package/dist/lib/objects/list-versions.js +1 -1
- package/dist/lib/objects/list.js +1 -1
- package/dist/lib/objects/purge.js +1 -1
- package/dist/lib/objects/put.js +1 -1
- package/dist/lib/objects/restore-deleted.js +1 -1
- package/dist/lib/objects/restore-info.js +1 -1
- package/dist/lib/objects/restore.js +1 -1
- package/dist/lib/objects/set-access.js +1 -1
- package/dist/lib/objects/set.js +1 -1
- package/dist/lib/organizations/create.js +1 -1
- package/dist/lib/organizations/delete.js +5 -0
- package/dist/lib/organizations/list.js +1 -1
- package/dist/lib/organizations/select.js +1 -1
- package/dist/lib/presign.js +1 -1
- package/dist/lib/rm.js +1 -1
- package/dist/lib/snapshots/delete.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/telemetry/disable.js +1 -1
- package/dist/lib/telemetry/enable.js +1 -1
- package/dist/lib/telemetry/status.js +1 -1
- package/dist/lib/touch.js +1 -1
- package/dist/lib/update.js +1 -1
- package/dist/lib/usage.js +3 -0
- package/dist/lib/whoami.js +1 -1
- package/dist/specs.yaml +87 -5
- package/dist/utils/analytics.js +1 -1
- package/dist/utils/bucket-info.js +1 -1
- package/dist/utils/exit.js +1 -1
- package/dist/utils/format.js +1 -1
- package/dist/utils/telemetry.js +1 -1
- package/dist/utils/update-check.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-AFM3TY2D.js +0 -7
- package/dist/chunk-AG6GAJQM.js +0 -5
- package/dist/chunk-K6JNY5VH.js +0 -1
- package/dist/chunk-KJBSIIND.js +0 -4
package/README.md
CHANGED
|
@@ -37,6 +37,7 @@ Run `tigris help` to see all available commands, or `tigris <command> help` for
|
|
|
37
37
|
| `tigris configure` (c) | Save access-key credentials to ~/.tigris/config.json for persistent use across all commands |
|
|
38
38
|
| `tigris login` (l) | Start a session via OAuth (default) or temporary credentials. Session state is cleared on logout |
|
|
39
39
|
| `tigris whoami` (w) | Print the currently authenticated user, organization, and auth method |
|
|
40
|
+
| `tigris usage` | Show the active organization's usage and charges for a billing month, as on the console's Usage page. Requires OAuth login |
|
|
40
41
|
| `tigris update` | Update the CLI to the latest version |
|
|
41
42
|
| `tigris logout` | End the current session and clear login state. Credentials saved via 'configure' are kept |
|
|
42
43
|
| `tigris credentials` (creds) | Test whether your current credentials can reach Tigris and optionally verify access to a specific bucket |
|
|
@@ -161,6 +162,28 @@ tigris whoami
|
|
|
161
162
|
tigris whoami
|
|
162
163
|
```
|
|
163
164
|
|
|
165
|
+
### `tigris usage`
|
|
166
|
+
|
|
167
|
+
Show the active organization's usage and charges for a billing month, as on the console's Usage page. Requires OAuth login
|
|
168
|
+
|
|
169
|
+
```
|
|
170
|
+
tigris usage [flags]
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
| Flag | Description |
|
|
174
|
+
|------|-------------|
|
|
175
|
+
| `--month` | Billing month as YYYY-MM (default is the current month) |
|
|
176
|
+
| `--all` | Show every line item, even those with zero usage |
|
|
177
|
+
| `--format` | Output format (default: table) |
|
|
178
|
+
|
|
179
|
+
**Examples:**
|
|
180
|
+
```bash
|
|
181
|
+
tigris usage
|
|
182
|
+
tigris usage --month 2026-09
|
|
183
|
+
tigris usage --all
|
|
184
|
+
tigris usage --format json
|
|
185
|
+
```
|
|
186
|
+
|
|
164
187
|
### `tigris update`
|
|
165
188
|
|
|
166
189
|
Update the CLI to the latest version
|
|
@@ -477,6 +500,7 @@ List, create, and switch between organizations. An organization is a workspace t
|
|
|
477
500
|
| `tigris organizations list` (l) | List all organizations you belong to and interactively select one as active |
|
|
478
501
|
| `tigris organizations create` (c) | Create a new organization with the given name |
|
|
479
502
|
| `tigris organizations select` (s) | Set the named organization as your active org for all subsequent commands |
|
|
503
|
+
| `tigris organizations delete` (d) | Delete an organization you own, picked from a list or given by ID. It must be empty first (no buckets, access keys, policies, teams, or other members); only its shares and invitations are removed with it. Your last organization cannot be deleted. Requires OAuth login and is not available for Fly.io organizations |
|
|
480
504
|
|
|
481
505
|
#### `tigris organizations list` (l)
|
|
482
506
|
|
|
@@ -523,6 +547,24 @@ tigris organizations select <name>
|
|
|
523
547
|
tigris orgs select my-org
|
|
524
548
|
```
|
|
525
549
|
|
|
550
|
+
#### `tigris organizations delete` (d)
|
|
551
|
+
|
|
552
|
+
Delete an organization you own, picked from a list or given by ID. It must be empty first (no buckets, access keys, policies, teams, or other members); only its shares and invitations are removed with it. Your last organization cannot be deleted. Requires OAuth login and is not available for Fly.io organizations
|
|
553
|
+
|
|
554
|
+
```
|
|
555
|
+
tigris organizations delete [id] [flags]
|
|
556
|
+
```
|
|
557
|
+
|
|
558
|
+
| Flag | Description |
|
|
559
|
+
|------|-------------|
|
|
560
|
+
| `-y, --yes` | Skip confirmation prompts |
|
|
561
|
+
|
|
562
|
+
**Examples:**
|
|
563
|
+
```bash
|
|
564
|
+
tigris orgs delete
|
|
565
|
+
tigris orgs delete <org-id> --yes
|
|
566
|
+
```
|
|
567
|
+
|
|
526
568
|
### `tigris buckets` (b)
|
|
527
569
|
|
|
528
570
|
Create, inspect, update, and delete buckets. Buckets are top-level containers that hold objects
|
|
@@ -536,6 +578,7 @@ Create, inspect, update, and delete buckets. Buckets are top-level containers th
|
|
|
536
578
|
| `tigris buckets get` (g) | Show details for a bucket including access level, region, tier, and custom domain |
|
|
537
579
|
| `tigris buckets delete` (d) | Delete one or more buckets by name. The bucket must be empty or delete-protection must be off |
|
|
538
580
|
| `tigris buckets restore` | Restore a soft-deleted bucket within its retention window. List recoverable buckets with "tigris buckets list --deleted" |
|
|
581
|
+
| `tigris buckets purge` (pg) | Permanently destroy one or more soft-deleted buckets before their retention period expires. This cannot be undone — they can no longer be restored with "tigris buckets restore". List them with "tigris buckets list --deleted" |
|
|
539
582
|
| `tigris buckets set` (s) | Update settings on an existing bucket such as access level, default tier, location, caching, or custom domain |
|
|
540
583
|
| `tigris buckets enable-snapshots` | Enable snapshots on an existing bucket, converting it to a snapshot bucket |
|
|
541
584
|
| `tigris buckets disable-snapshots` | Disable snapshots on an existing bucket, converting it back to a regular bucket. Rejected while the bucket has dependent forks |
|
|
@@ -695,6 +738,25 @@ tigris buckets restore <name>
|
|
|
695
738
|
tigris buckets restore my-bucket
|
|
696
739
|
```
|
|
697
740
|
|
|
741
|
+
#### `tigris buckets purge` (pg)
|
|
742
|
+
|
|
743
|
+
Permanently destroy one or more soft-deleted buckets before their retention period expires. This cannot be undone — they can no longer be restored with "tigris buckets restore". List them with "tigris buckets list --deleted"
|
|
744
|
+
|
|
745
|
+
```
|
|
746
|
+
tigris buckets purge <name> [flags]
|
|
747
|
+
```
|
|
748
|
+
|
|
749
|
+
| Flag | Description |
|
|
750
|
+
|------|-------------|
|
|
751
|
+
| `-y, --yes` | Skip confirmation prompts |
|
|
752
|
+
| `--force` | Skip confirmation prompts (alias for --yes) |
|
|
753
|
+
|
|
754
|
+
**Examples:**
|
|
755
|
+
```bash
|
|
756
|
+
tigris buckets purge my-bucket --yes
|
|
757
|
+
tigris buckets purge bucket-a,bucket-b --yes
|
|
758
|
+
```
|
|
759
|
+
|
|
698
760
|
#### `tigris buckets set` (s)
|
|
699
761
|
|
|
700
762
|
Update settings on an existing bucket such as access level, default tier, location, caching, or custom domain
|
|
@@ -1340,7 +1402,7 @@ Create, list, inspect, delete, and assign roles to access keys. Access keys are
|
|
|
1340
1402
|
|---------|-------------|
|
|
1341
1403
|
| `tigris access-keys list` (l) | List all access keys in the current organization |
|
|
1342
1404
|
| `tigris access-keys create` (c) | Create a new access key, optionally scoped to buckets, and export its credentials to a dotenv file or your shell. Returns the key ID and secret (shown only once) |
|
|
1343
|
-
| `tigris access-keys delete` (d) | Permanently delete
|
|
1405
|
+
| `tigris access-keys delete` (d) | Permanently delete one or more access keys by ID. This revokes all access immediately |
|
|
1344
1406
|
| `tigris access-keys get` (g) | Show details for an access key including its name, creation date, and assigned bucket roles |
|
|
1345
1407
|
| `tigris access-keys assign` (a) | Assign per-bucket roles to an access key. Pair each --bucket with a --role (Editor, ReadWrite, or ReadOnly), or use --admin for org-wide access |
|
|
1346
1408
|
| `tigris access-keys rotate` (r) | Rotate an access key's secret. The current secret is immediately invalidated and a new one is returned (shown only once) |
|
|
@@ -1393,7 +1455,7 @@ eval "$(tigris access-keys create dev --bucket my-app-bucket --role Editor --exp
|
|
|
1393
1455
|
|
|
1394
1456
|
#### `tigris access-keys delete` (d)
|
|
1395
1457
|
|
|
1396
|
-
Permanently delete
|
|
1458
|
+
Permanently delete one or more access keys by ID. This revokes all access immediately
|
|
1397
1459
|
|
|
1398
1460
|
```
|
|
1399
1461
|
tigris access-keys delete <id> [flags]
|
|
@@ -1407,6 +1469,7 @@ tigris access-keys delete <id> [flags]
|
|
|
1407
1469
|
**Examples:**
|
|
1408
1470
|
```bash
|
|
1409
1471
|
tigris access-keys delete tid_AaBbCcDdEeFf --yes
|
|
1472
|
+
tigris access-keys delete tid_AaBb,tid_CcDd --yes
|
|
1410
1473
|
```
|
|
1411
1474
|
|
|
1412
1475
|
#### `tigris access-keys get` (g)
|
package/dist/auth/fly.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a,b,c}from"../chunk-QVE2LNUP.js";import"../chunk-F4AGJWCK.js";export{b as flyOrganizationNotice,c as isFlyOrganization,a as isFlyOrganizationId};
|
package/dist/auth/iam.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b,b as c}from"../chunk-
|
|
1
|
+
import{a as b,b as c}from"../chunk-AQJ4VUII.js";import{c as a}from"../chunk-QVE2LNUP.js";import"../chunk-MPZ2YNIU.js";import"../chunk-KY76VLEA.js";import"../chunk-4JH5FSSS.js";import"../chunk-D7WXNA2O.js";import"../chunk-NI4EYBQH.js";import"../chunk-APJUJ6TW.js";import"../chunk-JWAWHQZZ.js";import"../chunk-BMWWPXMU.js";import"../chunk-DV3LCXRH.js";import"../chunk-QPUL2AAI.js";import"../chunk-HBEO4D3T.js";import"../chunk-F4AGJWCK.js";export{c as getIAMConfig,b as getOAuthIAMConfig,a as isFlyOrganization};
|
package/dist/auth/provider.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-MPZ2YNIU.js";import"../chunk-QPUL2AAI.js";import"../chunk-HBEO4D3T.js";import"../chunk-F4AGJWCK.js";export{c as getEnvCredentials,b as getEnvForcePathStyle,f as getStorageConfig,h as getStorageConfigWithOrg,a as getTigrisConfig,i as requireOAuthLogin,d as resetAutoLogin,e as resolveAuthMethod,g as resolveEndpoints};
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Organization } from '@tigrisdata/iam';
|
|
2
|
+
import { RetryConfig } from '@tigrisdata/storage';
|
|
2
3
|
import * as memfs from 'memfs';
|
|
3
4
|
import { Volume } from 'memfs';
|
|
4
5
|
|
|
@@ -181,6 +182,7 @@ type TigrisStorageConfig = {
|
|
|
181
182
|
secretAccessKey?: string;
|
|
182
183
|
endpoint?: string;
|
|
183
184
|
forcePathStyle?: boolean;
|
|
185
|
+
retry?: RetryConfig;
|
|
184
186
|
sessionToken?: string;
|
|
185
187
|
organizationId?: string;
|
|
186
188
|
iamEndpoint?: string;
|