appwrite-cli 17.1.0 → 17.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/.github/workflows/ci.yml +1 -1
  2. package/.github/workflows/publish.yml +1 -1
  3. package/CHANGELOG.md +14 -0
  4. package/README.md +2 -2
  5. package/bun.lock +783 -0
  6. package/cli.ts +14 -2
  7. package/dist/bundle-win-arm64.mjs +1137 -733
  8. package/dist/cli.cjs +1137 -733
  9. package/dist/index.cjs +193 -79
  10. package/dist/index.js +193 -79
  11. package/dist/lib/client.d.ts +9 -0
  12. package/dist/lib/client.d.ts.map +1 -1
  13. package/dist/lib/commands/init.d.ts.map +1 -1
  14. package/dist/lib/constants.d.ts +1 -1
  15. package/dist/lib/emulation/docker.d.ts.map +1 -1
  16. package/dist/lib/parser.d.ts.map +1 -1
  17. package/dist/lib/questions.d.ts.map +1 -1
  18. package/dist/lib/types.d.ts +2 -0
  19. package/dist/lib/types.d.ts.map +1 -1
  20. package/dist/lib/utils.d.ts +12 -0
  21. package/dist/lib/utils.d.ts.map +1 -1
  22. package/install.ps1 +2 -2
  23. package/install.sh +1 -1
  24. package/lib/client.ts +12 -0
  25. package/lib/commands/init.ts +109 -2
  26. package/lib/commands/services/account.ts +110 -55
  27. package/lib/commands/services/activities.ts +4 -2
  28. package/lib/commands/services/backups.ts +24 -12
  29. package/lib/commands/services/databases.ts +150 -75
  30. package/lib/commands/services/functions.ts +60 -30
  31. package/lib/commands/services/graphql.ts +4 -2
  32. package/lib/commands/services/health.ts +46 -23
  33. package/lib/commands/services/locale.ts +16 -8
  34. package/lib/commands/services/messaging.ts +96 -48
  35. package/lib/commands/services/migrations.ts +28 -14
  36. package/lib/commands/services/organizations.ts +76 -38
  37. package/lib/commands/services/project.ts +12 -6
  38. package/lib/commands/services/projects.ts +103 -51
  39. package/lib/commands/services/proxy.ts +16 -8
  40. package/lib/commands/services/sites.ts +58 -29
  41. package/lib/commands/services/storage.ts +30 -15
  42. package/lib/commands/services/tables-db.ts +148 -74
  43. package/lib/commands/services/teams.ts +28 -14
  44. package/lib/commands/services/tokens.ts +10 -5
  45. package/lib/commands/services/users.ts +88 -44
  46. package/lib/commands/services/vcs.ts +20 -10
  47. package/lib/commands/services/webhooks.ts +12 -6
  48. package/lib/constants.ts +1 -1
  49. package/lib/emulation/docker.ts +1 -0
  50. package/lib/parser.ts +279 -122
  51. package/lib/questions.ts +8 -3
  52. package/lib/sdks.ts +0 -1
  53. package/lib/types.ts +2 -0
  54. package/lib/utils.ts +234 -0
  55. package/package.json +1 -1
  56. package/scoop/appwrite.config.json +3 -3
@@ -26,7 +26,7 @@ export const tablesDB = new Command("tables-db")
26
26
  helpWidth: process.stdout.columns || 80,
27
27
  });
28
28
 
29
- tablesDB
29
+ const tablesDBListCommand = tablesDB
30
30
  .command(`list`)
31
31
  .description(`Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.`)
32
32
  .option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: name`)
@@ -44,7 +44,8 @@ tablesDB
44
44
  ),
45
45
  );
46
46
 
47
- tablesDB
47
+
48
+ const tablesDBCreateCommand = tablesDB
48
49
  .command(`create`)
49
50
  .description(`Create a new Database.
50
51
  `)
@@ -63,7 +64,8 @@ tablesDB
63
64
  ),
64
65
  );
65
66
 
66
- tablesDB
67
+
68
+ const tablesDBListTransactionsCommand = tablesDB
67
69
  .command(`list-transactions`)
68
70
  .description(`List transactions across all databases.`)
69
71
  .option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries).`)
@@ -74,7 +76,8 @@ tablesDB
74
76
  ),
75
77
  );
76
78
 
77
- tablesDB
79
+
80
+ const tablesDBCreateTransactionCommand = tablesDB
78
81
  .command(`create-transaction`)
79
82
  .description(`Create a new transaction.`)
80
83
  .option(`--ttl <ttl>`, `Seconds before the transaction expires.`, parseInteger)
@@ -85,7 +88,8 @@ tablesDB
85
88
  ),
86
89
  );
87
90
 
88
- tablesDB
91
+
92
+ const tablesDBGetTransactionCommand = tablesDB
89
93
  .command(`get-transaction`)
90
94
  .description(`Get a transaction by its unique ID.`)
91
95
  .requiredOption(`--transaction-id <transaction-id>`, `Transaction ID.`)
@@ -96,7 +100,8 @@ tablesDB
96
100
  ),
97
101
  );
98
102
 
99
- tablesDB
103
+
104
+ const tablesDBUpdateTransactionCommand = tablesDB
100
105
  .command(`update-transaction`)
101
106
  .description(`Update a transaction, to either commit or roll back its operations.`)
102
107
  .requiredOption(`--transaction-id <transaction-id>`, `Transaction ID.`)
@@ -119,7 +124,8 @@ tablesDB
119
124
  ),
120
125
  );
121
126
 
122
- tablesDB
127
+
128
+ const tablesDBDeleteTransactionCommand = tablesDB
123
129
  .command(`delete-transaction`)
124
130
  .description(`Delete a transaction by its unique ID.`)
125
131
  .requiredOption(`--transaction-id <transaction-id>`, `Transaction ID.`)
@@ -130,7 +136,8 @@ tablesDB
130
136
  ),
131
137
  );
132
138
 
133
- tablesDB
139
+
140
+ const tablesDBCreateOperationsCommand = tablesDB
134
141
  .command(`create-operations`)
135
142
  .description(`Create multiple operations in a single transaction.`)
136
143
  .requiredOption(`--transaction-id <transaction-id>`, `Transaction ID.`)
@@ -142,7 +149,8 @@ tablesDB
142
149
  ),
143
150
  );
144
151
 
145
- tablesDB
152
+
153
+ const tablesDBListUsageCommand = tablesDB
146
154
  .command(`list-usage`)
147
155
  .description(`List usage metrics and statistics for all databases in the project. You can view the total number of databases, tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.`)
148
156
  .option(`--range <range>`, `Date range.`)
@@ -153,7 +161,8 @@ tablesDB
153
161
  ),
154
162
  );
155
163
 
156
- tablesDB
164
+
165
+ const tablesDBGetCommand = tablesDB
157
166
  .command(`get`)
158
167
  .description(`Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata.`)
159
168
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -164,7 +173,8 @@ tablesDB
164
173
  ),
165
174
  );
166
175
 
167
- tablesDB
176
+
177
+ const tablesDBUpdateCommand = tablesDB
168
178
  .command(`update`)
169
179
  .description(`Update a database by its unique ID.`)
170
180
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -182,7 +192,8 @@ tablesDB
182
192
  ),
183
193
  );
184
194
 
185
- tablesDB
195
+
196
+ const tablesDBDeleteCommand = tablesDB
186
197
  .command(`delete`)
187
198
  .description(`Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database.`)
188
199
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -193,7 +204,8 @@ tablesDB
193
204
  ),
194
205
  );
195
206
 
196
- tablesDB
207
+
208
+ const tablesDBListTablesCommand = tablesDB
197
209
  .command(`list-tables`)
198
210
  .description(`Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results.`)
199
211
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -212,7 +224,8 @@ tablesDB
212
224
  ),
213
225
  );
214
226
 
215
- tablesDB
227
+
228
+ const tablesDBCreateTableCommand = tablesDB
216
229
  .command(`create-table`)
217
230
  .description(`Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.`)
218
231
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -240,7 +253,8 @@ tablesDB
240
253
  ),
241
254
  );
242
255
 
243
- tablesDB
256
+
257
+ const tablesDBGetTableCommand = tablesDB
244
258
  .command(`get-table`)
245
259
  .description(`Get a table by its unique ID. This endpoint response returns a JSON object with the table metadata.`)
246
260
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -252,7 +266,8 @@ tablesDB
252
266
  ),
253
267
  );
254
268
 
255
- tablesDB
269
+
270
+ const tablesDBUpdateTableCommand = tablesDB
256
271
  .command(`update-table`)
257
272
  .description(`Update a table by its unique ID.`)
258
273
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -278,7 +293,8 @@ tablesDB
278
293
  ),
279
294
  );
280
295
 
281
- tablesDB
296
+
297
+ const tablesDBDeleteTableCommand = tablesDB
282
298
  .command(`delete-table`)
283
299
  .description(`Delete a table by its unique ID. Only users with write permissions have access to delete this resource.`)
284
300
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -290,7 +306,8 @@ tablesDB
290
306
  ),
291
307
  );
292
308
 
293
- tablesDB
309
+
310
+ const tablesDBListColumnsCommand = tablesDB
294
311
  .command(`list-columns`)
295
312
  .description(`List columns in the table.`)
296
313
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -309,7 +326,8 @@ tablesDB
309
326
  ),
310
327
  );
311
328
 
312
- tablesDB
329
+
330
+ const tablesDBCreateBooleanColumnCommand = tablesDB
313
331
  .command(`create-boolean-column`)
314
332
  .description(`Create a boolean column.
315
333
  `)
@@ -336,7 +354,8 @@ tablesDB
336
354
  ),
337
355
  );
338
356
 
339
- tablesDB
357
+
358
+ const tablesDBUpdateBooleanColumnCommand = tablesDB
340
359
  .command(`update-boolean-column`)
341
360
  .description(`Update a boolean column. Changing the \`default\` value will not update already existing rows.`)
342
361
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -352,7 +371,8 @@ tablesDB
352
371
  ),
353
372
  );
354
373
 
355
- tablesDB
374
+
375
+ const tablesDBCreateDatetimeColumnCommand = tablesDB
356
376
  .command(`create-datetime-column`)
357
377
  .description(`Create a date time column according to the ISO 8601 standard.`)
358
378
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -373,7 +393,8 @@ tablesDB
373
393
  ),
374
394
  );
375
395
 
376
- tablesDB
396
+
397
+ const tablesDBUpdateDatetimeColumnCommand = tablesDB
377
398
  .command(`update-datetime-column`)
378
399
  .description(`Update a date time column. Changing the \`default\` value will not update already existing rows.`)
379
400
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -389,7 +410,8 @@ tablesDB
389
410
  ),
390
411
  );
391
412
 
392
- tablesDB
413
+
414
+ const tablesDBCreateEmailColumnCommand = tablesDB
393
415
  .command(`create-email-column`)
394
416
  .description(`Create an email column.
395
417
  `)
@@ -411,7 +433,8 @@ tablesDB
411
433
  ),
412
434
  );
413
435
 
414
- tablesDB
436
+
437
+ const tablesDBUpdateEmailColumnCommand = tablesDB
415
438
  .command(`update-email-column`)
416
439
  .description(`Update an email column. Changing the \`default\` value will not update already existing rows.
417
440
  `)
@@ -428,7 +451,8 @@ tablesDB
428
451
  ),
429
452
  );
430
453
 
431
- tablesDB
454
+
455
+ const tablesDBCreateEnumColumnCommand = tablesDB
432
456
  .command(`create-enum-column`)
433
457
  .description(`Create an enumeration column. The \`elements\` param acts as a white-list of accepted values for this column.`)
434
458
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -450,7 +474,8 @@ tablesDB
450
474
  ),
451
475
  );
452
476
 
453
- tablesDB
477
+
478
+ const tablesDBUpdateEnumColumnCommand = tablesDB
454
479
  .command(`update-enum-column`)
455
480
  .description(`Update an enum column. Changing the \`default\` value will not update already existing rows.
456
481
  `)
@@ -468,7 +493,8 @@ tablesDB
468
493
  ),
469
494
  );
470
495
 
471
- tablesDB
496
+
497
+ const tablesDBCreateFloatColumnCommand = tablesDB
472
498
  .command(`create-float-column`)
473
499
  .description(`Create a float column. Optionally, minimum and maximum values can be provided.
474
500
  `)
@@ -492,7 +518,8 @@ tablesDB
492
518
  ),
493
519
  );
494
520
 
495
- tablesDB
521
+
522
+ const tablesDBUpdateFloatColumnCommand = tablesDB
496
523
  .command(`update-float-column`)
497
524
  .description(`Update a float column. Changing the \`default\` value will not update already existing rows.
498
525
  `)
@@ -511,7 +538,8 @@ tablesDB
511
538
  ),
512
539
  );
513
540
 
514
- tablesDB
541
+
542
+ const tablesDBCreateIntegerColumnCommand = tablesDB
515
543
  .command(`create-integer-column`)
516
544
  .description(`Create an integer column. Optionally, minimum and maximum values can be provided.
517
545
  `)
@@ -535,7 +563,8 @@ tablesDB
535
563
  ),
536
564
  );
537
565
 
538
- tablesDB
566
+
567
+ const tablesDBUpdateIntegerColumnCommand = tablesDB
539
568
  .command(`update-integer-column`)
540
569
  .description(`Update an integer column. Changing the \`default\` value will not update already existing rows.
541
570
  `)
@@ -554,7 +583,8 @@ tablesDB
554
583
  ),
555
584
  );
556
585
 
557
- tablesDB
586
+
587
+ const tablesDBCreateIpColumnCommand = tablesDB
558
588
  .command(`create-ip-column`)
559
589
  .description(`Create IP address column.
560
590
  `)
@@ -576,7 +606,8 @@ tablesDB
576
606
  ),
577
607
  );
578
608
 
579
- tablesDB
609
+
610
+ const tablesDBUpdateIpColumnCommand = tablesDB
580
611
  .command(`update-ip-column`)
581
612
  .description(`Update an ip column. Changing the \`default\` value will not update already existing rows.
582
613
  `)
@@ -593,7 +624,8 @@ tablesDB
593
624
  ),
594
625
  );
595
626
 
596
- tablesDB
627
+
628
+ const tablesDBCreateLineColumnCommand = tablesDB
597
629
  .command(`create-line-column`)
598
630
  .description(`Create a geometric line column.`)
599
631
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -608,7 +640,8 @@ tablesDB
608
640
  ),
609
641
  );
610
642
 
611
- tablesDB
643
+
644
+ const tablesDBUpdateLineColumnCommand = tablesDB
612
645
  .command(`update-line-column`)
613
646
  .description(`Update a line column. Changing the \`default\` value will not update already existing rows.`)
614
647
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -624,7 +657,8 @@ tablesDB
624
657
  ),
625
658
  );
626
659
 
627
- tablesDB
660
+
661
+ const tablesDBCreateLongtextColumnCommand = tablesDB
628
662
  .command(`create-longtext-column`)
629
663
  .description(`Create a longtext column.
630
664
  `)
@@ -652,7 +686,8 @@ tablesDB
652
686
  ),
653
687
  );
654
688
 
655
- tablesDB
689
+
690
+ const tablesDBUpdateLongtextColumnCommand = tablesDB
656
691
  .command(`update-longtext-column`)
657
692
  .description(`Update a longtext column. Changing the \`default\` value will not update already existing rows.
658
693
  `)
@@ -669,7 +704,8 @@ tablesDB
669
704
  ),
670
705
  );
671
706
 
672
- tablesDB
707
+
708
+ const tablesDBCreateMediumtextColumnCommand = tablesDB
673
709
  .command(`create-mediumtext-column`)
674
710
  .description(`Create a mediumtext column.
675
711
  `)
@@ -697,7 +733,8 @@ tablesDB
697
733
  ),
698
734
  );
699
735
 
700
- tablesDB
736
+
737
+ const tablesDBUpdateMediumtextColumnCommand = tablesDB
701
738
  .command(`update-mediumtext-column`)
702
739
  .description(`Update a mediumtext column. Changing the \`default\` value will not update already existing rows.
703
740
  `)
@@ -714,7 +751,8 @@ tablesDB
714
751
  ),
715
752
  );
716
753
 
717
- tablesDB
754
+
755
+ const tablesDBCreatePointColumnCommand = tablesDB
718
756
  .command(`create-point-column`)
719
757
  .description(`Create a geometric point column.`)
720
758
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -729,7 +767,8 @@ tablesDB
729
767
  ),
730
768
  );
731
769
 
732
- tablesDB
770
+
771
+ const tablesDBUpdatePointColumnCommand = tablesDB
733
772
  .command(`update-point-column`)
734
773
  .description(`Update a point column. Changing the \`default\` value will not update already existing rows.`)
735
774
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -745,7 +784,8 @@ tablesDB
745
784
  ),
746
785
  );
747
786
 
748
- tablesDB
787
+
788
+ const tablesDBCreatePolygonColumnCommand = tablesDB
749
789
  .command(`create-polygon-column`)
750
790
  .description(`Create a geometric polygon column.`)
751
791
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -760,7 +800,8 @@ tablesDB
760
800
  ),
761
801
  );
762
802
 
763
- tablesDB
803
+
804
+ const tablesDBUpdatePolygonColumnCommand = tablesDB
764
805
  .command(`update-polygon-column`)
765
806
  .description(`Update a polygon column. Changing the \`default\` value will not update already existing rows.`)
766
807
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -776,7 +817,8 @@ tablesDB
776
817
  ),
777
818
  );
778
819
 
779
- tablesDB
820
+
821
+ const tablesDBCreateRelationshipColumnCommand = tablesDB
780
822
  .command(`create-relationship-column`)
781
823
  .description(`Create relationship column. [Learn more about relationship columns](https://appwrite.io/docs/databases-relationships#relationship-columns).
782
824
  `)
@@ -800,7 +842,8 @@ tablesDB
800
842
  ),
801
843
  );
802
844
 
803
- tablesDB
845
+
846
+ const tablesDBCreateStringColumnCommand = tablesDB
804
847
  .command(`create-string-column`)
805
848
  .description(`Create a string column.
806
849
  `)
@@ -829,7 +872,8 @@ tablesDB
829
872
  ),
830
873
  );
831
874
 
832
- tablesDB
875
+
876
+ const tablesDBUpdateStringColumnCommand = tablesDB
833
877
  .command(`update-string-column`)
834
878
  .description(`Update a string column. Changing the \`default\` value will not update already existing rows.
835
879
  `)
@@ -847,7 +891,8 @@ tablesDB
847
891
  ),
848
892
  );
849
893
 
850
- tablesDB
894
+
895
+ const tablesDBCreateTextColumnCommand = tablesDB
851
896
  .command(`create-text-column`)
852
897
  .description(`Create a text column.
853
898
  `)
@@ -875,7 +920,8 @@ tablesDB
875
920
  ),
876
921
  );
877
922
 
878
- tablesDB
923
+
924
+ const tablesDBUpdateTextColumnCommand = tablesDB
879
925
  .command(`update-text-column`)
880
926
  .description(`Update a text column. Changing the \`default\` value will not update already existing rows.
881
927
  `)
@@ -892,7 +938,8 @@ tablesDB
892
938
  ),
893
939
  );
894
940
 
895
- tablesDB
941
+
942
+ const tablesDBCreateUrlColumnCommand = tablesDB
896
943
  .command(`create-url-column`)
897
944
  .description(`Create a URL column.
898
945
  `)
@@ -914,7 +961,8 @@ tablesDB
914
961
  ),
915
962
  );
916
963
 
917
- tablesDB
964
+
965
+ const tablesDBUpdateUrlColumnCommand = tablesDB
918
966
  .command(`update-url-column`)
919
967
  .description(`Update an url column. Changing the \`default\` value will not update already existing rows.
920
968
  `)
@@ -931,7 +979,8 @@ tablesDB
931
979
  ),
932
980
  );
933
981
 
934
- tablesDB
982
+
983
+ const tablesDBCreateVarcharColumnCommand = tablesDB
935
984
  .command(`create-varchar-column`)
936
985
  .description(`Create a varchar column.
937
986
  `)
@@ -960,7 +1009,8 @@ tablesDB
960
1009
  ),
961
1010
  );
962
1011
 
963
- tablesDB
1012
+
1013
+ const tablesDBUpdateVarcharColumnCommand = tablesDB
964
1014
  .command(`update-varchar-column`)
965
1015
  .description(`Update a varchar column. Changing the \`default\` value will not update already existing rows.
966
1016
  `)
@@ -978,7 +1028,8 @@ tablesDB
978
1028
  ),
979
1029
  );
980
1030
 
981
- tablesDB
1031
+
1032
+ const tablesDBGetColumnCommand = tablesDB
982
1033
  .command(`get-column`)
983
1034
  .description(`Get column by ID.`)
984
1035
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -991,7 +1042,8 @@ tablesDB
991
1042
  ),
992
1043
  );
993
1044
 
994
- tablesDB
1045
+
1046
+ const tablesDBDeleteColumnCommand = tablesDB
995
1047
  .command(`delete-column`)
996
1048
  .description(`Deletes a column.`)
997
1049
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -1004,7 +1056,8 @@ tablesDB
1004
1056
  ),
1005
1057
  );
1006
1058
 
1007
- tablesDB
1059
+
1060
+ const tablesDBUpdateRelationshipColumnCommand = tablesDB
1008
1061
  .command(`update-relationship-column`)
1009
1062
  .description(`Update relationship column. [Learn more about relationship columns](https://appwrite.io/docs/databases-relationships#relationship-columns).
1010
1063
  `)
@@ -1020,7 +1073,8 @@ tablesDB
1020
1073
  ),
1021
1074
  );
1022
1075
 
1023
- tablesDB
1076
+
1077
+ const tablesDBListIndexesCommand = tablesDB
1024
1078
  .command(`list-indexes`)
1025
1079
  .description(`List indexes on the table.`)
1026
1080
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -1039,7 +1093,8 @@ tablesDB
1039
1093
  ),
1040
1094
  );
1041
1095
 
1042
- tablesDB
1096
+
1097
+ const tablesDBCreateIndexCommand = tablesDB
1043
1098
  .command(`create-index`)
1044
1099
  .description(`Creates an index on the columns listed. Your index should include all the columns you will query in a single request.
1045
1100
  Type can be \`key\`, \`fulltext\`, or \`unique\`.`)
@@ -1057,7 +1112,8 @@ Type can be \`key\`, \`fulltext\`, or \`unique\`.`)
1057
1112
  ),
1058
1113
  );
1059
1114
 
1060
- tablesDB
1115
+
1116
+ const tablesDBGetIndexCommand = tablesDB
1061
1117
  .command(`get-index`)
1062
1118
  .description(`Get index by ID.`)
1063
1119
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -1070,7 +1126,8 @@ tablesDB
1070
1126
  ),
1071
1127
  );
1072
1128
 
1073
- tablesDB
1129
+
1130
+ const tablesDBDeleteIndexCommand = tablesDB
1074
1131
  .command(`delete-index`)
1075
1132
  .description(`Delete an index.`)
1076
1133
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -1083,7 +1140,8 @@ tablesDB
1083
1140
  ),
1084
1141
  );
1085
1142
 
1086
- tablesDB
1143
+
1144
+ const tablesDBListTableLogsCommand = tablesDB
1087
1145
  .command(`list-table-logs`)
1088
1146
  .description(`Get the table activity logs list by its unique ID.`)
1089
1147
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -1096,7 +1154,8 @@ tablesDB
1096
1154
  ),
1097
1155
  );
1098
1156
 
1099
- tablesDB
1157
+
1158
+ const tablesDBListRowsCommand = tablesDB
1100
1159
  .command(`list-rows`)
1101
1160
  .description(`Get a list of all the user's rows in a given table. You can use the query params to filter your results.`)
1102
1161
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -1117,7 +1176,8 @@ tablesDB
1117
1176
  ),
1118
1177
  );
1119
1178
 
1120
- tablesDB
1179
+
1180
+ const tablesDBCreateRowCommand = tablesDB
1121
1181
  .command(`create-row`)
1122
1182
  .description(`Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.`)
1123
1183
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -1133,7 +1193,8 @@ tablesDB
1133
1193
  ),
1134
1194
  );
1135
1195
 
1136
- tablesDB
1196
+
1197
+ const tablesDBCreateRowsCommand = tablesDB
1137
1198
  .command(`create-rows`)
1138
1199
  .description(`Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.`)
1139
1200
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -1147,7 +1208,8 @@ tablesDB
1147
1208
  ),
1148
1209
  );
1149
1210
 
1150
- tablesDB
1211
+
1212
+ const tablesDBUpsertRowsCommand = tablesDB
1151
1213
  .command(`upsert-rows`)
1152
1214
  .description(`Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.
1153
1215
  `)
@@ -1162,7 +1224,8 @@ tablesDB
1162
1224
  ),
1163
1225
  );
1164
1226
 
1165
- tablesDB
1227
+
1228
+ const tablesDBUpdateRowsCommand = tablesDB
1166
1229
  .command(`update-rows`)
1167
1230
  .description(`Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.`)
1168
1231
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -1177,7 +1240,8 @@ tablesDB
1177
1240
  ),
1178
1241
  );
1179
1242
 
1180
- tablesDB
1243
+
1244
+ const tablesDBDeleteRowsCommand = tablesDB
1181
1245
  .command(`delete-rows`)
1182
1246
  .description(`Bulk delete rows using queries, if no queries are passed then all rows are deleted.`)
1183
1247
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -1191,7 +1255,8 @@ tablesDB
1191
1255
  ),
1192
1256
  );
1193
1257
 
1194
- tablesDB
1258
+
1259
+ const tablesDBGetRowCommand = tablesDB
1195
1260
  .command(`get-row`)
1196
1261
  .description(`Get a row by its unique ID. This endpoint response returns a JSON object with the row data.`)
1197
1262
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -1206,7 +1271,8 @@ tablesDB
1206
1271
  ),
1207
1272
  );
1208
1273
 
1209
- tablesDB
1274
+
1275
+ const tablesDBUpsertRowCommand = tablesDB
1210
1276
  .command(`upsert-row`)
1211
1277
  .description(`Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.`)
1212
1278
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -1222,7 +1288,8 @@ tablesDB
1222
1288
  ),
1223
1289
  );
1224
1290
 
1225
- tablesDB
1291
+
1292
+ const tablesDBUpdateRowCommand = tablesDB
1226
1293
  .command(`update-row`)
1227
1294
  .description(`Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.`)
1228
1295
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -1238,7 +1305,8 @@ tablesDB
1238
1305
  ),
1239
1306
  );
1240
1307
 
1241
- tablesDB
1308
+
1309
+ const tablesDBDeleteRowCommand = tablesDB
1242
1310
  .command(`delete-row`)
1243
1311
  .description(`Delete a row by its unique ID.`)
1244
1312
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -1252,7 +1320,8 @@ tablesDB
1252
1320
  ),
1253
1321
  );
1254
1322
 
1255
- tablesDB
1323
+
1324
+ const tablesDBListRowLogsCommand = tablesDB
1256
1325
  .command(`list-row-logs`)
1257
1326
  .description(`Get the row activity logs list by its unique ID.`)
1258
1327
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -1266,7 +1335,8 @@ tablesDB
1266
1335
  ),
1267
1336
  );
1268
1337
 
1269
- tablesDB
1338
+
1339
+ const tablesDBDecrementRowColumnCommand = tablesDB
1270
1340
  .command(`decrement-row-column`)
1271
1341
  .description(`Decrement a specific column of a row by a given value.`)
1272
1342
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -1283,7 +1353,8 @@ tablesDB
1283
1353
  ),
1284
1354
  );
1285
1355
 
1286
- tablesDB
1356
+
1357
+ const tablesDBIncrementRowColumnCommand = tablesDB
1287
1358
  .command(`increment-row-column`)
1288
1359
  .description(`Increment a specific column of a row by a given value.`)
1289
1360
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -1300,7 +1371,8 @@ tablesDB
1300
1371
  ),
1301
1372
  );
1302
1373
 
1303
- tablesDB
1374
+
1375
+ const tablesDBGetTableUsageCommand = tablesDB
1304
1376
  .command(`get-table-usage`)
1305
1377
  .description(`Get usage metrics and statistics for a table. Returning the total number of rows. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.`)
1306
1378
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -1313,7 +1385,8 @@ tablesDB
1313
1385
  ),
1314
1386
  );
1315
1387
 
1316
- tablesDB
1388
+
1389
+ const tablesDBGetUsageCommand = tablesDB
1317
1390
  .command(`get-usage`)
1318
1391
  .description(`Get usage metrics and statistics for a database. You can view the total number of tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.`)
1319
1392
  .requiredOption(`--database-id <database-id>`, `Database ID.`)
@@ -1325,3 +1398,4 @@ tablesDB
1325
1398
  ),
1326
1399
  );
1327
1400
 
1401
+