@dokploy/cli 0.29.0 → 0.29.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.
@@ -32,6 +32,24 @@ export function registerGeneratedCommands(program) {
32
32
  }
33
33
  });
34
34
  const g_ai = program.command('ai').description('ai commands');
35
+ g_ai
36
+ .command('analyze-logs')
37
+ .description('ai analyzeLogs')
38
+ .requiredOption('--aiId <value>', 'aiId')
39
+ .requiredOption('--logs <value>', 'logs')
40
+ .requiredOption('--context <value>', 'context (build, runtime)')
41
+ .option('--json', 'Output raw JSON')
42
+ .action(async (opts) => {
43
+ const jsonOutput = opts.json;
44
+ delete opts.json;
45
+ const data = await apiPost("ai.analyzeLogs", opts);
46
+ if (jsonOutput) {
47
+ console.log(JSON.stringify(data, null, 2));
48
+ }
49
+ else {
50
+ printOutput(data);
51
+ }
52
+ });
35
53
  g_ai
36
54
  .command('create')
37
55
  .description('ai create')
@@ -125,6 +143,21 @@ export function registerGeneratedCommands(program) {
125
143
  printOutput(data);
126
144
  }
127
145
  });
146
+ g_ai
147
+ .command('get-enabled-providers')
148
+ .description('ai getEnabledProviders')
149
+ .option('--json', 'Output raw JSON')
150
+ .action(async (opts) => {
151
+ const jsonOutput = opts.json;
152
+ delete opts.json;
153
+ const data = await apiGet("ai.getEnabledProviders", opts);
154
+ if (jsonOutput) {
155
+ console.log(JSON.stringify(data, null, 2));
156
+ }
157
+ else {
158
+ printOutput(data);
159
+ }
160
+ });
128
161
  g_ai
129
162
  .command('get-models')
130
163
  .description('ai getModels')
@@ -176,6 +209,24 @@ export function registerGeneratedCommands(program) {
176
209
  printOutput(data);
177
210
  }
178
211
  });
212
+ g_ai
213
+ .command('test-connection')
214
+ .description('ai testConnection')
215
+ .requiredOption('--apiUrl <value>', 'apiUrl')
216
+ .requiredOption('--apiKey <value>', 'apiKey')
217
+ .requiredOption('--model <value>', 'model')
218
+ .option('--json', 'Output raw JSON')
219
+ .action(async (opts) => {
220
+ const jsonOutput = opts.json;
221
+ delete opts.json;
222
+ const data = await apiPost("ai.testConnection", opts);
223
+ if (jsonOutput) {
224
+ console.log(JSON.stringify(data, null, 2));
225
+ }
226
+ else {
227
+ printOutput(data);
228
+ }
229
+ });
179
230
  g_ai
180
231
  .command('update')
181
232
  .description('ai update')
@@ -319,6 +370,21 @@ export function registerGeneratedCommands(program) {
319
370
  printOutput(data);
320
371
  }
321
372
  });
373
+ g_application
374
+ .command('drop-deployment')
375
+ .description('application dropDeployment')
376
+ .option('--json', 'Output raw JSON')
377
+ .action(async (opts) => {
378
+ const jsonOutput = opts.json;
379
+ delete opts.json;
380
+ const data = await apiPost("application.dropDeployment", opts);
381
+ if (jsonOutput) {
382
+ console.log(JSON.stringify(data, null, 2));
383
+ }
384
+ else {
385
+ printOutput(data);
386
+ }
387
+ });
322
388
  g_application
323
389
  .command('kill-build')
324
390
  .description('application killBuild')
@@ -400,6 +466,27 @@ export function registerGeneratedCommands(program) {
400
466
  printOutput(data);
401
467
  }
402
468
  });
469
+ g_application
470
+ .command('read-logs')
471
+ .description('application readLogs')
472
+ .requiredOption('--applicationId <value>', 'applicationId')
473
+ .option('--tail <value>', 'tail')
474
+ .option('--since <value>', 'since')
475
+ .option('--search <value>', 'search')
476
+ .option('--json', 'Output raw JSON')
477
+ .action(async (opts) => {
478
+ const jsonOutput = opts.json;
479
+ delete opts.json;
480
+ if (opts["tail"] != null)
481
+ opts["tail"] = Number(opts["tail"]);
482
+ const data = await apiGet("application.readLogs", opts);
483
+ if (jsonOutput) {
484
+ console.log(JSON.stringify(data, null, 2));
485
+ }
486
+ else {
487
+ printOutput(data);
488
+ }
489
+ });
403
490
  g_application
404
491
  .command('read-traefik-config')
405
492
  .description('application readTraefikConfig')
@@ -470,13 +557,13 @@ export function registerGeneratedCommands(program) {
470
557
  g_application
471
558
  .command('save-bitbucket-provider')
472
559
  .description('application saveBitbucketProvider')
473
- .requiredOption('--bitbucketBranch <value>', 'bitbucketBranch')
474
560
  .requiredOption('--bitbucketBuildPath <value>', 'bitbucketBuildPath')
475
561
  .requiredOption('--bitbucketOwner <value>', 'bitbucketOwner')
476
562
  .requiredOption('--bitbucketRepository <value>', 'bitbucketRepository')
477
563
  .requiredOption('--bitbucketRepositorySlug <value>', 'bitbucketRepositorySlug')
478
564
  .requiredOption('--bitbucketId <value>', 'bitbucketId')
479
565
  .requiredOption('--applicationId <value>', 'applicationId')
566
+ .requiredOption('--bitbucketBranch <value>', 'bitbucketBranch')
480
567
  .option('--enableSubmodules', 'enableSubmodules')
481
568
  .option('--watchPaths <value>', 'watchPaths')
482
569
  .option('--json', 'Output raw JSON')
@@ -565,11 +652,11 @@ export function registerGeneratedCommands(program) {
565
652
  .command('save-gitea-provider')
566
653
  .description('application saveGiteaProvider')
567
654
  .requiredOption('--applicationId <value>', 'applicationId')
568
- .requiredOption('--giteaBranch <value>', 'giteaBranch')
569
655
  .requiredOption('--giteaBuildPath <value>', 'giteaBuildPath')
570
656
  .requiredOption('--giteaOwner <value>', 'giteaOwner')
571
657
  .requiredOption('--giteaRepository <value>', 'giteaRepository')
572
658
  .requiredOption('--giteaId <value>', 'giteaId')
659
+ .requiredOption('--giteaBranch <value>', 'giteaBranch')
573
660
  .option('--enableSubmodules', 'enableSubmodules')
574
661
  .option('--watchPaths <value>', 'watchPaths')
575
662
  .option('--json', 'Output raw JSON')
@@ -591,10 +678,10 @@ export function registerGeneratedCommands(program) {
591
678
  .description('application saveGithubProvider')
592
679
  .requiredOption('--applicationId <value>', 'applicationId')
593
680
  .requiredOption('--repository <value>', 'repository')
594
- .requiredOption('--branch <value>', 'branch')
595
681
  .requiredOption('--owner <value>', 'owner')
596
682
  .requiredOption('--buildPath <value>', 'buildPath')
597
683
  .requiredOption('--githubId <value>', 'githubId')
684
+ .requiredOption('--branch <value>', 'branch')
598
685
  .requiredOption('--triggerType <value>', 'triggerType (push, tag)')
599
686
  .option('--enableSubmodules', 'enableSubmodules')
600
687
  .option('--watchPaths <value>', 'watchPaths')
@@ -616,13 +703,13 @@ export function registerGeneratedCommands(program) {
616
703
  .command('save-gitlab-provider')
617
704
  .description('application saveGitlabProvider')
618
705
  .requiredOption('--applicationId <value>', 'applicationId')
619
- .requiredOption('--gitlabBranch <value>', 'gitlabBranch')
620
706
  .requiredOption('--gitlabBuildPath <value>', 'gitlabBuildPath')
621
707
  .requiredOption('--gitlabOwner <value>', 'gitlabOwner')
622
708
  .requiredOption('--gitlabRepository <value>', 'gitlabRepository')
623
709
  .requiredOption('--gitlabId <value>', 'gitlabId')
624
710
  .requiredOption('--gitlabProjectId <value>', 'gitlabProjectId')
625
711
  .requiredOption('--gitlabPathNamespace <value>', 'gitlabPathNamespace')
712
+ .requiredOption('--gitlabBranch <value>', 'gitlabBranch')
626
713
  .option('--enableSubmodules', 'enableSubmodules')
627
714
  .option('--watchPaths <value>', 'watchPaths')
628
715
  .option('--json', 'Output raw JSON')
@@ -644,12 +731,12 @@ export function registerGeneratedCommands(program) {
644
731
  g_application
645
732
  .command('save-git-provider')
646
733
  .description('application saveGitProvider')
647
- .requiredOption('--customGitBranch <value>', 'customGitBranch')
648
734
  .requiredOption('--applicationId <value>', 'applicationId')
649
735
  .requiredOption('--customGitBuildPath <value>', 'customGitBuildPath')
650
736
  .requiredOption('--customGitUrl <value>', 'customGitUrl')
651
737
  .requiredOption('--watchPaths <value>', 'watchPaths')
652
738
  .option('--enableSubmodules', 'enableSubmodules')
739
+ .requiredOption('--customGitBranch <value>', 'customGitBranch')
653
740
  .option('--customGitSSHKeyId <value>', 'customGitSSHKeyId')
654
741
  .option('--json', 'Output raw JSON')
655
742
  .action(async (opts) => {
@@ -761,6 +848,7 @@ export function registerGeneratedCommands(program) {
761
848
  .option('--subtitle <value>', 'subtitle')
762
849
  .option('--command <value>', 'command')
763
850
  .option('--args <value>', 'args')
851
+ .option('--icon <value>', 'icon')
764
852
  .option('--refreshToken <value>', 'refreshToken')
765
853
  .option('--sourceType <value>', 'sourceType (github, docker, git, gitlab, bitbucket, gitea, drop)')
766
854
  .option('--cleanCache', 'cleanCache')
@@ -884,6 +972,35 @@ export function registerGeneratedCommands(program) {
884
972
  printOutput(data);
885
973
  }
886
974
  });
975
+ const g_auditLog = program.command('audit-log').description('audit-log commands');
976
+ g_auditLog
977
+ .command('all')
978
+ .description('auditLog all')
979
+ .option('--userId <value>', 'userId')
980
+ .option('--userEmail <value>', 'userEmail')
981
+ .option('--resourceName <value>', 'resourceName')
982
+ .option('--action <value>', 'action (create, update, delete, deploy, cancel, redeploy, login, logout)')
983
+ .option('--resourceType <value>', 'resourceType (project, service, environment, deployment, user, customRole, domain, certificate, registry, server, sshKey, gitProvider, notification, settings, session)')
984
+ .option('--from <value>', 'from')
985
+ .option('--to <value>', 'to')
986
+ .option('--limit <value>', 'limit')
987
+ .option('--offset <value>', 'offset')
988
+ .option('--json', 'Output raw JSON')
989
+ .action(async (opts) => {
990
+ const jsonOutput = opts.json;
991
+ delete opts.json;
992
+ if (opts["limit"] != null)
993
+ opts["limit"] = Number(opts["limit"]);
994
+ if (opts["offset"] != null)
995
+ opts["offset"] = Number(opts["offset"]);
996
+ const data = await apiGet("auditLog.all", opts);
997
+ if (jsonOutput) {
998
+ console.log(JSON.stringify(data, null, 2));
999
+ }
1000
+ else {
1001
+ printOutput(data);
1002
+ }
1003
+ });
887
1004
  const g_backup = program.command('backup').description('backup commands');
888
1005
  g_backup
889
1006
  .command('create')
@@ -898,7 +1015,8 @@ export function registerGeneratedCommands(program) {
898
1015
  .option('--mysqlId <value>', 'mysqlId')
899
1016
  .option('--postgresId <value>', 'postgresId')
900
1017
  .option('--mongoId <value>', 'mongoId')
901
- .requiredOption('--databaseType <value>', 'databaseType (postgres, mariadb, mysql, mongo, web-server)')
1018
+ .option('--libsqlId <value>', 'libsqlId')
1019
+ .requiredOption('--databaseType <value>', 'databaseType (postgres, mariadb, mysql, mongo, web-server, libsql)')
902
1020
  .option('--userId <value>', 'userId')
903
1021
  .option('--backupType <value>', 'backupType (database, compose)')
904
1022
  .option('--composeId <value>', 'composeId')
@@ -954,6 +1072,22 @@ export function registerGeneratedCommands(program) {
954
1072
  printOutput(data);
955
1073
  }
956
1074
  });
1075
+ g_backup
1076
+ .command('manual-backup-libsql')
1077
+ .description('backup manualBackupLibsql')
1078
+ .requiredOption('--backupId <value>', 'backupId')
1079
+ .option('--json', 'Output raw JSON')
1080
+ .action(async (opts) => {
1081
+ const jsonOutput = opts.json;
1082
+ delete opts.json;
1083
+ const data = await apiPost("backup.manualBackupLibsql", opts);
1084
+ if (jsonOutput) {
1085
+ console.log(JSON.stringify(data, null, 2));
1086
+ }
1087
+ else {
1088
+ printOutput(data);
1089
+ }
1090
+ });
957
1091
  g_backup
958
1092
  .command('manual-backup-mariadb')
959
1093
  .description('backup manualBackupMariadb')
@@ -1078,7 +1212,7 @@ export function registerGeneratedCommands(program) {
1078
1212
  .requiredOption('--keepLatestCount <value>', 'keepLatestCount')
1079
1213
  .requiredOption('--serviceName <value>', 'serviceName')
1080
1214
  .requiredOption('--metadata <value>', 'metadata')
1081
- .requiredOption('--databaseType <value>', 'databaseType (postgres, mariadb, mysql, mongo, web-server)')
1215
+ .requiredOption('--databaseType <value>', 'databaseType (postgres, mariadb, mysql, mongo, web-server, libsql)')
1082
1216
  .option('--json', 'Output raw JSON')
1083
1217
  .action(async (opts) => {
1084
1218
  const jsonOutput = opts.json;
@@ -1303,6 +1437,25 @@ export function registerGeneratedCommands(program) {
1303
1437
  printOutput(data);
1304
1438
  }
1305
1439
  });
1440
+ g_certificates
1441
+ .command('update')
1442
+ .description('certificates update')
1443
+ .requiredOption('--certificateId <value>', 'certificateId')
1444
+ .option('--name <value>', 'name')
1445
+ .option('--certificateData <value>', 'certificateData')
1446
+ .option('--privateKey <value>', 'privateKey')
1447
+ .option('--json', 'Output raw JSON')
1448
+ .action(async (opts) => {
1449
+ const jsonOutput = opts.json;
1450
+ delete opts.json;
1451
+ const data = await apiPost("certificates.update", opts);
1452
+ if (jsonOutput) {
1453
+ console.log(JSON.stringify(data, null, 2));
1454
+ }
1455
+ else {
1456
+ printOutput(data);
1457
+ }
1458
+ });
1306
1459
  const g_cluster = program.command('cluster').description('cluster commands');
1307
1460
  g_cluster
1308
1461
  .command('add-manager')
@@ -1727,6 +1880,28 @@ export function registerGeneratedCommands(program) {
1727
1880
  printOutput(data);
1728
1881
  }
1729
1882
  });
1883
+ g_compose
1884
+ .command('read-logs')
1885
+ .description('compose readLogs')
1886
+ .requiredOption('--composeId <value>', 'composeId')
1887
+ .requiredOption('--containerId <value>', 'containerId')
1888
+ .option('--tail <value>', 'tail')
1889
+ .option('--since <value>', 'since')
1890
+ .option('--search <value>', 'search')
1891
+ .option('--json', 'Output raw JSON')
1892
+ .action(async (opts) => {
1893
+ const jsonOutput = opts.json;
1894
+ delete opts.json;
1895
+ if (opts["tail"] != null)
1896
+ opts["tail"] = Number(opts["tail"]);
1897
+ const data = await apiGet("compose.readLogs", opts);
1898
+ if (jsonOutput) {
1899
+ console.log(JSON.stringify(data, null, 2));
1900
+ }
1901
+ else {
1902
+ printOutput(data);
1903
+ }
1904
+ });
1730
1905
  g_compose
1731
1906
  .command('redeploy')
1732
1907
  .description('compose redeploy')
@@ -1761,6 +1936,23 @@ export function registerGeneratedCommands(program) {
1761
1936
  printOutput(data);
1762
1937
  }
1763
1938
  });
1939
+ g_compose
1940
+ .command('save-environment')
1941
+ .description('compose saveEnvironment')
1942
+ .requiredOption('--composeId <value>', 'composeId')
1943
+ .requiredOption('--env <value>', 'env')
1944
+ .option('--json', 'Output raw JSON')
1945
+ .action(async (opts) => {
1946
+ const jsonOutput = opts.json;
1947
+ delete opts.json;
1948
+ const data = await apiPost("compose.saveEnvironment", opts);
1949
+ if (jsonOutput) {
1950
+ console.log(JSON.stringify(data, null, 2));
1951
+ }
1952
+ else {
1953
+ printOutput(data);
1954
+ }
1955
+ });
1764
1956
  g_compose
1765
1957
  .command('search')
1766
1958
  .description('compose search')
@@ -1907,6 +2099,104 @@ export function registerGeneratedCommands(program) {
1907
2099
  printOutput(data);
1908
2100
  }
1909
2101
  });
2102
+ const g_customRole = program.command('custom-role').description('custom-role commands');
2103
+ g_customRole
2104
+ .command('all')
2105
+ .description('customRole all')
2106
+ .option('--json', 'Output raw JSON')
2107
+ .action(async (opts) => {
2108
+ const jsonOutput = opts.json;
2109
+ delete opts.json;
2110
+ const data = await apiGet("customRole.all", opts);
2111
+ if (jsonOutput) {
2112
+ console.log(JSON.stringify(data, null, 2));
2113
+ }
2114
+ else {
2115
+ printOutput(data);
2116
+ }
2117
+ });
2118
+ g_customRole
2119
+ .command('create')
2120
+ .description('customRole create')
2121
+ .requiredOption('--roleName <value>', 'roleName')
2122
+ .requiredOption('--permissions <value>', 'permissions')
2123
+ .option('--json', 'Output raw JSON')
2124
+ .action(async (opts) => {
2125
+ const jsonOutput = opts.json;
2126
+ delete opts.json;
2127
+ const data = await apiPost("customRole.create", opts);
2128
+ if (jsonOutput) {
2129
+ console.log(JSON.stringify(data, null, 2));
2130
+ }
2131
+ else {
2132
+ printOutput(data);
2133
+ }
2134
+ });
2135
+ g_customRole
2136
+ .command('get-statements')
2137
+ .description('customRole getStatements')
2138
+ .option('--json', 'Output raw JSON')
2139
+ .action(async (opts) => {
2140
+ const jsonOutput = opts.json;
2141
+ delete opts.json;
2142
+ const data = await apiGet("customRole.getStatements", opts);
2143
+ if (jsonOutput) {
2144
+ console.log(JSON.stringify(data, null, 2));
2145
+ }
2146
+ else {
2147
+ printOutput(data);
2148
+ }
2149
+ });
2150
+ g_customRole
2151
+ .command('members-by-role')
2152
+ .description('customRole membersByRole')
2153
+ .requiredOption('--roleName <value>', 'roleName')
2154
+ .option('--json', 'Output raw JSON')
2155
+ .action(async (opts) => {
2156
+ const jsonOutput = opts.json;
2157
+ delete opts.json;
2158
+ const data = await apiGet("customRole.membersByRole", opts);
2159
+ if (jsonOutput) {
2160
+ console.log(JSON.stringify(data, null, 2));
2161
+ }
2162
+ else {
2163
+ printOutput(data);
2164
+ }
2165
+ });
2166
+ g_customRole
2167
+ .command('remove')
2168
+ .description('customRole remove')
2169
+ .requiredOption('--roleName <value>', 'roleName')
2170
+ .option('--json', 'Output raw JSON')
2171
+ .action(async (opts) => {
2172
+ const jsonOutput = opts.json;
2173
+ delete opts.json;
2174
+ const data = await apiPost("customRole.remove", opts);
2175
+ if (jsonOutput) {
2176
+ console.log(JSON.stringify(data, null, 2));
2177
+ }
2178
+ else {
2179
+ printOutput(data);
2180
+ }
2181
+ });
2182
+ g_customRole
2183
+ .command('update')
2184
+ .description('customRole update')
2185
+ .requiredOption('--roleName <value>', 'roleName')
2186
+ .option('--newRoleName <value>', 'newRoleName')
2187
+ .requiredOption('--permissions <value>', 'permissions')
2188
+ .option('--json', 'Output raw JSON')
2189
+ .action(async (opts) => {
2190
+ const jsonOutput = opts.json;
2191
+ delete opts.json;
2192
+ const data = await apiPost("customRole.update", opts);
2193
+ if (jsonOutput) {
2194
+ console.log(JSON.stringify(data, null, 2));
2195
+ }
2196
+ else {
2197
+ printOutput(data);
2198
+ }
2199
+ });
1910
2200
  const g_deployment = program.command('deployment').description('deployment commands');
1911
2201
  g_deployment
1912
2202
  .command('all')
@@ -2061,6 +2351,7 @@ export function registerGeneratedCommands(program) {
2061
2351
  .requiredOption('--region <value>', 'region')
2062
2352
  .requiredOption('--endpoint <value>', 'endpoint')
2063
2353
  .requiredOption('--secretAccessKey <value>', 'secretAccessKey')
2354
+ .requiredOption('--additionalFlags <value>', 'additionalFlags')
2064
2355
  .option('--serverId <value>', 'serverId')
2065
2356
  .option('--json', 'Output raw JSON')
2066
2357
  .action(async (opts) => {
@@ -2116,6 +2407,7 @@ export function registerGeneratedCommands(program) {
2116
2407
  .requiredOption('--region <value>', 'region')
2117
2408
  .requiredOption('--endpoint <value>', 'endpoint')
2118
2409
  .requiredOption('--secretAccessKey <value>', 'secretAccessKey')
2410
+ .requiredOption('--additionalFlags <value>', 'additionalFlags')
2119
2411
  .option('--serverId <value>', 'serverId')
2120
2412
  .option('--json', 'Output raw JSON')
2121
2413
  .action(async (opts) => {
@@ -2140,6 +2432,7 @@ export function registerGeneratedCommands(program) {
2140
2432
  .requiredOption('--secretAccessKey <value>', 'secretAccessKey')
2141
2433
  .requiredOption('--destinationId <value>', 'destinationId')
2142
2434
  .requiredOption('--provider <value>', 'provider')
2435
+ .requiredOption('--additionalFlags <value>', 'additionalFlags')
2143
2436
  .option('--serverId <value>', 'serverId')
2144
2437
  .option('--json', 'Output raw JSON')
2145
2438
  .action(async (opts) => {
@@ -2258,14 +2551,15 @@ export function registerGeneratedCommands(program) {
2258
2551
  }
2259
2552
  });
2260
2553
  g_docker
2261
- .command('restart-container')
2262
- .description('docker restartContainer')
2554
+ .command('kill-container')
2555
+ .description('docker killContainer')
2263
2556
  .requiredOption('--containerId <value>', 'containerId')
2557
+ .option('--serverId <value>', 'serverId')
2264
2558
  .option('--json', 'Output raw JSON')
2265
2559
  .action(async (opts) => {
2266
2560
  const jsonOutput = opts.json;
2267
2561
  delete opts.json;
2268
- const data = await apiPost("docker.restartContainer", opts);
2562
+ const data = await apiPost("docker.killContainer", opts);
2269
2563
  if (jsonOutput) {
2270
2564
  console.log(JSON.stringify(data, null, 2));
2271
2565
  }
@@ -2273,16 +2567,16 @@ export function registerGeneratedCommands(program) {
2273
2567
  printOutput(data);
2274
2568
  }
2275
2569
  });
2276
- const g_domain = program.command('domain').description('domain commands');
2277
- g_domain
2278
- .command('by-application-id')
2279
- .description('domain byApplicationId')
2280
- .requiredOption('--applicationId <value>', 'applicationId')
2570
+ g_docker
2571
+ .command('remove-container')
2572
+ .description('docker removeContainer')
2573
+ .requiredOption('--containerId <value>', 'containerId')
2574
+ .option('--serverId <value>', 'serverId')
2281
2575
  .option('--json', 'Output raw JSON')
2282
2576
  .action(async (opts) => {
2283
2577
  const jsonOutput = opts.json;
2284
2578
  delete opts.json;
2285
- const data = await apiGet("domain.byApplicationId", opts);
2579
+ const data = await apiPost("docker.removeContainer", opts);
2286
2580
  if (jsonOutput) {
2287
2581
  console.log(JSON.stringify(data, null, 2));
2288
2582
  }
@@ -2290,15 +2584,16 @@ export function registerGeneratedCommands(program) {
2290
2584
  printOutput(data);
2291
2585
  }
2292
2586
  });
2293
- g_domain
2294
- .command('by-compose-id')
2295
- .description('domain byComposeId')
2296
- .requiredOption('--composeId <value>', 'composeId')
2587
+ g_docker
2588
+ .command('restart-container')
2589
+ .description('docker restartContainer')
2590
+ .requiredOption('--containerId <value>', 'containerId')
2591
+ .option('--serverId <value>', 'serverId')
2297
2592
  .option('--json', 'Output raw JSON')
2298
2593
  .action(async (opts) => {
2299
2594
  const jsonOutput = opts.json;
2300
2595
  delete opts.json;
2301
- const data = await apiGet("domain.byComposeId", opts);
2596
+ const data = await apiPost("docker.restartContainer", opts);
2302
2597
  if (jsonOutput) {
2303
2598
  console.log(JSON.stringify(data, null, 2));
2304
2599
  }
@@ -2306,15 +2601,16 @@ export function registerGeneratedCommands(program) {
2306
2601
  printOutput(data);
2307
2602
  }
2308
2603
  });
2309
- g_domain
2310
- .command('can-generate-traefik-me-domains')
2311
- .description('domain canGenerateTraefikMeDomains')
2312
- .requiredOption('--serverId <value>', 'serverId')
2604
+ g_docker
2605
+ .command('start-container')
2606
+ .description('docker startContainer')
2607
+ .requiredOption('--containerId <value>', 'containerId')
2608
+ .option('--serverId <value>', 'serverId')
2313
2609
  .option('--json', 'Output raw JSON')
2314
2610
  .action(async (opts) => {
2315
2611
  const jsonOutput = opts.json;
2316
2612
  delete opts.json;
2317
- const data = await apiGet("domain.canGenerateTraefikMeDomains", opts);
2613
+ const data = await apiPost("docker.startContainer", opts);
2318
2614
  if (jsonOutput) {
2319
2615
  console.log(JSON.stringify(data, null, 2));
2320
2616
  }
@@ -2322,12 +2618,94 @@ export function registerGeneratedCommands(program) {
2322
2618
  printOutput(data);
2323
2619
  }
2324
2620
  });
2325
- g_domain
2326
- .command('create')
2621
+ g_docker
2622
+ .command('stop-container')
2623
+ .description('docker stopContainer')
2624
+ .requiredOption('--containerId <value>', 'containerId')
2625
+ .option('--serverId <value>', 'serverId')
2626
+ .option('--json', 'Output raw JSON')
2627
+ .action(async (opts) => {
2628
+ const jsonOutput = opts.json;
2629
+ delete opts.json;
2630
+ const data = await apiPost("docker.stopContainer", opts);
2631
+ if (jsonOutput) {
2632
+ console.log(JSON.stringify(data, null, 2));
2633
+ }
2634
+ else {
2635
+ printOutput(data);
2636
+ }
2637
+ });
2638
+ g_docker
2639
+ .command('upload-file-to-container')
2640
+ .description('docker uploadFileToContainer')
2641
+ .option('--json', 'Output raw JSON')
2642
+ .action(async (opts) => {
2643
+ const jsonOutput = opts.json;
2644
+ delete opts.json;
2645
+ const data = await apiPost("docker.uploadFileToContainer", opts);
2646
+ if (jsonOutput) {
2647
+ console.log(JSON.stringify(data, null, 2));
2648
+ }
2649
+ else {
2650
+ printOutput(data);
2651
+ }
2652
+ });
2653
+ const g_domain = program.command('domain').description('domain commands');
2654
+ g_domain
2655
+ .command('by-application-id')
2656
+ .description('domain byApplicationId')
2657
+ .requiredOption('--applicationId <value>', 'applicationId')
2658
+ .option('--json', 'Output raw JSON')
2659
+ .action(async (opts) => {
2660
+ const jsonOutput = opts.json;
2661
+ delete opts.json;
2662
+ const data = await apiGet("domain.byApplicationId", opts);
2663
+ if (jsonOutput) {
2664
+ console.log(JSON.stringify(data, null, 2));
2665
+ }
2666
+ else {
2667
+ printOutput(data);
2668
+ }
2669
+ });
2670
+ g_domain
2671
+ .command('by-compose-id')
2672
+ .description('domain byComposeId')
2673
+ .requiredOption('--composeId <value>', 'composeId')
2674
+ .option('--json', 'Output raw JSON')
2675
+ .action(async (opts) => {
2676
+ const jsonOutput = opts.json;
2677
+ delete opts.json;
2678
+ const data = await apiGet("domain.byComposeId", opts);
2679
+ if (jsonOutput) {
2680
+ console.log(JSON.stringify(data, null, 2));
2681
+ }
2682
+ else {
2683
+ printOutput(data);
2684
+ }
2685
+ });
2686
+ g_domain
2687
+ .command('can-generate-traefik-me-domains')
2688
+ .description('domain canGenerateTraefikMeDomains')
2689
+ .requiredOption('--serverId <value>', 'serverId')
2690
+ .option('--json', 'Output raw JSON')
2691
+ .action(async (opts) => {
2692
+ const jsonOutput = opts.json;
2693
+ delete opts.json;
2694
+ const data = await apiGet("domain.canGenerateTraefikMeDomains", opts);
2695
+ if (jsonOutput) {
2696
+ console.log(JSON.stringify(data, null, 2));
2697
+ }
2698
+ else {
2699
+ printOutput(data);
2700
+ }
2701
+ });
2702
+ g_domain
2703
+ .command('create')
2327
2704
  .description('domain create')
2328
2705
  .requiredOption('--host <value>', 'host')
2329
2706
  .option('--path <value>', 'path')
2330
2707
  .option('--port <value>', 'port')
2708
+ .option('--customEntrypoint <value>', 'customEntrypoint')
2331
2709
  .option('--https', 'https')
2332
2710
  .option('--applicationId <value>', 'applicationId')
2333
2711
  .option('--certificateType <value>', 'certificateType (letsencrypt, none, custom)')
@@ -2338,6 +2716,7 @@ export function registerGeneratedCommands(program) {
2338
2716
  .option('--previewDeploymentId <value>', 'previewDeploymentId')
2339
2717
  .option('--internalPath <value>', 'internalPath')
2340
2718
  .option('--stripPath', 'stripPath')
2719
+ .option('--middlewares <value>', 'middlewares')
2341
2720
  .option('--json', 'Output raw JSON')
2342
2721
  .action(async (opts) => {
2343
2722
  const jsonOutput = opts.json;
@@ -2411,6 +2790,7 @@ export function registerGeneratedCommands(program) {
2411
2790
  .requiredOption('--host <value>', 'host')
2412
2791
  .option('--path <value>', 'path')
2413
2792
  .option('--port <value>', 'port')
2793
+ .option('--customEntrypoint <value>', 'customEntrypoint')
2414
2794
  .option('--https', 'https')
2415
2795
  .option('--certificateType <value>', 'certificateType (letsencrypt, none, custom)')
2416
2796
  .option('--customCertResolver <value>', 'customCertResolver')
@@ -2418,6 +2798,7 @@ export function registerGeneratedCommands(program) {
2418
2798
  .option('--domainType <value>', 'domainType (compose, application, preview)')
2419
2799
  .option('--internalPath <value>', 'internalPath')
2420
2800
  .option('--stripPath', 'stripPath')
2801
+ .option('--middlewares <value>', 'middlewares')
2421
2802
  .requiredOption('--domainId <value>', 'domainId')
2422
2803
  .option('--json', 'Output raw JSON')
2423
2804
  .action(async (opts) => {
@@ -2987,6 +3368,21 @@ export function registerGeneratedCommands(program) {
2987
3368
  }
2988
3369
  });
2989
3370
  const g_gitProvider = program.command('git-provider').description('git-provider commands');
3371
+ g_gitProvider
3372
+ .command('all-for-permissions')
3373
+ .description('gitProvider allForPermissions')
3374
+ .option('--json', 'Output raw JSON')
3375
+ .action(async (opts) => {
3376
+ const jsonOutput = opts.json;
3377
+ delete opts.json;
3378
+ const data = await apiGet("gitProvider.allForPermissions", opts);
3379
+ if (jsonOutput) {
3380
+ console.log(JSON.stringify(data, null, 2));
3381
+ }
3382
+ else {
3383
+ printOutput(data);
3384
+ }
3385
+ });
2990
3386
  g_gitProvider
2991
3387
  .command('get-all')
2992
3388
  .description('gitProvider getAll')
@@ -3018,6 +3414,322 @@ export function registerGeneratedCommands(program) {
3018
3414
  printOutput(data);
3019
3415
  }
3020
3416
  });
3417
+ g_gitProvider
3418
+ .command('toggle-share')
3419
+ .description('gitProvider toggleShare')
3420
+ .requiredOption('--gitProviderId <value>', 'gitProviderId')
3421
+ .requiredOption('--sharedWithOrganization', 'sharedWithOrganization')
3422
+ .option('--json', 'Output raw JSON')
3423
+ .action(async (opts) => {
3424
+ const jsonOutput = opts.json;
3425
+ delete opts.json;
3426
+ if (opts["sharedWithOrganization"] != null)
3427
+ opts["sharedWithOrganization"] = opts["sharedWithOrganization"] === true || opts["sharedWithOrganization"] === "true";
3428
+ const data = await apiPost("gitProvider.toggleShare", opts);
3429
+ if (jsonOutput) {
3430
+ console.log(JSON.stringify(data, null, 2));
3431
+ }
3432
+ else {
3433
+ printOutput(data);
3434
+ }
3435
+ });
3436
+ const g_libsql = program.command('libsql').description('libsql commands');
3437
+ g_libsql
3438
+ .command('change-status')
3439
+ .description('libsql changeStatus')
3440
+ .requiredOption('--libsqlId <value>', 'libsqlId')
3441
+ .requiredOption('--applicationStatus <value>', 'applicationStatus (idle, running, done, error)')
3442
+ .option('--json', 'Output raw JSON')
3443
+ .action(async (opts) => {
3444
+ const jsonOutput = opts.json;
3445
+ delete opts.json;
3446
+ const data = await apiPost("libsql.changeStatus", opts);
3447
+ if (jsonOutput) {
3448
+ console.log(JSON.stringify(data, null, 2));
3449
+ }
3450
+ else {
3451
+ printOutput(data);
3452
+ }
3453
+ });
3454
+ g_libsql
3455
+ .command('create')
3456
+ .description('libsql create')
3457
+ .requiredOption('--name <value>', 'name')
3458
+ .requiredOption('--appName <value>', 'appName')
3459
+ .requiredOption('--dockerImage <value>', 'dockerImage')
3460
+ .requiredOption('--environmentId <value>', 'environmentId')
3461
+ .requiredOption('--description <value>', 'description')
3462
+ .requiredOption('--databaseUser <value>', 'databaseUser')
3463
+ .requiredOption('--databasePassword <value>', 'databasePassword')
3464
+ .requiredOption('--sqldNode <value>', 'sqldNode (primary, replica)')
3465
+ .requiredOption('--sqldPrimaryUrl <value>', 'sqldPrimaryUrl')
3466
+ .requiredOption('--enableNamespaces', 'enableNamespaces')
3467
+ .requiredOption('--serverId <value>', 'serverId')
3468
+ .option('--json', 'Output raw JSON')
3469
+ .action(async (opts) => {
3470
+ const jsonOutput = opts.json;
3471
+ delete opts.json;
3472
+ if (opts["enableNamespaces"] != null)
3473
+ opts["enableNamespaces"] = opts["enableNamespaces"] === true || opts["enableNamespaces"] === "true";
3474
+ const data = await apiPost("libsql.create", opts);
3475
+ if (jsonOutput) {
3476
+ console.log(JSON.stringify(data, null, 2));
3477
+ }
3478
+ else {
3479
+ printOutput(data);
3480
+ }
3481
+ });
3482
+ g_libsql
3483
+ .command('deploy')
3484
+ .description('libsql deploy')
3485
+ .requiredOption('--libsqlId <value>', 'libsqlId')
3486
+ .option('--json', 'Output raw JSON')
3487
+ .action(async (opts) => {
3488
+ const jsonOutput = opts.json;
3489
+ delete opts.json;
3490
+ const data = await apiPost("libsql.deploy", opts);
3491
+ if (jsonOutput) {
3492
+ console.log(JSON.stringify(data, null, 2));
3493
+ }
3494
+ else {
3495
+ printOutput(data);
3496
+ }
3497
+ });
3498
+ g_libsql
3499
+ .command('move')
3500
+ .description('libsql move')
3501
+ .requiredOption('--libsqlId <value>', 'libsqlId')
3502
+ .requiredOption('--targetEnvironmentId <value>', 'targetEnvironmentId')
3503
+ .option('--json', 'Output raw JSON')
3504
+ .action(async (opts) => {
3505
+ const jsonOutput = opts.json;
3506
+ delete opts.json;
3507
+ const data = await apiPost("libsql.move", opts);
3508
+ if (jsonOutput) {
3509
+ console.log(JSON.stringify(data, null, 2));
3510
+ }
3511
+ else {
3512
+ printOutput(data);
3513
+ }
3514
+ });
3515
+ g_libsql
3516
+ .command('one')
3517
+ .description('libsql one')
3518
+ .requiredOption('--libsqlId <value>', 'libsqlId')
3519
+ .option('--json', 'Output raw JSON')
3520
+ .action(async (opts) => {
3521
+ const jsonOutput = opts.json;
3522
+ delete opts.json;
3523
+ const data = await apiGet("libsql.one", opts);
3524
+ if (jsonOutput) {
3525
+ console.log(JSON.stringify(data, null, 2));
3526
+ }
3527
+ else {
3528
+ printOutput(data);
3529
+ }
3530
+ });
3531
+ g_libsql
3532
+ .command('read-logs')
3533
+ .description('libsql readLogs')
3534
+ .requiredOption('--libsqlId <value>', 'libsqlId')
3535
+ .option('--tail <value>', 'tail')
3536
+ .option('--since <value>', 'since')
3537
+ .option('--search <value>', 'search')
3538
+ .option('--json', 'Output raw JSON')
3539
+ .action(async (opts) => {
3540
+ const jsonOutput = opts.json;
3541
+ delete opts.json;
3542
+ if (opts["tail"] != null)
3543
+ opts["tail"] = Number(opts["tail"]);
3544
+ const data = await apiGet("libsql.readLogs", opts);
3545
+ if (jsonOutput) {
3546
+ console.log(JSON.stringify(data, null, 2));
3547
+ }
3548
+ else {
3549
+ printOutput(data);
3550
+ }
3551
+ });
3552
+ g_libsql
3553
+ .command('rebuild')
3554
+ .description('libsql rebuild')
3555
+ .requiredOption('--libsqlId <value>', 'libsqlId')
3556
+ .option('--json', 'Output raw JSON')
3557
+ .action(async (opts) => {
3558
+ const jsonOutput = opts.json;
3559
+ delete opts.json;
3560
+ const data = await apiPost("libsql.rebuild", opts);
3561
+ if (jsonOutput) {
3562
+ console.log(JSON.stringify(data, null, 2));
3563
+ }
3564
+ else {
3565
+ printOutput(data);
3566
+ }
3567
+ });
3568
+ g_libsql
3569
+ .command('reload')
3570
+ .description('libsql reload')
3571
+ .requiredOption('--libsqlId <value>', 'libsqlId')
3572
+ .requiredOption('--appName <value>', 'appName')
3573
+ .option('--json', 'Output raw JSON')
3574
+ .action(async (opts) => {
3575
+ const jsonOutput = opts.json;
3576
+ delete opts.json;
3577
+ const data = await apiPost("libsql.reload", opts);
3578
+ if (jsonOutput) {
3579
+ console.log(JSON.stringify(data, null, 2));
3580
+ }
3581
+ else {
3582
+ printOutput(data);
3583
+ }
3584
+ });
3585
+ g_libsql
3586
+ .command('remove')
3587
+ .description('libsql remove')
3588
+ .requiredOption('--libsqlId <value>', 'libsqlId')
3589
+ .option('--json', 'Output raw JSON')
3590
+ .action(async (opts) => {
3591
+ const jsonOutput = opts.json;
3592
+ delete opts.json;
3593
+ const data = await apiPost("libsql.remove", opts);
3594
+ if (jsonOutput) {
3595
+ console.log(JSON.stringify(data, null, 2));
3596
+ }
3597
+ else {
3598
+ printOutput(data);
3599
+ }
3600
+ });
3601
+ g_libsql
3602
+ .command('save-environment')
3603
+ .description('libsql saveEnvironment')
3604
+ .requiredOption('--libsqlId <value>', 'libsqlId')
3605
+ .requiredOption('--env <value>', 'env')
3606
+ .option('--json', 'Output raw JSON')
3607
+ .action(async (opts) => {
3608
+ const jsonOutput = opts.json;
3609
+ delete opts.json;
3610
+ const data = await apiPost("libsql.saveEnvironment", opts);
3611
+ if (jsonOutput) {
3612
+ console.log(JSON.stringify(data, null, 2));
3613
+ }
3614
+ else {
3615
+ printOutput(data);
3616
+ }
3617
+ });
3618
+ g_libsql
3619
+ .command('save-external-ports')
3620
+ .description('libsql saveExternalPorts')
3621
+ .requiredOption('--libsqlId <value>', 'libsqlId')
3622
+ .option('--externalPort <value>', 'externalPort')
3623
+ .option('--externalGRPCPort <value>', 'externalGRPCPort')
3624
+ .option('--externalAdminPort <value>', 'externalAdminPort')
3625
+ .option('--json', 'Output raw JSON')
3626
+ .action(async (opts) => {
3627
+ const jsonOutput = opts.json;
3628
+ delete opts.json;
3629
+ if (opts["externalPort"] != null)
3630
+ opts["externalPort"] = Number(opts["externalPort"]);
3631
+ if (opts["externalGRPCPort"] != null)
3632
+ opts["externalGRPCPort"] = Number(opts["externalGRPCPort"]);
3633
+ if (opts["externalAdminPort"] != null)
3634
+ opts["externalAdminPort"] = Number(opts["externalAdminPort"]);
3635
+ const data = await apiPost("libsql.saveExternalPorts", opts);
3636
+ if (jsonOutput) {
3637
+ console.log(JSON.stringify(data, null, 2));
3638
+ }
3639
+ else {
3640
+ printOutput(data);
3641
+ }
3642
+ });
3643
+ g_libsql
3644
+ .command('start')
3645
+ .description('libsql start')
3646
+ .requiredOption('--libsqlId <value>', 'libsqlId')
3647
+ .option('--json', 'Output raw JSON')
3648
+ .action(async (opts) => {
3649
+ const jsonOutput = opts.json;
3650
+ delete opts.json;
3651
+ const data = await apiPost("libsql.start", opts);
3652
+ if (jsonOutput) {
3653
+ console.log(JSON.stringify(data, null, 2));
3654
+ }
3655
+ else {
3656
+ printOutput(data);
3657
+ }
3658
+ });
3659
+ g_libsql
3660
+ .command('stop')
3661
+ .description('libsql stop')
3662
+ .requiredOption('--libsqlId <value>', 'libsqlId')
3663
+ .option('--json', 'Output raw JSON')
3664
+ .action(async (opts) => {
3665
+ const jsonOutput = opts.json;
3666
+ delete opts.json;
3667
+ const data = await apiPost("libsql.stop", opts);
3668
+ if (jsonOutput) {
3669
+ console.log(JSON.stringify(data, null, 2));
3670
+ }
3671
+ else {
3672
+ printOutput(data);
3673
+ }
3674
+ });
3675
+ g_libsql
3676
+ .command('update')
3677
+ .description('libsql update')
3678
+ .requiredOption('--libsqlId <value>', 'libsqlId')
3679
+ .option('--name <value>', 'name')
3680
+ .option('--appName <value>', 'appName')
3681
+ .option('--description <value>', 'description')
3682
+ .option('--databaseUser <value>', 'databaseUser')
3683
+ .option('--databasePassword <value>', 'databasePassword')
3684
+ .option('--sqldNode <value>', 'sqldNode (primary, replica)')
3685
+ .option('--sqldPrimaryUrl <value>', 'sqldPrimaryUrl')
3686
+ .option('--enableNamespaces', 'enableNamespaces')
3687
+ .option('--dockerImage <value>', 'dockerImage')
3688
+ .option('--command <value>', 'command')
3689
+ .option('--env <value>', 'env')
3690
+ .option('--memoryReservation <value>', 'memoryReservation')
3691
+ .option('--memoryLimit <value>', 'memoryLimit')
3692
+ .option('--cpuReservation <value>', 'cpuReservation')
3693
+ .option('--cpuLimit <value>', 'cpuLimit')
3694
+ .option('--externalPort <value>', 'externalPort')
3695
+ .option('--externalGRPCPort <value>', 'externalGRPCPort')
3696
+ .option('--externalAdminPort <value>', 'externalAdminPort')
3697
+ .option('--applicationStatus <value>', 'applicationStatus (idle, running, done, error)')
3698
+ .option('--healthCheckSwarm <value>', 'healthCheckSwarm')
3699
+ .option('--restartPolicySwarm <value>', 'restartPolicySwarm')
3700
+ .option('--placementSwarm <value>', 'placementSwarm')
3701
+ .option('--updateConfigSwarm <value>', 'updateConfigSwarm')
3702
+ .option('--rollbackConfigSwarm <value>', 'rollbackConfigSwarm')
3703
+ .option('--modeSwarm <value>', 'modeSwarm')
3704
+ .option('--labelsSwarm <value>', 'labelsSwarm')
3705
+ .option('--networkSwarm <value>', 'networkSwarm')
3706
+ .option('--stopGracePeriodSwarm <value>', 'stopGracePeriodSwarm')
3707
+ .option('--endpointSpecSwarm <value>', 'endpointSpecSwarm')
3708
+ .option('--replicas <value>', 'replicas')
3709
+ .option('--createdAt <value>', 'createdAt')
3710
+ .option('--environmentId <value>', 'environmentId')
3711
+ .option('--json', 'Output raw JSON')
3712
+ .action(async (opts) => {
3713
+ const jsonOutput = opts.json;
3714
+ delete opts.json;
3715
+ if (opts["enableNamespaces"] != null)
3716
+ opts["enableNamespaces"] = opts["enableNamespaces"] === true || opts["enableNamespaces"] === "true";
3717
+ if (opts["externalPort"] != null)
3718
+ opts["externalPort"] = Number(opts["externalPort"]);
3719
+ if (opts["externalGRPCPort"] != null)
3720
+ opts["externalGRPCPort"] = Number(opts["externalGRPCPort"]);
3721
+ if (opts["externalAdminPort"] != null)
3722
+ opts["externalAdminPort"] = Number(opts["externalAdminPort"]);
3723
+ if (opts["replicas"] != null)
3724
+ opts["replicas"] = Number(opts["replicas"]);
3725
+ const data = await apiPost("libsql.update", opts);
3726
+ if (jsonOutput) {
3727
+ console.log(JSON.stringify(data, null, 2));
3728
+ }
3729
+ else {
3730
+ printOutput(data);
3731
+ }
3732
+ });
3021
3733
  const g_licenseKey = program.command('license-key').description('license-key commands');
3022
3734
  g_licenseKey
3023
3735
  .command('activate')
@@ -3114,6 +3826,24 @@ export function registerGeneratedCommands(program) {
3114
3826
  }
3115
3827
  });
3116
3828
  const g_mariadb = program.command('mariadb').description('mariadb commands');
3829
+ g_mariadb
3830
+ .command('change-password')
3831
+ .description('mariadb changePassword')
3832
+ .requiredOption('--mariadbId <value>', 'mariadbId')
3833
+ .requiredOption('--password <value>', 'password')
3834
+ .option('--type <value>', 'type (user, root)')
3835
+ .option('--json', 'Output raw JSON')
3836
+ .action(async (opts) => {
3837
+ const jsonOutput = opts.json;
3838
+ delete opts.json;
3839
+ const data = await apiPost("mariadb.changePassword", opts);
3840
+ if (jsonOutput) {
3841
+ console.log(JSON.stringify(data, null, 2));
3842
+ }
3843
+ else {
3844
+ printOutput(data);
3845
+ }
3846
+ });
3117
3847
  g_mariadb
3118
3848
  .command('change-status')
3119
3849
  .description('mariadb changeStatus')
@@ -3205,6 +3935,27 @@ export function registerGeneratedCommands(program) {
3205
3935
  printOutput(data);
3206
3936
  }
3207
3937
  });
3938
+ g_mariadb
3939
+ .command('read-logs')
3940
+ .description('mariadb readLogs')
3941
+ .requiredOption('--mariadbId <value>', 'mariadbId')
3942
+ .option('--tail <value>', 'tail')
3943
+ .option('--since <value>', 'since')
3944
+ .option('--search <value>', 'search')
3945
+ .option('--json', 'Output raw JSON')
3946
+ .action(async (opts) => {
3947
+ const jsonOutput = opts.json;
3948
+ delete opts.json;
3949
+ if (opts["tail"] != null)
3950
+ opts["tail"] = Number(opts["tail"]);
3951
+ const data = await apiGet("mariadb.readLogs", opts);
3952
+ if (jsonOutput) {
3953
+ console.log(JSON.stringify(data, null, 2));
3954
+ }
3955
+ else {
3956
+ printOutput(data);
3957
+ }
3958
+ });
3208
3959
  g_mariadb
3209
3960
  .command('rebuild')
3210
3961
  .description('mariadb rebuild')
@@ -3400,7 +4151,24 @@ export function registerGeneratedCommands(program) {
3400
4151
  printOutput(data);
3401
4152
  }
3402
4153
  });
3403
- const g_mongo = program.command('mongo').description('mongo commands');
4154
+ const g_mongo = program.command('mongo').description('mongo commands');
4155
+ g_mongo
4156
+ .command('change-password')
4157
+ .description('mongo changePassword')
4158
+ .requiredOption('--mongoId <value>', 'mongoId')
4159
+ .requiredOption('--password <value>', 'password')
4160
+ .option('--json', 'Output raw JSON')
4161
+ .action(async (opts) => {
4162
+ const jsonOutput = opts.json;
4163
+ delete opts.json;
4164
+ const data = await apiPost("mongo.changePassword", opts);
4165
+ if (jsonOutput) {
4166
+ console.log(JSON.stringify(data, null, 2));
4167
+ }
4168
+ else {
4169
+ printOutput(data);
4170
+ }
4171
+ });
3404
4172
  g_mongo
3405
4173
  .command('change-status')
3406
4174
  .description('mongo changeStatus')
@@ -3493,6 +4261,27 @@ export function registerGeneratedCommands(program) {
3493
4261
  printOutput(data);
3494
4262
  }
3495
4263
  });
4264
+ g_mongo
4265
+ .command('read-logs')
4266
+ .description('mongo readLogs')
4267
+ .requiredOption('--mongoId <value>', 'mongoId')
4268
+ .option('--tail <value>', 'tail')
4269
+ .option('--since <value>', 'since')
4270
+ .option('--search <value>', 'search')
4271
+ .option('--json', 'Output raw JSON')
4272
+ .action(async (opts) => {
4273
+ const jsonOutput = opts.json;
4274
+ delete opts.json;
4275
+ if (opts["tail"] != null)
4276
+ opts["tail"] = Number(opts["tail"]);
4277
+ const data = await apiGet("mongo.readLogs", opts);
4278
+ if (jsonOutput) {
4279
+ console.log(JSON.stringify(data, null, 2));
4280
+ }
4281
+ else {
4282
+ printOutput(data);
4283
+ }
4284
+ });
3496
4285
  g_mongo
3497
4286
  .command('rebuild')
3498
4287
  .description('mongo rebuild')
@@ -3714,8 +4503,8 @@ export function registerGeneratedCommands(program) {
3714
4503
  .option('--volumeName <value>', 'volumeName')
3715
4504
  .option('--content <value>', 'content')
3716
4505
  .requiredOption('--mountPath <value>', 'mountPath')
3717
- .option('--serviceType <value>', 'serviceType (application, postgres, mysql, mariadb, mongo, redis, compose)')
3718
4506
  .option('--filePath <value>', 'filePath')
4507
+ .option('--serviceType <value>', 'serviceType (application, postgres, mysql, mariadb, mongo, redis, compose, libsql)')
3719
4508
  .requiredOption('--serviceId <value>', 'serviceId')
3720
4509
  .option('--json', 'Output raw JSON')
3721
4510
  .action(async (opts) => {
@@ -3732,8 +4521,8 @@ export function registerGeneratedCommands(program) {
3732
4521
  g_mounts
3733
4522
  .command('list-by-service-id')
3734
4523
  .description('mounts listByServiceId')
4524
+ .requiredOption('--serviceType <value>', 'serviceType')
3735
4525
  .requiredOption('--serviceId <value>', 'serviceId')
3736
- .requiredOption('--serviceType <value>', 'serviceType (application, postgres, mysql, mariadb, mongo, redis, compose)')
3737
4526
  .option('--json', 'Output raw JSON')
3738
4527
  .action(async (opts) => {
3739
4528
  const jsonOutput = opts.json;
@@ -3787,15 +4576,16 @@ export function registerGeneratedCommands(program) {
3787
4576
  .option('--volumeName <value>', 'volumeName')
3788
4577
  .option('--filePath <value>', 'filePath')
3789
4578
  .option('--content <value>', 'content')
3790
- .option('--serviceType <value>', 'serviceType (application, postgres, mysql, mariadb, mongo, redis, compose)')
4579
+ .option('--serviceType <value>', 'serviceType (application, postgres, mysql, mariadb, mongo, redis, compose, libsql)')
3791
4580
  .option('--mountPath <value>', 'mountPath')
3792
4581
  .option('--applicationId <value>', 'applicationId')
3793
- .option('--postgresId <value>', 'postgresId')
4582
+ .option('--composeId <value>', 'composeId')
4583
+ .option('--libsqlId <value>', 'libsqlId')
3794
4584
  .option('--mariadbId <value>', 'mariadbId')
3795
4585
  .option('--mongoId <value>', 'mongoId')
3796
4586
  .option('--mysqlId <value>', 'mysqlId')
4587
+ .option('--postgresId <value>', 'postgresId')
3797
4588
  .option('--redisId <value>', 'redisId')
3798
- .option('--composeId <value>', 'composeId')
3799
4589
  .option('--json', 'Output raw JSON')
3800
4590
  .action(async (opts) => {
3801
4591
  const jsonOutput = opts.json;
@@ -3809,6 +4599,24 @@ export function registerGeneratedCommands(program) {
3809
4599
  }
3810
4600
  });
3811
4601
  const g_mysql = program.command('mysql').description('mysql commands');
4602
+ g_mysql
4603
+ .command('change-password')
4604
+ .description('mysql changePassword')
4605
+ .requiredOption('--mysqlId <value>', 'mysqlId')
4606
+ .requiredOption('--password <value>', 'password')
4607
+ .option('--type <value>', 'type (user, root)')
4608
+ .option('--json', 'Output raw JSON')
4609
+ .action(async (opts) => {
4610
+ const jsonOutput = opts.json;
4611
+ delete opts.json;
4612
+ const data = await apiPost("mysql.changePassword", opts);
4613
+ if (jsonOutput) {
4614
+ console.log(JSON.stringify(data, null, 2));
4615
+ }
4616
+ else {
4617
+ printOutput(data);
4618
+ }
4619
+ });
3812
4620
  g_mysql
3813
4621
  .command('change-status')
3814
4622
  .description('mysql changeStatus')
@@ -3900,6 +4708,27 @@ export function registerGeneratedCommands(program) {
3900
4708
  printOutput(data);
3901
4709
  }
3902
4710
  });
4711
+ g_mysql
4712
+ .command('read-logs')
4713
+ .description('mysql readLogs')
4714
+ .requiredOption('--mysqlId <value>', 'mysqlId')
4715
+ .option('--tail <value>', 'tail')
4716
+ .option('--since <value>', 'since')
4717
+ .option('--search <value>', 'search')
4718
+ .option('--json', 'Output raw JSON')
4719
+ .action(async (opts) => {
4720
+ const jsonOutput = opts.json;
4721
+ delete opts.json;
4722
+ if (opts["tail"] != null)
4723
+ opts["tail"] = Number(opts["tail"]);
4724
+ const data = await apiGet("mysql.readLogs", opts);
4725
+ if (jsonOutput) {
4726
+ console.log(JSON.stringify(data, null, 2));
4727
+ }
4728
+ else {
4729
+ printOutput(data);
4730
+ }
4731
+ });
3903
4732
  g_mysql
3904
4733
  .command('rebuild')
3905
4734
  .description('mysql rebuild')
@@ -4116,6 +4945,7 @@ export function registerGeneratedCommands(program) {
4116
4945
  .description('notification createCustom')
4117
4946
  .option('--appBuildError', 'appBuildError')
4118
4947
  .option('--databaseBackup', 'databaseBackup')
4948
+ .option('--dokployBackup', 'dokployBackup')
4119
4949
  .option('--volumeBackup', 'volumeBackup')
4120
4950
  .option('--dokployRestart', 'dokployRestart')
4121
4951
  .requiredOption('--name <value>', 'name')
@@ -4132,6 +4962,8 @@ export function registerGeneratedCommands(program) {
4132
4962
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
4133
4963
  if (opts["databaseBackup"] != null)
4134
4964
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
4965
+ if (opts["dokployBackup"] != null)
4966
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
4135
4967
  if (opts["volumeBackup"] != null)
4136
4968
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
4137
4969
  if (opts["dokployRestart"] != null)
@@ -4155,6 +4987,7 @@ export function registerGeneratedCommands(program) {
4155
4987
  .description('notification createDiscord')
4156
4988
  .requiredOption('--appBuildError', 'appBuildError')
4157
4989
  .requiredOption('--databaseBackup', 'databaseBackup')
4990
+ .requiredOption('--dokployBackup', 'dokployBackup')
4158
4991
  .requiredOption('--volumeBackup', 'volumeBackup')
4159
4992
  .requiredOption('--dokployRestart', 'dokployRestart')
4160
4993
  .requiredOption('--name <value>', 'name')
@@ -4171,6 +5004,8 @@ export function registerGeneratedCommands(program) {
4171
5004
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
4172
5005
  if (opts["databaseBackup"] != null)
4173
5006
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
5007
+ if (opts["dokployBackup"] != null)
5008
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
4174
5009
  if (opts["volumeBackup"] != null)
4175
5010
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
4176
5011
  if (opts["dokployRestart"] != null)
@@ -4196,6 +5031,7 @@ export function registerGeneratedCommands(program) {
4196
5031
  .description('notification createEmail')
4197
5032
  .requiredOption('--appBuildError', 'appBuildError')
4198
5033
  .requiredOption('--databaseBackup', 'databaseBackup')
5034
+ .requiredOption('--dokployBackup', 'dokployBackup')
4199
5035
  .requiredOption('--volumeBackup', 'volumeBackup')
4200
5036
  .requiredOption('--dokployRestart', 'dokployRestart')
4201
5037
  .requiredOption('--name <value>', 'name')
@@ -4216,6 +5052,8 @@ export function registerGeneratedCommands(program) {
4216
5052
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
4217
5053
  if (opts["databaseBackup"] != null)
4218
5054
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
5055
+ if (opts["dokployBackup"] != null)
5056
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
4219
5057
  if (opts["volumeBackup"] != null)
4220
5058
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
4221
5059
  if (opts["dokployRestart"] != null)
@@ -4241,6 +5079,7 @@ export function registerGeneratedCommands(program) {
4241
5079
  .description('notification createGotify')
4242
5080
  .requiredOption('--appBuildError', 'appBuildError')
4243
5081
  .requiredOption('--databaseBackup', 'databaseBackup')
5082
+ .requiredOption('--dokployBackup', 'dokployBackup')
4244
5083
  .requiredOption('--volumeBackup', 'volumeBackup')
4245
5084
  .requiredOption('--dokployRestart', 'dokployRestart')
4246
5085
  .requiredOption('--name <value>', 'name')
@@ -4258,6 +5097,8 @@ export function registerGeneratedCommands(program) {
4258
5097
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
4259
5098
  if (opts["databaseBackup"] != null)
4260
5099
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
5100
+ if (opts["dokployBackup"] != null)
5101
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
4261
5102
  if (opts["volumeBackup"] != null)
4262
5103
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
4263
5104
  if (opts["dokployRestart"] != null)
@@ -4283,6 +5124,7 @@ export function registerGeneratedCommands(program) {
4283
5124
  .description('notification createLark')
4284
5125
  .requiredOption('--appBuildError', 'appBuildError')
4285
5126
  .requiredOption('--databaseBackup', 'databaseBackup')
5127
+ .requiredOption('--dokployBackup', 'dokployBackup')
4286
5128
  .requiredOption('--volumeBackup', 'volumeBackup')
4287
5129
  .requiredOption('--dokployRestart', 'dokployRestart')
4288
5130
  .requiredOption('--name <value>', 'name')
@@ -4298,6 +5140,8 @@ export function registerGeneratedCommands(program) {
4298
5140
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
4299
5141
  if (opts["databaseBackup"] != null)
4300
5142
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
5143
+ if (opts["dokployBackup"] != null)
5144
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
4301
5145
  if (opts["volumeBackup"] != null)
4302
5146
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
4303
5147
  if (opts["dokployRestart"] != null)
@@ -4316,11 +5160,55 @@ export function registerGeneratedCommands(program) {
4316
5160
  printOutput(data);
4317
5161
  }
4318
5162
  });
5163
+ g_notification
5164
+ .command('create-mattermost')
5165
+ .description('notification createMattermost')
5166
+ .requiredOption('--appBuildError', 'appBuildError')
5167
+ .requiredOption('--databaseBackup', 'databaseBackup')
5168
+ .requiredOption('--dokployBackup', 'dokployBackup')
5169
+ .requiredOption('--volumeBackup', 'volumeBackup')
5170
+ .requiredOption('--dokployRestart', 'dokployRestart')
5171
+ .requiredOption('--name <value>', 'name')
5172
+ .requiredOption('--appDeploy', 'appDeploy')
5173
+ .requiredOption('--dockerCleanup', 'dockerCleanup')
5174
+ .requiredOption('--serverThreshold', 'serverThreshold')
5175
+ .requiredOption('--webhookUrl <value>', 'webhookUrl')
5176
+ .option('--channel <value>', 'channel')
5177
+ .option('--username <value>', 'username')
5178
+ .option('--json', 'Output raw JSON')
5179
+ .action(async (opts) => {
5180
+ const jsonOutput = opts.json;
5181
+ delete opts.json;
5182
+ if (opts["appBuildError"] != null)
5183
+ opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
5184
+ if (opts["databaseBackup"] != null)
5185
+ opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
5186
+ if (opts["dokployBackup"] != null)
5187
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
5188
+ if (opts["volumeBackup"] != null)
5189
+ opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
5190
+ if (opts["dokployRestart"] != null)
5191
+ opts["dokployRestart"] = opts["dokployRestart"] === true || opts["dokployRestart"] === "true";
5192
+ if (opts["appDeploy"] != null)
5193
+ opts["appDeploy"] = opts["appDeploy"] === true || opts["appDeploy"] === "true";
5194
+ if (opts["dockerCleanup"] != null)
5195
+ opts["dockerCleanup"] = opts["dockerCleanup"] === true || opts["dockerCleanup"] === "true";
5196
+ if (opts["serverThreshold"] != null)
5197
+ opts["serverThreshold"] = opts["serverThreshold"] === true || opts["serverThreshold"] === "true";
5198
+ const data = await apiPost("notification.createMattermost", opts);
5199
+ if (jsonOutput) {
5200
+ console.log(JSON.stringify(data, null, 2));
5201
+ }
5202
+ else {
5203
+ printOutput(data);
5204
+ }
5205
+ });
4319
5206
  g_notification
4320
5207
  .command('create-ntfy')
4321
5208
  .description('notification createNtfy')
4322
5209
  .requiredOption('--appBuildError', 'appBuildError')
4323
5210
  .requiredOption('--databaseBackup', 'databaseBackup')
5211
+ .requiredOption('--dokployBackup', 'dokployBackup')
4324
5212
  .requiredOption('--volumeBackup', 'volumeBackup')
4325
5213
  .requiredOption('--dokployRestart', 'dokployRestart')
4326
5214
  .requiredOption('--name <value>', 'name')
@@ -4338,6 +5226,8 @@ export function registerGeneratedCommands(program) {
4338
5226
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
4339
5227
  if (opts["databaseBackup"] != null)
4340
5228
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
5229
+ if (opts["dokployBackup"] != null)
5230
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
4341
5231
  if (opts["volumeBackup"] != null)
4342
5232
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
4343
5233
  if (opts["dokployRestart"] != null)
@@ -4361,6 +5251,7 @@ export function registerGeneratedCommands(program) {
4361
5251
  .description('notification createPushover')
4362
5252
  .option('--appBuildError', 'appBuildError')
4363
5253
  .option('--databaseBackup', 'databaseBackup')
5254
+ .option('--dokployBackup', 'dokployBackup')
4364
5255
  .option('--volumeBackup', 'volumeBackup')
4365
5256
  .option('--dokployRestart', 'dokployRestart')
4366
5257
  .requiredOption('--name <value>', 'name')
@@ -4380,6 +5271,8 @@ export function registerGeneratedCommands(program) {
4380
5271
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
4381
5272
  if (opts["databaseBackup"] != null)
4382
5273
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
5274
+ if (opts["dokployBackup"] != null)
5275
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
4383
5276
  if (opts["volumeBackup"] != null)
4384
5277
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
4385
5278
  if (opts["dokployRestart"] != null)
@@ -4409,6 +5302,7 @@ export function registerGeneratedCommands(program) {
4409
5302
  .description('notification createResend')
4410
5303
  .requiredOption('--appBuildError', 'appBuildError')
4411
5304
  .requiredOption('--databaseBackup', 'databaseBackup')
5305
+ .requiredOption('--dokployBackup', 'dokployBackup')
4412
5306
  .requiredOption('--volumeBackup', 'volumeBackup')
4413
5307
  .requiredOption('--dokployRestart', 'dokployRestart')
4414
5308
  .requiredOption('--name <value>', 'name')
@@ -4426,6 +5320,8 @@ export function registerGeneratedCommands(program) {
4426
5320
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
4427
5321
  if (opts["databaseBackup"] != null)
4428
5322
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
5323
+ if (opts["dokployBackup"] != null)
5324
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
4429
5325
  if (opts["volumeBackup"] != null)
4430
5326
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
4431
5327
  if (opts["dokployRestart"] != null)
@@ -4449,6 +5345,7 @@ export function registerGeneratedCommands(program) {
4449
5345
  .description('notification createSlack')
4450
5346
  .requiredOption('--appBuildError', 'appBuildError')
4451
5347
  .requiredOption('--databaseBackup', 'databaseBackup')
5348
+ .requiredOption('--dokployBackup', 'dokployBackup')
4452
5349
  .requiredOption('--volumeBackup', 'volumeBackup')
4453
5350
  .requiredOption('--dokployRestart', 'dokployRestart')
4454
5351
  .requiredOption('--name <value>', 'name')
@@ -4465,6 +5362,8 @@ export function registerGeneratedCommands(program) {
4465
5362
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
4466
5363
  if (opts["databaseBackup"] != null)
4467
5364
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
5365
+ if (opts["dokployBackup"] != null)
5366
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
4468
5367
  if (opts["volumeBackup"] != null)
4469
5368
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
4470
5369
  if (opts["dokployRestart"] != null)
@@ -4488,6 +5387,7 @@ export function registerGeneratedCommands(program) {
4488
5387
  .description('notification createTeams')
4489
5388
  .requiredOption('--appBuildError', 'appBuildError')
4490
5389
  .requiredOption('--databaseBackup', 'databaseBackup')
5390
+ .requiredOption('--dokployBackup', 'dokployBackup')
4491
5391
  .requiredOption('--volumeBackup', 'volumeBackup')
4492
5392
  .requiredOption('--dokployRestart', 'dokployRestart')
4493
5393
  .requiredOption('--name <value>', 'name')
@@ -4503,6 +5403,8 @@ export function registerGeneratedCommands(program) {
4503
5403
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
4504
5404
  if (opts["databaseBackup"] != null)
4505
5405
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
5406
+ if (opts["dokployBackup"] != null)
5407
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
4506
5408
  if (opts["volumeBackup"] != null)
4507
5409
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
4508
5410
  if (opts["dokployRestart"] != null)
@@ -4526,6 +5428,7 @@ export function registerGeneratedCommands(program) {
4526
5428
  .description('notification createTelegram')
4527
5429
  .requiredOption('--appBuildError', 'appBuildError')
4528
5430
  .requiredOption('--databaseBackup', 'databaseBackup')
5431
+ .requiredOption('--dokployBackup', 'dokployBackup')
4529
5432
  .requiredOption('--volumeBackup', 'volumeBackup')
4530
5433
  .requiredOption('--dokployRestart', 'dokployRestart')
4531
5434
  .requiredOption('--name <value>', 'name')
@@ -4543,6 +5446,8 @@ export function registerGeneratedCommands(program) {
4543
5446
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
4544
5447
  if (opts["databaseBackup"] != null)
4545
5448
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
5449
+ if (opts["dokployBackup"] != null)
5450
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
4546
5451
  if (opts["volumeBackup"] != null)
4547
5452
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
4548
5453
  if (opts["dokployRestart"] != null)
@@ -4732,6 +5637,24 @@ export function registerGeneratedCommands(program) {
4732
5637
  printOutput(data);
4733
5638
  }
4734
5639
  });
5640
+ g_notification
5641
+ .command('test-mattermost-connection')
5642
+ .description('notification testMattermostConnection')
5643
+ .requiredOption('--webhookUrl <value>', 'webhookUrl')
5644
+ .option('--channel <value>', 'channel')
5645
+ .option('--username <value>', 'username')
5646
+ .option('--json', 'Output raw JSON')
5647
+ .action(async (opts) => {
5648
+ const jsonOutput = opts.json;
5649
+ delete opts.json;
5650
+ const data = await apiPost("notification.testMattermostConnection", opts);
5651
+ if (jsonOutput) {
5652
+ console.log(JSON.stringify(data, null, 2));
5653
+ }
5654
+ else {
5655
+ printOutput(data);
5656
+ }
5657
+ });
4735
5658
  g_notification
4736
5659
  .command('test-ntfy-connection')
4737
5660
  .description('notification testNtfyConnection')
@@ -4853,6 +5776,7 @@ export function registerGeneratedCommands(program) {
4853
5776
  .description('notification updateCustom')
4854
5777
  .option('--appBuildError', 'appBuildError')
4855
5778
  .option('--databaseBackup', 'databaseBackup')
5779
+ .option('--dokployBackup', 'dokployBackup')
4856
5780
  .option('--volumeBackup', 'volumeBackup')
4857
5781
  .option('--dokployRestart', 'dokployRestart')
4858
5782
  .option('--name <value>', 'name')
@@ -4872,6 +5796,8 @@ export function registerGeneratedCommands(program) {
4872
5796
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
4873
5797
  if (opts["databaseBackup"] != null)
4874
5798
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
5799
+ if (opts["dokployBackup"] != null)
5800
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
4875
5801
  if (opts["volumeBackup"] != null)
4876
5802
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
4877
5803
  if (opts["dokployRestart"] != null)
@@ -4895,6 +5821,7 @@ export function registerGeneratedCommands(program) {
4895
5821
  .description('notification updateDiscord')
4896
5822
  .option('--appBuildError', 'appBuildError')
4897
5823
  .option('--databaseBackup', 'databaseBackup')
5824
+ .option('--dokployBackup', 'dokployBackup')
4898
5825
  .option('--volumeBackup', 'volumeBackup')
4899
5826
  .option('--dokployRestart', 'dokployRestart')
4900
5827
  .option('--name <value>', 'name')
@@ -4914,6 +5841,8 @@ export function registerGeneratedCommands(program) {
4914
5841
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
4915
5842
  if (opts["databaseBackup"] != null)
4916
5843
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
5844
+ if (opts["dokployBackup"] != null)
5845
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
4917
5846
  if (opts["volumeBackup"] != null)
4918
5847
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
4919
5848
  if (opts["dokployRestart"] != null)
@@ -4939,6 +5868,7 @@ export function registerGeneratedCommands(program) {
4939
5868
  .description('notification updateEmail')
4940
5869
  .option('--appBuildError', 'appBuildError')
4941
5870
  .option('--databaseBackup', 'databaseBackup')
5871
+ .option('--dokployBackup', 'dokployBackup')
4942
5872
  .option('--volumeBackup', 'volumeBackup')
4943
5873
  .option('--dokployRestart', 'dokployRestart')
4944
5874
  .option('--name <value>', 'name')
@@ -4962,6 +5892,8 @@ export function registerGeneratedCommands(program) {
4962
5892
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
4963
5893
  if (opts["databaseBackup"] != null)
4964
5894
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
5895
+ if (opts["dokployBackup"] != null)
5896
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
4965
5897
  if (opts["volumeBackup"] != null)
4966
5898
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
4967
5899
  if (opts["dokployRestart"] != null)
@@ -4987,6 +5919,7 @@ export function registerGeneratedCommands(program) {
4987
5919
  .description('notification updateGotify')
4988
5920
  .option('--appBuildError', 'appBuildError')
4989
5921
  .option('--databaseBackup', 'databaseBackup')
5922
+ .option('--dokployBackup', 'dokployBackup')
4990
5923
  .option('--volumeBackup', 'volumeBackup')
4991
5924
  .option('--dokployRestart', 'dokployRestart')
4992
5925
  .option('--name <value>', 'name')
@@ -5007,6 +5940,8 @@ export function registerGeneratedCommands(program) {
5007
5940
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
5008
5941
  if (opts["databaseBackup"] != null)
5009
5942
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
5943
+ if (opts["dokployBackup"] != null)
5944
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
5010
5945
  if (opts["volumeBackup"] != null)
5011
5946
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
5012
5947
  if (opts["dokployRestart"] != null)
@@ -5032,6 +5967,7 @@ export function registerGeneratedCommands(program) {
5032
5967
  .description('notification updateLark')
5033
5968
  .option('--appBuildError', 'appBuildError')
5034
5969
  .option('--databaseBackup', 'databaseBackup')
5970
+ .option('--dokployBackup', 'dokployBackup')
5035
5971
  .option('--volumeBackup', 'volumeBackup')
5036
5972
  .option('--dokployRestart', 'dokployRestart')
5037
5973
  .option('--name <value>', 'name')
@@ -5050,6 +5986,8 @@ export function registerGeneratedCommands(program) {
5050
5986
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
5051
5987
  if (opts["databaseBackup"] != null)
5052
5988
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
5989
+ if (opts["dokployBackup"] != null)
5990
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
5053
5991
  if (opts["volumeBackup"] != null)
5054
5992
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
5055
5993
  if (opts["dokployRestart"] != null)
@@ -5068,11 +6006,58 @@ export function registerGeneratedCommands(program) {
5068
6006
  printOutput(data);
5069
6007
  }
5070
6008
  });
6009
+ g_notification
6010
+ .command('update-mattermost')
6011
+ .description('notification updateMattermost')
6012
+ .option('--appBuildError', 'appBuildError')
6013
+ .option('--databaseBackup', 'databaseBackup')
6014
+ .option('--dokployBackup', 'dokployBackup')
6015
+ .option('--volumeBackup', 'volumeBackup')
6016
+ .option('--dokployRestart', 'dokployRestart')
6017
+ .option('--name <value>', 'name')
6018
+ .option('--appDeploy', 'appDeploy')
6019
+ .option('--dockerCleanup', 'dockerCleanup')
6020
+ .option('--serverThreshold', 'serverThreshold')
6021
+ .option('--webhookUrl <value>', 'webhookUrl')
6022
+ .option('--channel <value>', 'channel')
6023
+ .option('--username <value>', 'username')
6024
+ .requiredOption('--notificationId <value>', 'notificationId')
6025
+ .requiredOption('--mattermostId <value>', 'mattermostId')
6026
+ .option('--organizationId <value>', 'organizationId')
6027
+ .option('--json', 'Output raw JSON')
6028
+ .action(async (opts) => {
6029
+ const jsonOutput = opts.json;
6030
+ delete opts.json;
6031
+ if (opts["appBuildError"] != null)
6032
+ opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
6033
+ if (opts["databaseBackup"] != null)
6034
+ opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
6035
+ if (opts["dokployBackup"] != null)
6036
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
6037
+ if (opts["volumeBackup"] != null)
6038
+ opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
6039
+ if (opts["dokployRestart"] != null)
6040
+ opts["dokployRestart"] = opts["dokployRestart"] === true || opts["dokployRestart"] === "true";
6041
+ if (opts["appDeploy"] != null)
6042
+ opts["appDeploy"] = opts["appDeploy"] === true || opts["appDeploy"] === "true";
6043
+ if (opts["dockerCleanup"] != null)
6044
+ opts["dockerCleanup"] = opts["dockerCleanup"] === true || opts["dockerCleanup"] === "true";
6045
+ if (opts["serverThreshold"] != null)
6046
+ opts["serverThreshold"] = opts["serverThreshold"] === true || opts["serverThreshold"] === "true";
6047
+ const data = await apiPost("notification.updateMattermost", opts);
6048
+ if (jsonOutput) {
6049
+ console.log(JSON.stringify(data, null, 2));
6050
+ }
6051
+ else {
6052
+ printOutput(data);
6053
+ }
6054
+ });
5071
6055
  g_notification
5072
6056
  .command('update-ntfy')
5073
6057
  .description('notification updateNtfy')
5074
6058
  .option('--appBuildError', 'appBuildError')
5075
6059
  .option('--databaseBackup', 'databaseBackup')
6060
+ .option('--dokployBackup', 'dokployBackup')
5076
6061
  .option('--volumeBackup', 'volumeBackup')
5077
6062
  .option('--dokployRestart', 'dokployRestart')
5078
6063
  .option('--name <value>', 'name')
@@ -5093,6 +6078,8 @@ export function registerGeneratedCommands(program) {
5093
6078
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
5094
6079
  if (opts["databaseBackup"] != null)
5095
6080
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
6081
+ if (opts["dokployBackup"] != null)
6082
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
5096
6083
  if (opts["volumeBackup"] != null)
5097
6084
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
5098
6085
  if (opts["dokployRestart"] != null)
@@ -5124,6 +6111,7 @@ export function registerGeneratedCommands(program) {
5124
6111
  .option('--expire <value>', 'expire')
5125
6112
  .option('--appBuildError', 'appBuildError')
5126
6113
  .option('--databaseBackup', 'databaseBackup')
6114
+ .option('--dokployBackup', 'dokployBackup')
5127
6115
  .option('--volumeBackup', 'volumeBackup')
5128
6116
  .option('--dokployRestart', 'dokployRestart')
5129
6117
  .option('--name <value>', 'name')
@@ -5144,6 +6132,8 @@ export function registerGeneratedCommands(program) {
5144
6132
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
5145
6133
  if (opts["databaseBackup"] != null)
5146
6134
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
6135
+ if (opts["dokployBackup"] != null)
6136
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
5147
6137
  if (opts["volumeBackup"] != null)
5148
6138
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
5149
6139
  if (opts["dokployRestart"] != null)
@@ -5167,6 +6157,7 @@ export function registerGeneratedCommands(program) {
5167
6157
  .description('notification updateResend')
5168
6158
  .option('--appBuildError', 'appBuildError')
5169
6159
  .option('--databaseBackup', 'databaseBackup')
6160
+ .option('--dokployBackup', 'dokployBackup')
5170
6161
  .option('--volumeBackup', 'volumeBackup')
5171
6162
  .option('--dokployRestart', 'dokployRestart')
5172
6163
  .option('--name <value>', 'name')
@@ -5187,6 +6178,8 @@ export function registerGeneratedCommands(program) {
5187
6178
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
5188
6179
  if (opts["databaseBackup"] != null)
5189
6180
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
6181
+ if (opts["dokployBackup"] != null)
6182
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
5190
6183
  if (opts["volumeBackup"] != null)
5191
6184
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
5192
6185
  if (opts["dokployRestart"] != null)
@@ -5210,6 +6203,7 @@ export function registerGeneratedCommands(program) {
5210
6203
  .description('notification updateSlack')
5211
6204
  .option('--appBuildError', 'appBuildError')
5212
6205
  .option('--databaseBackup', 'databaseBackup')
6206
+ .option('--dokployBackup', 'dokployBackup')
5213
6207
  .option('--volumeBackup', 'volumeBackup')
5214
6208
  .option('--dokployRestart', 'dokployRestart')
5215
6209
  .option('--name <value>', 'name')
@@ -5229,6 +6223,8 @@ export function registerGeneratedCommands(program) {
5229
6223
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
5230
6224
  if (opts["databaseBackup"] != null)
5231
6225
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
6226
+ if (opts["dokployBackup"] != null)
6227
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
5232
6228
  if (opts["volumeBackup"] != null)
5233
6229
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
5234
6230
  if (opts["dokployRestart"] != null)
@@ -5252,6 +6248,7 @@ export function registerGeneratedCommands(program) {
5252
6248
  .description('notification updateTeams')
5253
6249
  .option('--appBuildError', 'appBuildError')
5254
6250
  .option('--databaseBackup', 'databaseBackup')
6251
+ .option('--dokployBackup', 'dokployBackup')
5255
6252
  .option('--volumeBackup', 'volumeBackup')
5256
6253
  .option('--dokployRestart', 'dokployRestart')
5257
6254
  .option('--name <value>', 'name')
@@ -5270,6 +6267,8 @@ export function registerGeneratedCommands(program) {
5270
6267
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
5271
6268
  if (opts["databaseBackup"] != null)
5272
6269
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
6270
+ if (opts["dokployBackup"] != null)
6271
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
5273
6272
  if (opts["volumeBackup"] != null)
5274
6273
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
5275
6274
  if (opts["dokployRestart"] != null)
@@ -5293,6 +6292,7 @@ export function registerGeneratedCommands(program) {
5293
6292
  .description('notification updateTelegram')
5294
6293
  .option('--appBuildError', 'appBuildError')
5295
6294
  .option('--databaseBackup', 'databaseBackup')
6295
+ .option('--dokployBackup', 'dokployBackup')
5296
6296
  .option('--volumeBackup', 'volumeBackup')
5297
6297
  .option('--dokployRestart', 'dokployRestart')
5298
6298
  .option('--name <value>', 'name')
@@ -5313,6 +6313,8 @@ export function registerGeneratedCommands(program) {
5313
6313
  opts["appBuildError"] = opts["appBuildError"] === true || opts["appBuildError"] === "true";
5314
6314
  if (opts["databaseBackup"] != null)
5315
6315
  opts["databaseBackup"] = opts["databaseBackup"] === true || opts["databaseBackup"] === "true";
6316
+ if (opts["dokployBackup"] != null)
6317
+ opts["dokployBackup"] = opts["dokployBackup"] === true || opts["dokployBackup"] === "true";
5316
6318
  if (opts["volumeBackup"] != null)
5317
6319
  opts["volumeBackup"] = opts["volumeBackup"] === true || opts["volumeBackup"] === "true";
5318
6320
  if (opts["dokployRestart"] != null)
@@ -5410,6 +6412,23 @@ export function registerGeneratedCommands(program) {
5410
6412
  printOutput(data);
5411
6413
  }
5412
6414
  });
6415
+ g_organization
6416
+ .command('invite-member')
6417
+ .description('organization inviteMember')
6418
+ .requiredOption('--email <value>', 'email')
6419
+ .requiredOption('--role <value>', 'role')
6420
+ .option('--json', 'Output raw JSON')
6421
+ .action(async (opts) => {
6422
+ const jsonOutput = opts.json;
6423
+ delete opts.json;
6424
+ const data = await apiPost("organization.inviteMember", opts);
6425
+ if (jsonOutput) {
6426
+ console.log(JSON.stringify(data, null, 2));
6427
+ }
6428
+ else {
6429
+ printOutput(data);
6430
+ }
6431
+ });
5413
6432
  g_organization
5414
6433
  .command('one')
5415
6434
  .description('organization one')
@@ -5480,7 +6499,7 @@ export function registerGeneratedCommands(program) {
5480
6499
  .command('update-member-role')
5481
6500
  .description('organization updateMemberRole')
5482
6501
  .requiredOption('--memberId <value>', 'memberId')
5483
- .requiredOption('--role <value>', 'role (admin, member)')
6502
+ .requiredOption('--role <value>', 'role')
5484
6503
  .option('--json', 'Output raw JSON')
5485
6504
  .action(async (opts) => {
5486
6505
  const jsonOutput = opts.json;
@@ -5798,6 +6817,23 @@ export function registerGeneratedCommands(program) {
5798
6817
  }
5799
6818
  });
5800
6819
  const g_postgres = program.command('postgres').description('postgres commands');
6820
+ g_postgres
6821
+ .command('change-password')
6822
+ .description('postgres changePassword')
6823
+ .requiredOption('--postgresId <value>', 'postgresId')
6824
+ .requiredOption('--password <value>', 'password')
6825
+ .option('--json', 'Output raw JSON')
6826
+ .action(async (opts) => {
6827
+ const jsonOutput = opts.json;
6828
+ delete opts.json;
6829
+ const data = await apiPost("postgres.changePassword", opts);
6830
+ if (jsonOutput) {
6831
+ console.log(JSON.stringify(data, null, 2));
6832
+ }
6833
+ else {
6834
+ printOutput(data);
6835
+ }
6836
+ });
5801
6837
  g_postgres
5802
6838
  .command('change-status')
5803
6839
  .description('postgres changeStatus')
@@ -5888,6 +6924,27 @@ export function registerGeneratedCommands(program) {
5888
6924
  printOutput(data);
5889
6925
  }
5890
6926
  });
6927
+ g_postgres
6928
+ .command('read-logs')
6929
+ .description('postgres readLogs')
6930
+ .requiredOption('--postgresId <value>', 'postgresId')
6931
+ .option('--tail <value>', 'tail')
6932
+ .option('--since <value>', 'since')
6933
+ .option('--search <value>', 'search')
6934
+ .option('--json', 'Output raw JSON')
6935
+ .action(async (opts) => {
6936
+ const jsonOutput = opts.json;
6937
+ delete opts.json;
6938
+ if (opts["tail"] != null)
6939
+ opts["tail"] = Number(opts["tail"]);
6940
+ const data = await apiGet("postgres.readLogs", opts);
6941
+ if (jsonOutput) {
6942
+ console.log(JSON.stringify(data, null, 2));
6943
+ }
6944
+ else {
6945
+ printOutput(data);
6946
+ }
6947
+ });
5891
6948
  g_postgres
5892
6949
  .command('rebuild')
5893
6950
  .description('postgres rebuild')
@@ -6223,6 +7280,21 @@ export function registerGeneratedCommands(program) {
6223
7280
  printOutput(data);
6224
7281
  }
6225
7282
  });
7283
+ g_project
7284
+ .command('home-stats')
7285
+ .description('project homeStats')
7286
+ .option('--json', 'Output raw JSON')
7287
+ .action(async (opts) => {
7288
+ const jsonOutput = opts.json;
7289
+ delete opts.json;
7290
+ const data = await apiGet("project.homeStats", opts);
7291
+ if (jsonOutput) {
7292
+ console.log(JSON.stringify(data, null, 2));
7293
+ }
7294
+ else {
7295
+ printOutput(data);
7296
+ }
7297
+ });
6226
7298
  g_project
6227
7299
  .command('one')
6228
7300
  .description('project one')
@@ -6376,6 +7448,23 @@ export function registerGeneratedCommands(program) {
6376
7448
  }
6377
7449
  });
6378
7450
  const g_redis = program.command('redis').description('redis commands');
7451
+ g_redis
7452
+ .command('change-password')
7453
+ .description('redis changePassword')
7454
+ .requiredOption('--redisId <value>', 'redisId')
7455
+ .requiredOption('--password <value>', 'password')
7456
+ .option('--json', 'Output raw JSON')
7457
+ .action(async (opts) => {
7458
+ const jsonOutput = opts.json;
7459
+ delete opts.json;
7460
+ const data = await apiPost("redis.changePassword", opts);
7461
+ if (jsonOutput) {
7462
+ console.log(JSON.stringify(data, null, 2));
7463
+ }
7464
+ else {
7465
+ printOutput(data);
7466
+ }
7467
+ });
6379
7468
  g_redis
6380
7469
  .command('change-status')
6381
7470
  .description('redis changeStatus')
@@ -6464,6 +7553,27 @@ export function registerGeneratedCommands(program) {
6464
7553
  printOutput(data);
6465
7554
  }
6466
7555
  });
7556
+ g_redis
7557
+ .command('read-logs')
7558
+ .description('redis readLogs')
7559
+ .requiredOption('--redisId <value>', 'redisId')
7560
+ .option('--tail <value>', 'tail')
7561
+ .option('--since <value>', 'since')
7562
+ .option('--search <value>', 'search')
7563
+ .option('--json', 'Output raw JSON')
7564
+ .action(async (opts) => {
7565
+ const jsonOutput = opts.json;
7566
+ delete opts.json;
7567
+ if (opts["tail"] != null)
7568
+ opts["tail"] = Number(opts["tail"]);
7569
+ const data = await apiGet("redis.readLogs", opts);
7570
+ if (jsonOutput) {
7571
+ console.log(JSON.stringify(data, null, 2));
7572
+ }
7573
+ else {
7574
+ printOutput(data);
7575
+ }
7576
+ });
6467
7577
  g_redis
6468
7578
  .command('rebuild')
6469
7579
  .description('redis rebuild')
@@ -6829,6 +7939,7 @@ export function registerGeneratedCommands(program) {
6829
7939
  .description('schedule create')
6830
7940
  .option('--scheduleId <value>', 'scheduleId')
6831
7941
  .requiredOption('--name <value>', 'name')
7942
+ .option('--description <value>', 'description')
6832
7943
  .requiredOption('--cronExpression <value>', 'cronExpression')
6833
7944
  .option('--appName <value>', 'appName')
6834
7945
  .option('--serviceName <value>', 'serviceName')
@@ -6927,6 +8038,7 @@ export function registerGeneratedCommands(program) {
6927
8038
  .description('schedule update')
6928
8039
  .requiredOption('--scheduleId <value>', 'scheduleId')
6929
8040
  .requiredOption('--name <value>', 'name')
8041
+ .option('--description <value>', 'description')
6930
8042
  .requiredOption('--cronExpression <value>', 'cronExpression')
6931
8043
  .option('--appName <value>', 'appName')
6932
8044
  .option('--serviceName <value>', 'serviceName')
@@ -7040,6 +8152,21 @@ export function registerGeneratedCommands(program) {
7040
8152
  printOutput(data);
7041
8153
  }
7042
8154
  });
8155
+ g_server
8156
+ .command('all-for-permissions')
8157
+ .description('server allForPermissions')
8158
+ .option('--json', 'Output raw JSON')
8159
+ .action(async (opts) => {
8160
+ const jsonOutput = opts.json;
8161
+ delete opts.json;
8162
+ const data = await apiGet("server.allForPermissions", opts);
8163
+ if (jsonOutput) {
8164
+ console.log(JSON.stringify(data, null, 2));
8165
+ }
8166
+ else {
8167
+ printOutput(data);
8168
+ }
8169
+ });
7043
8170
  g_server
7044
8171
  .command('build-servers')
7045
8172
  .description('server buildServers')
@@ -7334,6 +8461,21 @@ export function registerGeneratedCommands(program) {
7334
8461
  printOutput(data);
7335
8462
  }
7336
8463
  });
8464
+ g_settings
8465
+ .command('check-infrastructure-health')
8466
+ .description('settings checkInfrastructureHealth')
8467
+ .option('--json', 'Output raw JSON')
8468
+ .action(async (opts) => {
8469
+ const jsonOutput = opts.json;
8470
+ delete opts.json;
8471
+ const data = await apiGet("settings.checkInfrastructureHealth", opts);
8472
+ if (jsonOutput) {
8473
+ console.log(JSON.stringify(data, null, 2));
8474
+ }
8475
+ else {
8476
+ printOutput(data);
8477
+ }
8478
+ });
7337
8479
  g_settings
7338
8480
  .command('clean-all')
7339
8481
  .description('settings cleanAll')
@@ -7466,7 +8608,23 @@ export function registerGeneratedCommands(program) {
7466
8608
  .action(async (opts) => {
7467
8609
  const jsonOutput = opts.json;
7468
8610
  delete opts.json;
7469
- const data = await apiPost("settings.cleanUnusedImages", opts);
8611
+ const data = await apiPost("settings.cleanUnusedImages", opts);
8612
+ if (jsonOutput) {
8613
+ console.log(JSON.stringify(data, null, 2));
8614
+ }
8615
+ else {
8616
+ printOutput(data);
8617
+ }
8618
+ });
8619
+ g_settings
8620
+ .command('clean-unused-volumes')
8621
+ .description('settings cleanUnusedVolumes')
8622
+ .option('--serverId <value>', 'serverId')
8623
+ .option('--json', 'Output raw JSON')
8624
+ .action(async (opts) => {
8625
+ const jsonOutput = opts.json;
8626
+ delete opts.json;
8627
+ const data = await apiPost("settings.cleanUnusedVolumes", opts);
7470
8628
  if (jsonOutput) {
7471
8629
  console.log(JSON.stringify(data, null, 2));
7472
8630
  }
@@ -7475,14 +8633,13 @@ export function registerGeneratedCommands(program) {
7475
8633
  }
7476
8634
  });
7477
8635
  g_settings
7478
- .command('clean-unused-volumes')
7479
- .description('settings cleanUnusedVolumes')
7480
- .option('--serverId <value>', 'serverId')
8636
+ .command('get-docker-disk-usage')
8637
+ .description('settings getDockerDiskUsage')
7481
8638
  .option('--json', 'Output raw JSON')
7482
8639
  .action(async (opts) => {
7483
8640
  const jsonOutput = opts.json;
7484
8641
  delete opts.json;
7485
- const data = await apiPost("settings.cleanUnusedVolumes", opts);
8642
+ const data = await apiGet("settings.getDockerDiskUsage", opts);
7486
8643
  if (jsonOutput) {
7487
8644
  console.log(JSON.stringify(data, null, 2));
7488
8645
  }
@@ -8093,6 +9250,21 @@ export function registerGeneratedCommands(program) {
8093
9250
  printOutput(data);
8094
9251
  }
8095
9252
  });
9253
+ g_sshKey
9254
+ .command('all-for-apps')
9255
+ .description('sshKey allForApps')
9256
+ .option('--json', 'Output raw JSON')
9257
+ .action(async (opts) => {
9258
+ const jsonOutput = opts.json;
9259
+ delete opts.json;
9260
+ const data = await apiGet("sshKey.allForApps", opts);
9261
+ if (jsonOutput) {
9262
+ console.log(JSON.stringify(data, null, 2));
9263
+ }
9264
+ else {
9265
+ printOutput(data);
9266
+ }
9267
+ });
8096
9268
  g_sshKey
8097
9269
  .command('create')
8098
9270
  .description('sshKey create')
@@ -8454,6 +9626,24 @@ export function registerGeneratedCommands(program) {
8454
9626
  printOutput(data);
8455
9627
  }
8456
9628
  });
9629
+ g_stripe
9630
+ .command('update-invoice-notifications')
9631
+ .description('stripe updateInvoiceNotifications')
9632
+ .requiredOption('--enabled', 'enabled')
9633
+ .option('--json', 'Output raw JSON')
9634
+ .action(async (opts) => {
9635
+ const jsonOutput = opts.json;
9636
+ delete opts.json;
9637
+ if (opts["enabled"] != null)
9638
+ opts["enabled"] = opts["enabled"] === true || opts["enabled"] === "true";
9639
+ const data = await apiPost("stripe.updateInvoiceNotifications", opts);
9640
+ if (jsonOutput) {
9641
+ console.log(JSON.stringify(data, null, 2));
9642
+ }
9643
+ else {
9644
+ printOutput(data);
9645
+ }
9646
+ });
8457
9647
  g_stripe
8458
9648
  .command('upgrade-subscription')
8459
9649
  .description('stripe upgradeSubscription')
@@ -8477,6 +9667,22 @@ export function registerGeneratedCommands(program) {
8477
9667
  }
8478
9668
  });
8479
9669
  const g_swarm = program.command('swarm').description('swarm commands');
9670
+ g_swarm
9671
+ .command('get-container-stats')
9672
+ .description('swarm getContainerStats')
9673
+ .option('--serverId <value>', 'serverId')
9674
+ .option('--json', 'Output raw JSON')
9675
+ .action(async (opts) => {
9676
+ const jsonOutput = opts.json;
9677
+ delete opts.json;
9678
+ const data = await apiGet("swarm.getContainerStats", opts);
9679
+ if (jsonOutput) {
9680
+ console.log(JSON.stringify(data, null, 2));
9681
+ }
9682
+ else {
9683
+ printOutput(data);
9684
+ }
9685
+ });
8480
9686
  g_swarm
8481
9687
  .command('get-node-apps')
8482
9688
  .description('swarm getNodeApps')
@@ -8526,6 +9732,142 @@ export function registerGeneratedCommands(program) {
8526
9732
  printOutput(data);
8527
9733
  }
8528
9734
  });
9735
+ const g_tag = program.command('tag').description('tag commands');
9736
+ g_tag
9737
+ .command('all')
9738
+ .description('tag all')
9739
+ .option('--json', 'Output raw JSON')
9740
+ .action(async (opts) => {
9741
+ const jsonOutput = opts.json;
9742
+ delete opts.json;
9743
+ const data = await apiGet("tag.all", opts);
9744
+ if (jsonOutput) {
9745
+ console.log(JSON.stringify(data, null, 2));
9746
+ }
9747
+ else {
9748
+ printOutput(data);
9749
+ }
9750
+ });
9751
+ g_tag
9752
+ .command('assign-to-project')
9753
+ .description('tag assignToProject')
9754
+ .requiredOption('--projectId <value>', 'projectId')
9755
+ .requiredOption('--tagId <value>', 'tagId')
9756
+ .option('--json', 'Output raw JSON')
9757
+ .action(async (opts) => {
9758
+ const jsonOutput = opts.json;
9759
+ delete opts.json;
9760
+ const data = await apiPost("tag.assignToProject", opts);
9761
+ if (jsonOutput) {
9762
+ console.log(JSON.stringify(data, null, 2));
9763
+ }
9764
+ else {
9765
+ printOutput(data);
9766
+ }
9767
+ });
9768
+ g_tag
9769
+ .command('bulk-assign')
9770
+ .description('tag bulkAssign')
9771
+ .requiredOption('--projectId <value>', 'projectId')
9772
+ .requiredOption('--tagIds <value>', 'tagIds')
9773
+ .option('--json', 'Output raw JSON')
9774
+ .action(async (opts) => {
9775
+ const jsonOutput = opts.json;
9776
+ delete opts.json;
9777
+ const data = await apiPost("tag.bulkAssign", opts);
9778
+ if (jsonOutput) {
9779
+ console.log(JSON.stringify(data, null, 2));
9780
+ }
9781
+ else {
9782
+ printOutput(data);
9783
+ }
9784
+ });
9785
+ g_tag
9786
+ .command('create')
9787
+ .description('tag create')
9788
+ .requiredOption('--name <value>', 'name')
9789
+ .option('--color <value>', 'color')
9790
+ .option('--json', 'Output raw JSON')
9791
+ .action(async (opts) => {
9792
+ const jsonOutput = opts.json;
9793
+ delete opts.json;
9794
+ const data = await apiPost("tag.create", opts);
9795
+ if (jsonOutput) {
9796
+ console.log(JSON.stringify(data, null, 2));
9797
+ }
9798
+ else {
9799
+ printOutput(data);
9800
+ }
9801
+ });
9802
+ g_tag
9803
+ .command('one')
9804
+ .description('tag one')
9805
+ .requiredOption('--tagId <value>', 'tagId')
9806
+ .option('--json', 'Output raw JSON')
9807
+ .action(async (opts) => {
9808
+ const jsonOutput = opts.json;
9809
+ delete opts.json;
9810
+ const data = await apiGet("tag.one", opts);
9811
+ if (jsonOutput) {
9812
+ console.log(JSON.stringify(data, null, 2));
9813
+ }
9814
+ else {
9815
+ printOutput(data);
9816
+ }
9817
+ });
9818
+ g_tag
9819
+ .command('remove')
9820
+ .description('tag remove')
9821
+ .requiredOption('--tagId <value>', 'tagId')
9822
+ .option('--json', 'Output raw JSON')
9823
+ .action(async (opts) => {
9824
+ const jsonOutput = opts.json;
9825
+ delete opts.json;
9826
+ const data = await apiPost("tag.remove", opts);
9827
+ if (jsonOutput) {
9828
+ console.log(JSON.stringify(data, null, 2));
9829
+ }
9830
+ else {
9831
+ printOutput(data);
9832
+ }
9833
+ });
9834
+ g_tag
9835
+ .command('remove-from-project')
9836
+ .description('tag removeFromProject')
9837
+ .requiredOption('--projectId <value>', 'projectId')
9838
+ .requiredOption('--tagId <value>', 'tagId')
9839
+ .option('--json', 'Output raw JSON')
9840
+ .action(async (opts) => {
9841
+ const jsonOutput = opts.json;
9842
+ delete opts.json;
9843
+ const data = await apiPost("tag.removeFromProject", opts);
9844
+ if (jsonOutput) {
9845
+ console.log(JSON.stringify(data, null, 2));
9846
+ }
9847
+ else {
9848
+ printOutput(data);
9849
+ }
9850
+ });
9851
+ g_tag
9852
+ .command('update')
9853
+ .description('tag update')
9854
+ .requiredOption('--tagId <value>', 'tagId')
9855
+ .option('--name <value>', 'name')
9856
+ .option('--color <value>', 'color')
9857
+ .option('--createdAt <value>', 'createdAt')
9858
+ .option('--organizationId <value>', 'organizationId')
9859
+ .option('--json', 'Output raw JSON')
9860
+ .action(async (opts) => {
9861
+ const jsonOutput = opts.json;
9862
+ delete opts.json;
9863
+ const data = await apiPost("tag.update", opts);
9864
+ if (jsonOutput) {
9865
+ console.log(JSON.stringify(data, null, 2));
9866
+ }
9867
+ else {
9868
+ printOutput(data);
9869
+ }
9870
+ });
8529
9871
  const g_user = program.command('user').description('user commands');
8530
9872
  g_user
8531
9873
  .command('all')
@@ -8549,6 +9891,8 @@ export function registerGeneratedCommands(program) {
8549
9891
  .requiredOption('--accessedProjects <value>', 'accessedProjects')
8550
9892
  .requiredOption('--accessedEnvironments <value>', 'accessedEnvironments')
8551
9893
  .requiredOption('--accessedServices <value>', 'accessedServices')
9894
+ .requiredOption('--accessedGitProviders <value>', 'accessedGitProviders')
9895
+ .requiredOption('--accessedServers <value>', 'accessedServers')
8552
9896
  .requiredOption('--canCreateProjects', 'canCreateProjects')
8553
9897
  .requiredOption('--canCreateServices', 'canCreateServices')
8554
9898
  .requiredOption('--canDeleteProjects', 'canDeleteProjects')
@@ -8649,6 +9993,24 @@ export function registerGeneratedCommands(program) {
8649
9993
  printOutput(data);
8650
9994
  }
8651
9995
  });
9996
+ g_user
9997
+ .command('create-user-with-credentials')
9998
+ .description('user createUserWithCredentials')
9999
+ .requiredOption('--email <value>', 'email')
10000
+ .requiredOption('--password <value>', 'password')
10001
+ .requiredOption('--role <value>', 'role')
10002
+ .option('--json', 'Output raw JSON')
10003
+ .action(async (opts) => {
10004
+ const jsonOutput = opts.json;
10005
+ delete opts.json;
10006
+ const data = await apiPost("user.createUserWithCredentials", opts);
10007
+ if (jsonOutput) {
10008
+ console.log(JSON.stringify(data, null, 2));
10009
+ }
10010
+ else {
10011
+ printOutput(data);
10012
+ }
10013
+ });
8652
10014
  g_user
8653
10015
  .command('delete-api-key')
8654
10016
  .description('user deleteApiKey')
@@ -8710,6 +10072,21 @@ export function registerGeneratedCommands(program) {
8710
10072
  printOutput(data);
8711
10073
  }
8712
10074
  });
10075
+ g_user
10076
+ .command('get-bookmarked-templates')
10077
+ .description('user getBookmarkedTemplates')
10078
+ .option('--json', 'Output raw JSON')
10079
+ .action(async (opts) => {
10080
+ const jsonOutput = opts.json;
10081
+ delete opts.json;
10082
+ const data = await apiGet("user.getBookmarkedTemplates", opts);
10083
+ if (jsonOutput) {
10084
+ console.log(JSON.stringify(data, null, 2));
10085
+ }
10086
+ else {
10087
+ printOutput(data);
10088
+ }
10089
+ });
8713
10090
  g_user
8714
10091
  .command('get-container-metrics')
8715
10092
  .description('user getContainerMetrics')
@@ -8759,6 +10136,21 @@ export function registerGeneratedCommands(program) {
8759
10136
  printOutput(data);
8760
10137
  }
8761
10138
  });
10139
+ g_user
10140
+ .command('get-permissions')
10141
+ .description('user getPermissions')
10142
+ .option('--json', 'Output raw JSON')
10143
+ .action(async (opts) => {
10144
+ const jsonOutput = opts.json;
10145
+ delete opts.json;
10146
+ const data = await apiGet("user.getPermissions", opts);
10147
+ if (jsonOutput) {
10148
+ console.log(JSON.stringify(data, null, 2));
10149
+ }
10150
+ else {
10151
+ printOutput(data);
10152
+ }
10153
+ });
8762
10154
  g_user
8763
10155
  .command('get-server-metrics')
8764
10156
  .description('user getServerMetrics')
@@ -8854,6 +10246,37 @@ export function registerGeneratedCommands(program) {
8854
10246
  printOutput(data);
8855
10247
  }
8856
10248
  });
10249
+ g_user
10250
+ .command('session')
10251
+ .description('user session')
10252
+ .option('--json', 'Output raw JSON')
10253
+ .action(async (opts) => {
10254
+ const jsonOutput = opts.json;
10255
+ delete opts.json;
10256
+ const data = await apiGet("user.session", opts);
10257
+ if (jsonOutput) {
10258
+ console.log(JSON.stringify(data, null, 2));
10259
+ }
10260
+ else {
10261
+ printOutput(data);
10262
+ }
10263
+ });
10264
+ g_user
10265
+ .command('toggle-template-bookmark')
10266
+ .description('user toggleTemplateBookmark')
10267
+ .requiredOption('--templateId <value>', 'templateId')
10268
+ .option('--json', 'Output raw JSON')
10269
+ .action(async (opts) => {
10270
+ const jsonOutput = opts.json;
10271
+ delete opts.json;
10272
+ const data = await apiPost("user.toggleTemplateBookmark", opts);
10273
+ if (jsonOutput) {
10274
+ console.log(JSON.stringify(data, null, 2));
10275
+ }
10276
+ else {
10277
+ printOutput(data);
10278
+ }
10279
+ });
8857
10280
  g_user
8858
10281
  .command('update')
8859
10282
  .description('user update')
@@ -8879,6 +10302,7 @@ export function registerGeneratedCommands(program) {
8879
10302
  .option('--stripeCustomerId <value>', 'stripeCustomerId')
8880
10303
  .option('--stripeSubscriptionId <value>', 'stripeSubscriptionId')
8881
10304
  .option('--serversQuantity <value>', 'serversQuantity')
10305
+ .option('--sendInvoiceNotifications', 'sendInvoiceNotifications')
8882
10306
  .option('--password <value>', 'password')
8883
10307
  .option('--currentPassword <value>', 'currentPassword')
8884
10308
  .option('--json', 'Output raw JSON')
@@ -8901,6 +10325,8 @@ export function registerGeneratedCommands(program) {
8901
10325
  opts["enableEnterpriseFeatures"] = opts["enableEnterpriseFeatures"] === true || opts["enableEnterpriseFeatures"] === "true";
8902
10326
  if (opts["serversQuantity"] != null)
8903
10327
  opts["serversQuantity"] = Number(opts["serversQuantity"]);
10328
+ if (opts["sendInvoiceNotifications"] != null)
10329
+ opts["sendInvoiceNotifications"] = opts["sendInvoiceNotifications"] === true || opts["sendInvoiceNotifications"] === "true";
8904
10330
  const data = await apiPost("user.update", opts);
8905
10331
  if (jsonOutput) {
8906
10332
  console.log(JSON.stringify(data, null, 2));
@@ -8916,7 +10342,7 @@ export function registerGeneratedCommands(program) {
8916
10342
  .requiredOption('--name <value>', 'name')
8917
10343
  .requiredOption('--volumeName <value>', 'volumeName')
8918
10344
  .requiredOption('--prefix <value>', 'prefix')
8919
- .option('--serviceType <value>', 'serviceType (application, postgres, mysql, mariadb, mongo, redis, compose)')
10345
+ .option('--serviceType <value>', 'serviceType (application, postgres, mysql, mariadb, mongo, redis, compose, libsql)')
8920
10346
  .option('--appName <value>', 'appName')
8921
10347
  .option('--serviceName <value>', 'serviceName')
8922
10348
  .option('--turnOff', 'turnOff')
@@ -8929,6 +10355,7 @@ export function registerGeneratedCommands(program) {
8929
10355
  .option('--mongoId <value>', 'mongoId')
8930
10356
  .option('--mysqlId <value>', 'mysqlId')
8931
10357
  .option('--redisId <value>', 'redisId')
10358
+ .option('--libsqlId <value>', 'libsqlId')
8932
10359
  .option('--composeId <value>', 'composeId')
8933
10360
  .option('--createdAt <value>', 'createdAt')
8934
10361
  .requiredOption('--destinationId <value>', 'destinationId')
@@ -8970,7 +10397,7 @@ export function registerGeneratedCommands(program) {
8970
10397
  .command('list')
8971
10398
  .description('volumeBackups list')
8972
10399
  .requiredOption('--id <value>', 'id')
8973
- .requiredOption('--volumeBackupType <value>', 'volumeBackupType (application, postgres, mysql, mariadb, mongo, redis, compose)')
10400
+ .requiredOption('--volumeBackupType <value>', 'volumeBackupType (application, postgres, mysql, mariadb, mongo, redis, compose, libsql)')
8974
10401
  .option('--json', 'Output raw JSON')
8975
10402
  .action(async (opts) => {
8976
10403
  const jsonOutput = opts.json;
@@ -9021,7 +10448,7 @@ export function registerGeneratedCommands(program) {
9021
10448
  .requiredOption('--name <value>', 'name')
9022
10449
  .requiredOption('--volumeName <value>', 'volumeName')
9023
10450
  .requiredOption('--prefix <value>', 'prefix')
9024
- .option('--serviceType <value>', 'serviceType (application, postgres, mysql, mariadb, mongo, redis, compose)')
10451
+ .option('--serviceType <value>', 'serviceType (application, postgres, mysql, mariadb, mongo, redis, compose, libsql)')
9025
10452
  .option('--appName <value>', 'appName')
9026
10453
  .option('--serviceName <value>', 'serviceName')
9027
10454
  .option('--turnOff', 'turnOff')
@@ -9034,6 +10461,7 @@ export function registerGeneratedCommands(program) {
9034
10461
  .option('--mongoId <value>', 'mongoId')
9035
10462
  .option('--mysqlId <value>', 'mysqlId')
9036
10463
  .option('--redisId <value>', 'redisId')
10464
+ .option('--libsqlId <value>', 'libsqlId')
9037
10465
  .option('--composeId <value>', 'composeId')
9038
10466
  .option('--createdAt <value>', 'createdAt')
9039
10467
  .requiredOption('--destinationId <value>', 'destinationId')
@@ -9056,4 +10484,66 @@ export function registerGeneratedCommands(program) {
9056
10484
  printOutput(data);
9057
10485
  }
9058
10486
  });
10487
+ const g_whitelabeling = program.command('whitelabeling').description('whitelabeling commands');
10488
+ g_whitelabeling
10489
+ .command('get')
10490
+ .description('whitelabeling get')
10491
+ .option('--json', 'Output raw JSON')
10492
+ .action(async (opts) => {
10493
+ const jsonOutput = opts.json;
10494
+ delete opts.json;
10495
+ const data = await apiGet("whitelabeling.get", opts);
10496
+ if (jsonOutput) {
10497
+ console.log(JSON.stringify(data, null, 2));
10498
+ }
10499
+ else {
10500
+ printOutput(data);
10501
+ }
10502
+ });
10503
+ g_whitelabeling
10504
+ .command('get-public')
10505
+ .description('whitelabeling getPublic')
10506
+ .option('--json', 'Output raw JSON')
10507
+ .action(async (opts) => {
10508
+ const jsonOutput = opts.json;
10509
+ delete opts.json;
10510
+ const data = await apiGet("whitelabeling.getPublic", opts);
10511
+ if (jsonOutput) {
10512
+ console.log(JSON.stringify(data, null, 2));
10513
+ }
10514
+ else {
10515
+ printOutput(data);
10516
+ }
10517
+ });
10518
+ g_whitelabeling
10519
+ .command('reset')
10520
+ .description('whitelabeling reset')
10521
+ .option('--json', 'Output raw JSON')
10522
+ .action(async (opts) => {
10523
+ const jsonOutput = opts.json;
10524
+ delete opts.json;
10525
+ const data = await apiPost("whitelabeling.reset", opts);
10526
+ if (jsonOutput) {
10527
+ console.log(JSON.stringify(data, null, 2));
10528
+ }
10529
+ else {
10530
+ printOutput(data);
10531
+ }
10532
+ });
10533
+ g_whitelabeling
10534
+ .command('update')
10535
+ .description('whitelabeling update')
10536
+ .requiredOption('--whitelabelingConfig <value>', 'whitelabelingConfig')
10537
+ .option('--json', 'Output raw JSON')
10538
+ .action(async (opts) => {
10539
+ const jsonOutput = opts.json;
10540
+ delete opts.json;
10541
+ const data = await apiPost("whitelabeling.update", opts);
10542
+ if (jsonOutput) {
10543
+ console.log(JSON.stringify(data, null, 2));
10544
+ }
10545
+ else {
10546
+ printOutput(data);
10547
+ }
10548
+ });
9059
10549
  }