@dokploy/cli 0.30.3 → 0.30.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/commands.js +36 -2
- package/package.json +1 -1
|
@@ -2570,10 +2570,11 @@ export function registerGeneratedCommands(program) {
|
|
|
2570
2570
|
g_dnsProvider
|
|
2571
2571
|
.command('create-record')
|
|
2572
2572
|
.description('dnsProvider createRecord')
|
|
2573
|
-
.requiredOption('--type <value>', 'type (A, CNAME)')
|
|
2573
|
+
.requiredOption('--type <value>', 'type (A, AAAA, CNAME, MX, TXT, NS, SRV, CAA, PTR)')
|
|
2574
2574
|
.requiredOption('--name <value>', 'name')
|
|
2575
2575
|
.requiredOption('--content <value>', 'content')
|
|
2576
2576
|
.option('--ttl <value>', 'ttl')
|
|
2577
|
+
.option('--proxied', 'proxied')
|
|
2577
2578
|
.requiredOption('--dnsProviderId <value>', 'dnsProviderId')
|
|
2578
2579
|
.requiredOption('--zoneId <value>', 'zoneId')
|
|
2579
2580
|
.option('--json', 'Output raw JSON')
|
|
@@ -2582,6 +2583,8 @@ export function registerGeneratedCommands(program) {
|
|
|
2582
2583
|
delete opts.json;
|
|
2583
2584
|
if (opts["ttl"] != null)
|
|
2584
2585
|
opts["ttl"] = Number(opts["ttl"]);
|
|
2586
|
+
if (opts["proxied"] != null)
|
|
2587
|
+
opts["proxied"] = opts["proxied"] === true || opts["proxied"] === "true";
|
|
2585
2588
|
const data = await apiPost("dnsProvider.createRecord", opts);
|
|
2586
2589
|
if (jsonOutput) {
|
|
2587
2590
|
console.log(JSON.stringify(data, null, 2));
|
|
@@ -2711,10 +2714,11 @@ export function registerGeneratedCommands(program) {
|
|
|
2711
2714
|
g_dnsProvider
|
|
2712
2715
|
.command('update-record')
|
|
2713
2716
|
.description('dnsProvider updateRecord')
|
|
2714
|
-
.requiredOption('--type <value>', 'type (A, CNAME)')
|
|
2717
|
+
.requiredOption('--type <value>', 'type (A, AAAA, CNAME, MX, TXT, NS, SRV, CAA, PTR)')
|
|
2715
2718
|
.requiredOption('--name <value>', 'name')
|
|
2716
2719
|
.requiredOption('--content <value>', 'content')
|
|
2717
2720
|
.option('--ttl <value>', 'ttl')
|
|
2721
|
+
.option('--proxied', 'proxied')
|
|
2718
2722
|
.requiredOption('--dnsProviderId <value>', 'dnsProviderId')
|
|
2719
2723
|
.requiredOption('--zoneId <value>', 'zoneId')
|
|
2720
2724
|
.requiredOption('--recordId <value>', 'recordId')
|
|
@@ -2724,6 +2728,8 @@ export function registerGeneratedCommands(program) {
|
|
|
2724
2728
|
delete opts.json;
|
|
2725
2729
|
if (opts["ttl"] != null)
|
|
2726
2730
|
opts["ttl"] = Number(opts["ttl"]);
|
|
2731
|
+
if (opts["proxied"] != null)
|
|
2732
|
+
opts["proxied"] = opts["proxied"] === true || opts["proxied"] === "true";
|
|
2727
2733
|
const data = await apiPost("dnsProvider.updateRecord", opts);
|
|
2728
2734
|
if (jsonOutput) {
|
|
2729
2735
|
console.log(JSON.stringify(data, null, 2));
|
|
@@ -6096,6 +6102,7 @@ export function registerGeneratedCommands(program) {
|
|
|
6096
6102
|
.requiredOption('--name <value>', 'name')
|
|
6097
6103
|
.requiredOption('--appDeploy', 'appDeploy')
|
|
6098
6104
|
.requiredOption('--dockerCleanup', 'dockerCleanup')
|
|
6105
|
+
.requiredOption('--serverThreshold', 'serverThreshold')
|
|
6099
6106
|
.requiredOption('--serverUrl <value>', 'serverUrl')
|
|
6100
6107
|
.requiredOption('--appToken <value>', 'appToken')
|
|
6101
6108
|
.requiredOption('--priority <value>', 'priority')
|
|
@@ -6118,6 +6125,8 @@ export function registerGeneratedCommands(program) {
|
|
|
6118
6125
|
opts["appDeploy"] = opts["appDeploy"] === true || opts["appDeploy"] === "true";
|
|
6119
6126
|
if (opts["dockerCleanup"] != null)
|
|
6120
6127
|
opts["dockerCleanup"] = opts["dockerCleanup"] === true || opts["dockerCleanup"] === "true";
|
|
6128
|
+
if (opts["serverThreshold"] != null)
|
|
6129
|
+
opts["serverThreshold"] = opts["serverThreshold"] === true || opts["serverThreshold"] === "true";
|
|
6121
6130
|
if (opts["priority"] != null)
|
|
6122
6131
|
opts["priority"] = Number(opts["priority"]);
|
|
6123
6132
|
if (opts["decoration"] != null)
|
|
@@ -6225,6 +6234,7 @@ export function registerGeneratedCommands(program) {
|
|
|
6225
6234
|
.requiredOption('--name <value>', 'name')
|
|
6226
6235
|
.requiredOption('--appDeploy', 'appDeploy')
|
|
6227
6236
|
.requiredOption('--dockerCleanup', 'dockerCleanup')
|
|
6237
|
+
.requiredOption('--serverThreshold', 'serverThreshold')
|
|
6228
6238
|
.requiredOption('--serverUrl <value>', 'serverUrl')
|
|
6229
6239
|
.requiredOption('--topic <value>', 'topic')
|
|
6230
6240
|
.requiredOption('--accessToken <value>', 'accessToken')
|
|
@@ -6247,6 +6257,8 @@ export function registerGeneratedCommands(program) {
|
|
|
6247
6257
|
opts["appDeploy"] = opts["appDeploy"] === true || opts["appDeploy"] === "true";
|
|
6248
6258
|
if (opts["dockerCleanup"] != null)
|
|
6249
6259
|
opts["dockerCleanup"] = opts["dockerCleanup"] === true || opts["dockerCleanup"] === "true";
|
|
6260
|
+
if (opts["serverThreshold"] != null)
|
|
6261
|
+
opts["serverThreshold"] = opts["serverThreshold"] === true || opts["serverThreshold"] === "true";
|
|
6250
6262
|
if (opts["priority"] != null)
|
|
6251
6263
|
opts["priority"] = Number(opts["priority"]);
|
|
6252
6264
|
const data = await apiPost("notification.createNtfy", opts);
|
|
@@ -6936,6 +6948,7 @@ export function registerGeneratedCommands(program) {
|
|
|
6936
6948
|
.option('--name <value>', 'name')
|
|
6937
6949
|
.option('--appDeploy', 'appDeploy')
|
|
6938
6950
|
.option('--dockerCleanup', 'dockerCleanup')
|
|
6951
|
+
.option('--serverThreshold', 'serverThreshold')
|
|
6939
6952
|
.option('--serverUrl <value>', 'serverUrl')
|
|
6940
6953
|
.option('--appToken <value>', 'appToken')
|
|
6941
6954
|
.option('--priority <value>', 'priority')
|
|
@@ -6961,6 +6974,8 @@ export function registerGeneratedCommands(program) {
|
|
|
6961
6974
|
opts["appDeploy"] = opts["appDeploy"] === true || opts["appDeploy"] === "true";
|
|
6962
6975
|
if (opts["dockerCleanup"] != null)
|
|
6963
6976
|
opts["dockerCleanup"] = opts["dockerCleanup"] === true || opts["dockerCleanup"] === "true";
|
|
6977
|
+
if (opts["serverThreshold"] != null)
|
|
6978
|
+
opts["serverThreshold"] = opts["serverThreshold"] === true || opts["serverThreshold"] === "true";
|
|
6964
6979
|
if (opts["priority"] != null)
|
|
6965
6980
|
opts["priority"] = Number(opts["priority"]);
|
|
6966
6981
|
if (opts["decoration"] != null)
|
|
@@ -7074,6 +7089,7 @@ export function registerGeneratedCommands(program) {
|
|
|
7074
7089
|
.option('--name <value>', 'name')
|
|
7075
7090
|
.option('--appDeploy', 'appDeploy')
|
|
7076
7091
|
.option('--dockerCleanup', 'dockerCleanup')
|
|
7092
|
+
.option('--serverThreshold', 'serverThreshold')
|
|
7077
7093
|
.option('--serverUrl <value>', 'serverUrl')
|
|
7078
7094
|
.option('--topic <value>', 'topic')
|
|
7079
7095
|
.option('--accessToken <value>', 'accessToken')
|
|
@@ -7099,6 +7115,8 @@ export function registerGeneratedCommands(program) {
|
|
|
7099
7115
|
opts["appDeploy"] = opts["appDeploy"] === true || opts["appDeploy"] === "true";
|
|
7100
7116
|
if (opts["dockerCleanup"] != null)
|
|
7101
7117
|
opts["dockerCleanup"] = opts["dockerCleanup"] === true || opts["dockerCleanup"] === "true";
|
|
7118
|
+
if (opts["serverThreshold"] != null)
|
|
7119
|
+
opts["serverThreshold"] = opts["serverThreshold"] === true || opts["serverThreshold"] === "true";
|
|
7102
7120
|
if (opts["priority"] != null)
|
|
7103
7121
|
opts["priority"] = Number(opts["priority"]);
|
|
7104
7122
|
const data = await apiPost("notification.updateNtfy", opts);
|
|
@@ -9387,6 +9405,22 @@ export function registerGeneratedCommands(program) {
|
|
|
9387
9405
|
printOutput(data);
|
|
9388
9406
|
}
|
|
9389
9407
|
});
|
|
9408
|
+
g_server
|
|
9409
|
+
.command('get-services')
|
|
9410
|
+
.description('server getServices')
|
|
9411
|
+
.requiredOption('--serverId <value>', 'serverId')
|
|
9412
|
+
.option('--json', 'Output raw JSON')
|
|
9413
|
+
.action(async (opts) => {
|
|
9414
|
+
const jsonOutput = opts.json;
|
|
9415
|
+
delete opts.json;
|
|
9416
|
+
const data = await apiGet("server.getServices", opts);
|
|
9417
|
+
if (jsonOutput) {
|
|
9418
|
+
console.log(JSON.stringify(data, null, 2));
|
|
9419
|
+
}
|
|
9420
|
+
else {
|
|
9421
|
+
printOutput(data);
|
|
9422
|
+
}
|
|
9423
|
+
});
|
|
9390
9424
|
g_server
|
|
9391
9425
|
.command('one')
|
|
9392
9426
|
.description('server one')
|