@dokploy/cli 0.30.2 → 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.
@@ -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));
@@ -3489,7 +3495,7 @@ export function registerGeneratedCommands(program) {
3489
3495
  .command('validate-domain')
3490
3496
  .description('domain validateDomain')
3491
3497
  .requiredOption('--domain <value>', 'domain')
3492
- .option('--serverIp <value>', 'serverIp')
3498
+ .option('--serverId <value>', 'serverId')
3493
3499
  .option('--json', 'Output raw JSON')
3494
3500
  .action(async (opts) => {
3495
3501
  const jsonOutput = opts.json;
@@ -5919,6 +5925,22 @@ export function registerGeneratedCommands(program) {
5919
5925
  printOutput(data);
5920
5926
  }
5921
5927
  });
5928
+ g_network
5929
+ .command('resync')
5930
+ .description('network resync')
5931
+ .requiredOption('--networkId <value>', 'networkId')
5932
+ .option('--json', 'Output raw JSON')
5933
+ .action(async (opts) => {
5934
+ const jsonOutput = opts.json;
5935
+ delete opts.json;
5936
+ const data = await apiPost("network.resync", opts);
5937
+ if (jsonOutput) {
5938
+ console.log(JSON.stringify(data, null, 2));
5939
+ }
5940
+ else {
5941
+ printOutput(data);
5942
+ }
5943
+ });
5922
5944
  const g_notification = program.command('notification').description('notification commands');
5923
5945
  g_notification
5924
5946
  .command('all')
@@ -6080,6 +6102,7 @@ export function registerGeneratedCommands(program) {
6080
6102
  .requiredOption('--name <value>', 'name')
6081
6103
  .requiredOption('--appDeploy', 'appDeploy')
6082
6104
  .requiredOption('--dockerCleanup', 'dockerCleanup')
6105
+ .requiredOption('--serverThreshold', 'serverThreshold')
6083
6106
  .requiredOption('--serverUrl <value>', 'serverUrl')
6084
6107
  .requiredOption('--appToken <value>', 'appToken')
6085
6108
  .requiredOption('--priority <value>', 'priority')
@@ -6102,6 +6125,8 @@ export function registerGeneratedCommands(program) {
6102
6125
  opts["appDeploy"] = opts["appDeploy"] === true || opts["appDeploy"] === "true";
6103
6126
  if (opts["dockerCleanup"] != null)
6104
6127
  opts["dockerCleanup"] = opts["dockerCleanup"] === true || opts["dockerCleanup"] === "true";
6128
+ if (opts["serverThreshold"] != null)
6129
+ opts["serverThreshold"] = opts["serverThreshold"] === true || opts["serverThreshold"] === "true";
6105
6130
  if (opts["priority"] != null)
6106
6131
  opts["priority"] = Number(opts["priority"]);
6107
6132
  if (opts["decoration"] != null)
@@ -6209,6 +6234,7 @@ export function registerGeneratedCommands(program) {
6209
6234
  .requiredOption('--name <value>', 'name')
6210
6235
  .requiredOption('--appDeploy', 'appDeploy')
6211
6236
  .requiredOption('--dockerCleanup', 'dockerCleanup')
6237
+ .requiredOption('--serverThreshold', 'serverThreshold')
6212
6238
  .requiredOption('--serverUrl <value>', 'serverUrl')
6213
6239
  .requiredOption('--topic <value>', 'topic')
6214
6240
  .requiredOption('--accessToken <value>', 'accessToken')
@@ -6231,6 +6257,8 @@ export function registerGeneratedCommands(program) {
6231
6257
  opts["appDeploy"] = opts["appDeploy"] === true || opts["appDeploy"] === "true";
6232
6258
  if (opts["dockerCleanup"] != null)
6233
6259
  opts["dockerCleanup"] = opts["dockerCleanup"] === true || opts["dockerCleanup"] === "true";
6260
+ if (opts["serverThreshold"] != null)
6261
+ opts["serverThreshold"] = opts["serverThreshold"] === true || opts["serverThreshold"] === "true";
6234
6262
  if (opts["priority"] != null)
6235
6263
  opts["priority"] = Number(opts["priority"]);
6236
6264
  const data = await apiPost("notification.createNtfy", opts);
@@ -6920,6 +6948,7 @@ export function registerGeneratedCommands(program) {
6920
6948
  .option('--name <value>', 'name')
6921
6949
  .option('--appDeploy', 'appDeploy')
6922
6950
  .option('--dockerCleanup', 'dockerCleanup')
6951
+ .option('--serverThreshold', 'serverThreshold')
6923
6952
  .option('--serverUrl <value>', 'serverUrl')
6924
6953
  .option('--appToken <value>', 'appToken')
6925
6954
  .option('--priority <value>', 'priority')
@@ -6945,6 +6974,8 @@ export function registerGeneratedCommands(program) {
6945
6974
  opts["appDeploy"] = opts["appDeploy"] === true || opts["appDeploy"] === "true";
6946
6975
  if (opts["dockerCleanup"] != null)
6947
6976
  opts["dockerCleanup"] = opts["dockerCleanup"] === true || opts["dockerCleanup"] === "true";
6977
+ if (opts["serverThreshold"] != null)
6978
+ opts["serverThreshold"] = opts["serverThreshold"] === true || opts["serverThreshold"] === "true";
6948
6979
  if (opts["priority"] != null)
6949
6980
  opts["priority"] = Number(opts["priority"]);
6950
6981
  if (opts["decoration"] != null)
@@ -7058,6 +7089,7 @@ export function registerGeneratedCommands(program) {
7058
7089
  .option('--name <value>', 'name')
7059
7090
  .option('--appDeploy', 'appDeploy')
7060
7091
  .option('--dockerCleanup', 'dockerCleanup')
7092
+ .option('--serverThreshold', 'serverThreshold')
7061
7093
  .option('--serverUrl <value>', 'serverUrl')
7062
7094
  .option('--topic <value>', 'topic')
7063
7095
  .option('--accessToken <value>', 'accessToken')
@@ -7083,6 +7115,8 @@ export function registerGeneratedCommands(program) {
7083
7115
  opts["appDeploy"] = opts["appDeploy"] === true || opts["appDeploy"] === "true";
7084
7116
  if (opts["dockerCleanup"] != null)
7085
7117
  opts["dockerCleanup"] = opts["dockerCleanup"] === true || opts["dockerCleanup"] === "true";
7118
+ if (opts["serverThreshold"] != null)
7119
+ opts["serverThreshold"] = opts["serverThreshold"] === true || opts["serverThreshold"] === "true";
7086
7120
  if (opts["priority"] != null)
7087
7121
  opts["priority"] = Number(opts["priority"]);
7088
7122
  const data = await apiPost("notification.updateNtfy", opts);
@@ -9371,6 +9405,22 @@ export function registerGeneratedCommands(program) {
9371
9405
  printOutput(data);
9372
9406
  }
9373
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
+ });
9374
9424
  g_server
9375
9425
  .command('one')
9376
9426
  .description('server one')
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dokploy/cli",
3
3
  "description": "A CLI to manage dokploy server remotely",
4
- "version": "0.30.2",
4
+ "version": "0.30.4",
5
5
  "author": "Mauricio Siu",
6
6
  "licenses": [
7
7
  {