@dokploy/cli 0.30.3 → 0.30.5
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 +119 -2
- package/package.json +1 -1
|
@@ -386,6 +386,23 @@ export function registerGeneratedCommands(program) {
|
|
|
386
386
|
printOutput(data);
|
|
387
387
|
}
|
|
388
388
|
});
|
|
389
|
+
g_application
|
|
390
|
+
.command('deploy-nginx-quickstart')
|
|
391
|
+
.description('application deployNginxQuickstart')
|
|
392
|
+
.requiredOption('--environmentId <value>', 'environmentId')
|
|
393
|
+
.option('--serverId <value>', 'serverId')
|
|
394
|
+
.option('--json', 'Output raw JSON')
|
|
395
|
+
.action(async (opts) => {
|
|
396
|
+
const jsonOutput = opts.json;
|
|
397
|
+
delete opts.json;
|
|
398
|
+
const data = await apiPost("application.deployNginxQuickstart", opts);
|
|
399
|
+
if (jsonOutput) {
|
|
400
|
+
console.log(JSON.stringify(data, null, 2));
|
|
401
|
+
}
|
|
402
|
+
else {
|
|
403
|
+
printOutput(data);
|
|
404
|
+
}
|
|
405
|
+
});
|
|
389
406
|
g_application
|
|
390
407
|
.command('disconnect-git-provider')
|
|
391
408
|
.description('application disconnectGitProvider')
|
|
@@ -1661,10 +1678,13 @@ export function registerGeneratedCommands(program) {
|
|
|
1661
1678
|
.requiredOption('--composeId <value>', 'composeId')
|
|
1662
1679
|
.option('--title <value>', 'title')
|
|
1663
1680
|
.option('--description <value>', 'description')
|
|
1681
|
+
.option('--freshVolumes', 'freshVolumes')
|
|
1664
1682
|
.option('--json', 'Output raw JSON')
|
|
1665
1683
|
.action(async (opts) => {
|
|
1666
1684
|
const jsonOutput = opts.json;
|
|
1667
1685
|
delete opts.json;
|
|
1686
|
+
if (opts["freshVolumes"] != null)
|
|
1687
|
+
opts["freshVolumes"] = opts["freshVolumes"] === true || opts["freshVolumes"] === "true";
|
|
1668
1688
|
const data = await apiPost("compose.deploy", opts);
|
|
1669
1689
|
if (jsonOutput) {
|
|
1670
1690
|
console.log(JSON.stringify(data, null, 2));
|
|
@@ -1969,10 +1989,13 @@ export function registerGeneratedCommands(program) {
|
|
|
1969
1989
|
.requiredOption('--composeId <value>', 'composeId')
|
|
1970
1990
|
.option('--title <value>', 'title')
|
|
1971
1991
|
.option('--description <value>', 'description')
|
|
1992
|
+
.option('--freshVolumes', 'freshVolumes')
|
|
1972
1993
|
.option('--json', 'Output raw JSON')
|
|
1973
1994
|
.action(async (opts) => {
|
|
1974
1995
|
const jsonOutput = opts.json;
|
|
1975
1996
|
delete opts.json;
|
|
1997
|
+
if (opts["freshVolumes"] != null)
|
|
1998
|
+
opts["freshVolumes"] = opts["freshVolumes"] === true || opts["freshVolumes"] === "true";
|
|
1976
1999
|
const data = await apiPost("compose.redeploy", opts);
|
|
1977
2000
|
if (jsonOutput) {
|
|
1978
2001
|
console.log(JSON.stringify(data, null, 2));
|
|
@@ -2570,10 +2593,11 @@ export function registerGeneratedCommands(program) {
|
|
|
2570
2593
|
g_dnsProvider
|
|
2571
2594
|
.command('create-record')
|
|
2572
2595
|
.description('dnsProvider createRecord')
|
|
2573
|
-
.requiredOption('--type <value>', 'type (A, CNAME)')
|
|
2596
|
+
.requiredOption('--type <value>', 'type (A, AAAA, CNAME, MX, TXT, NS, SRV, CAA, PTR)')
|
|
2574
2597
|
.requiredOption('--name <value>', 'name')
|
|
2575
2598
|
.requiredOption('--content <value>', 'content')
|
|
2576
2599
|
.option('--ttl <value>', 'ttl')
|
|
2600
|
+
.option('--proxied', 'proxied')
|
|
2577
2601
|
.requiredOption('--dnsProviderId <value>', 'dnsProviderId')
|
|
2578
2602
|
.requiredOption('--zoneId <value>', 'zoneId')
|
|
2579
2603
|
.option('--json', 'Output raw JSON')
|
|
@@ -2582,6 +2606,8 @@ export function registerGeneratedCommands(program) {
|
|
|
2582
2606
|
delete opts.json;
|
|
2583
2607
|
if (opts["ttl"] != null)
|
|
2584
2608
|
opts["ttl"] = Number(opts["ttl"]);
|
|
2609
|
+
if (opts["proxied"] != null)
|
|
2610
|
+
opts["proxied"] = opts["proxied"] === true || opts["proxied"] === "true";
|
|
2585
2611
|
const data = await apiPost("dnsProvider.createRecord", opts);
|
|
2586
2612
|
if (jsonOutput) {
|
|
2587
2613
|
console.log(JSON.stringify(data, null, 2));
|
|
@@ -2711,10 +2737,11 @@ export function registerGeneratedCommands(program) {
|
|
|
2711
2737
|
g_dnsProvider
|
|
2712
2738
|
.command('update-record')
|
|
2713
2739
|
.description('dnsProvider updateRecord')
|
|
2714
|
-
.requiredOption('--type <value>', 'type (A, CNAME)')
|
|
2740
|
+
.requiredOption('--type <value>', 'type (A, AAAA, CNAME, MX, TXT, NS, SRV, CAA, PTR)')
|
|
2715
2741
|
.requiredOption('--name <value>', 'name')
|
|
2716
2742
|
.requiredOption('--content <value>', 'content')
|
|
2717
2743
|
.option('--ttl <value>', 'ttl')
|
|
2744
|
+
.option('--proxied', 'proxied')
|
|
2718
2745
|
.requiredOption('--dnsProviderId <value>', 'dnsProviderId')
|
|
2719
2746
|
.requiredOption('--zoneId <value>', 'zoneId')
|
|
2720
2747
|
.requiredOption('--recordId <value>', 'recordId')
|
|
@@ -2724,6 +2751,8 @@ export function registerGeneratedCommands(program) {
|
|
|
2724
2751
|
delete opts.json;
|
|
2725
2752
|
if (opts["ttl"] != null)
|
|
2726
2753
|
opts["ttl"] = Number(opts["ttl"]);
|
|
2754
|
+
if (opts["proxied"] != null)
|
|
2755
|
+
opts["proxied"] = opts["proxied"] === true || opts["proxied"] === "true";
|
|
2727
2756
|
const data = await apiPost("dnsProvider.updateRecord", opts);
|
|
2728
2757
|
if (jsonOutput) {
|
|
2729
2758
|
console.log(JSON.stringify(data, null, 2));
|
|
@@ -6096,6 +6125,7 @@ export function registerGeneratedCommands(program) {
|
|
|
6096
6125
|
.requiredOption('--name <value>', 'name')
|
|
6097
6126
|
.requiredOption('--appDeploy', 'appDeploy')
|
|
6098
6127
|
.requiredOption('--dockerCleanup', 'dockerCleanup')
|
|
6128
|
+
.requiredOption('--serverThreshold', 'serverThreshold')
|
|
6099
6129
|
.requiredOption('--serverUrl <value>', 'serverUrl')
|
|
6100
6130
|
.requiredOption('--appToken <value>', 'appToken')
|
|
6101
6131
|
.requiredOption('--priority <value>', 'priority')
|
|
@@ -6118,6 +6148,8 @@ export function registerGeneratedCommands(program) {
|
|
|
6118
6148
|
opts["appDeploy"] = opts["appDeploy"] === true || opts["appDeploy"] === "true";
|
|
6119
6149
|
if (opts["dockerCleanup"] != null)
|
|
6120
6150
|
opts["dockerCleanup"] = opts["dockerCleanup"] === true || opts["dockerCleanup"] === "true";
|
|
6151
|
+
if (opts["serverThreshold"] != null)
|
|
6152
|
+
opts["serverThreshold"] = opts["serverThreshold"] === true || opts["serverThreshold"] === "true";
|
|
6121
6153
|
if (opts["priority"] != null)
|
|
6122
6154
|
opts["priority"] = Number(opts["priority"]);
|
|
6123
6155
|
if (opts["decoration"] != null)
|
|
@@ -6225,6 +6257,7 @@ export function registerGeneratedCommands(program) {
|
|
|
6225
6257
|
.requiredOption('--name <value>', 'name')
|
|
6226
6258
|
.requiredOption('--appDeploy', 'appDeploy')
|
|
6227
6259
|
.requiredOption('--dockerCleanup', 'dockerCleanup')
|
|
6260
|
+
.requiredOption('--serverThreshold', 'serverThreshold')
|
|
6228
6261
|
.requiredOption('--serverUrl <value>', 'serverUrl')
|
|
6229
6262
|
.requiredOption('--topic <value>', 'topic')
|
|
6230
6263
|
.requiredOption('--accessToken <value>', 'accessToken')
|
|
@@ -6247,6 +6280,8 @@ export function registerGeneratedCommands(program) {
|
|
|
6247
6280
|
opts["appDeploy"] = opts["appDeploy"] === true || opts["appDeploy"] === "true";
|
|
6248
6281
|
if (opts["dockerCleanup"] != null)
|
|
6249
6282
|
opts["dockerCleanup"] = opts["dockerCleanup"] === true || opts["dockerCleanup"] === "true";
|
|
6283
|
+
if (opts["serverThreshold"] != null)
|
|
6284
|
+
opts["serverThreshold"] = opts["serverThreshold"] === true || opts["serverThreshold"] === "true";
|
|
6250
6285
|
if (opts["priority"] != null)
|
|
6251
6286
|
opts["priority"] = Number(opts["priority"]);
|
|
6252
6287
|
const data = await apiPost("notification.createNtfy", opts);
|
|
@@ -6936,6 +6971,7 @@ export function registerGeneratedCommands(program) {
|
|
|
6936
6971
|
.option('--name <value>', 'name')
|
|
6937
6972
|
.option('--appDeploy', 'appDeploy')
|
|
6938
6973
|
.option('--dockerCleanup', 'dockerCleanup')
|
|
6974
|
+
.option('--serverThreshold', 'serverThreshold')
|
|
6939
6975
|
.option('--serverUrl <value>', 'serverUrl')
|
|
6940
6976
|
.option('--appToken <value>', 'appToken')
|
|
6941
6977
|
.option('--priority <value>', 'priority')
|
|
@@ -6961,6 +6997,8 @@ export function registerGeneratedCommands(program) {
|
|
|
6961
6997
|
opts["appDeploy"] = opts["appDeploy"] === true || opts["appDeploy"] === "true";
|
|
6962
6998
|
if (opts["dockerCleanup"] != null)
|
|
6963
6999
|
opts["dockerCleanup"] = opts["dockerCleanup"] === true || opts["dockerCleanup"] === "true";
|
|
7000
|
+
if (opts["serverThreshold"] != null)
|
|
7001
|
+
opts["serverThreshold"] = opts["serverThreshold"] === true || opts["serverThreshold"] === "true";
|
|
6964
7002
|
if (opts["priority"] != null)
|
|
6965
7003
|
opts["priority"] = Number(opts["priority"]);
|
|
6966
7004
|
if (opts["decoration"] != null)
|
|
@@ -7074,6 +7112,7 @@ export function registerGeneratedCommands(program) {
|
|
|
7074
7112
|
.option('--name <value>', 'name')
|
|
7075
7113
|
.option('--appDeploy', 'appDeploy')
|
|
7076
7114
|
.option('--dockerCleanup', 'dockerCleanup')
|
|
7115
|
+
.option('--serverThreshold', 'serverThreshold')
|
|
7077
7116
|
.option('--serverUrl <value>', 'serverUrl')
|
|
7078
7117
|
.option('--topic <value>', 'topic')
|
|
7079
7118
|
.option('--accessToken <value>', 'accessToken')
|
|
@@ -7099,6 +7138,8 @@ export function registerGeneratedCommands(program) {
|
|
|
7099
7138
|
opts["appDeploy"] = opts["appDeploy"] === true || opts["appDeploy"] === "true";
|
|
7100
7139
|
if (opts["dockerCleanup"] != null)
|
|
7101
7140
|
opts["dockerCleanup"] = opts["dockerCleanup"] === true || opts["dockerCleanup"] === "true";
|
|
7141
|
+
if (opts["serverThreshold"] != null)
|
|
7142
|
+
opts["serverThreshold"] = opts["serverThreshold"] === true || opts["serverThreshold"] === "true";
|
|
7102
7143
|
if (opts["priority"] != null)
|
|
7103
7144
|
opts["priority"] = Number(opts["priority"]);
|
|
7104
7145
|
const data = await apiPost("notification.updateNtfy", opts);
|
|
@@ -8299,6 +8340,21 @@ export function registerGeneratedCommands(program) {
|
|
|
8299
8340
|
printOutput(data);
|
|
8300
8341
|
}
|
|
8301
8342
|
});
|
|
8343
|
+
g_project
|
|
8344
|
+
.command('complete-onboarding')
|
|
8345
|
+
.description('project completeOnboarding')
|
|
8346
|
+
.option('--json', 'Output raw JSON')
|
|
8347
|
+
.action(async (opts) => {
|
|
8348
|
+
const jsonOutput = opts.json;
|
|
8349
|
+
delete opts.json;
|
|
8350
|
+
const data = await apiPost("project.completeOnboarding", opts);
|
|
8351
|
+
if (jsonOutput) {
|
|
8352
|
+
console.log(JSON.stringify(data, null, 2));
|
|
8353
|
+
}
|
|
8354
|
+
else {
|
|
8355
|
+
printOutput(data);
|
|
8356
|
+
}
|
|
8357
|
+
});
|
|
8302
8358
|
g_project
|
|
8303
8359
|
.command('create')
|
|
8304
8360
|
.description('project create')
|
|
@@ -8357,6 +8413,21 @@ export function registerGeneratedCommands(program) {
|
|
|
8357
8413
|
printOutput(data);
|
|
8358
8414
|
}
|
|
8359
8415
|
});
|
|
8416
|
+
g_project
|
|
8417
|
+
.command('onboarding-status')
|
|
8418
|
+
.description('project onboardingStatus')
|
|
8419
|
+
.option('--json', 'Output raw JSON')
|
|
8420
|
+
.action(async (opts) => {
|
|
8421
|
+
const jsonOutput = opts.json;
|
|
8422
|
+
delete opts.json;
|
|
8423
|
+
const data = await apiGet("project.onboardingStatus", opts);
|
|
8424
|
+
if (jsonOutput) {
|
|
8425
|
+
console.log(JSON.stringify(data, null, 2));
|
|
8426
|
+
}
|
|
8427
|
+
else {
|
|
8428
|
+
printOutput(data);
|
|
8429
|
+
}
|
|
8430
|
+
});
|
|
8360
8431
|
g_project
|
|
8361
8432
|
.command('one')
|
|
8362
8433
|
.description('project one')
|
|
@@ -9387,6 +9458,22 @@ export function registerGeneratedCommands(program) {
|
|
|
9387
9458
|
printOutput(data);
|
|
9388
9459
|
}
|
|
9389
9460
|
});
|
|
9461
|
+
g_server
|
|
9462
|
+
.command('get-services')
|
|
9463
|
+
.description('server getServices')
|
|
9464
|
+
.requiredOption('--serverId <value>', 'serverId')
|
|
9465
|
+
.option('--json', 'Output raw JSON')
|
|
9466
|
+
.action(async (opts) => {
|
|
9467
|
+
const jsonOutput = opts.json;
|
|
9468
|
+
delete opts.json;
|
|
9469
|
+
const data = await apiGet("server.getServices", opts);
|
|
9470
|
+
if (jsonOutput) {
|
|
9471
|
+
console.log(JSON.stringify(data, null, 2));
|
|
9472
|
+
}
|
|
9473
|
+
else {
|
|
9474
|
+
printOutput(data);
|
|
9475
|
+
}
|
|
9476
|
+
});
|
|
9390
9477
|
g_server
|
|
9391
9478
|
.command('one')
|
|
9392
9479
|
.description('server one')
|
|
@@ -10759,6 +10846,21 @@ export function registerGeneratedCommands(program) {
|
|
|
10759
10846
|
printOutput(data);
|
|
10760
10847
|
}
|
|
10761
10848
|
});
|
|
10849
|
+
g_stripe
|
|
10850
|
+
.command('get-billing-status')
|
|
10851
|
+
.description('stripe getBillingStatus')
|
|
10852
|
+
.option('--json', 'Output raw JSON')
|
|
10853
|
+
.action(async (opts) => {
|
|
10854
|
+
const jsonOutput = opts.json;
|
|
10855
|
+
delete opts.json;
|
|
10856
|
+
const data = await apiGet("stripe.getBillingStatus", opts);
|
|
10857
|
+
if (jsonOutput) {
|
|
10858
|
+
console.log(JSON.stringify(data, null, 2));
|
|
10859
|
+
}
|
|
10860
|
+
else {
|
|
10861
|
+
printOutput(data);
|
|
10862
|
+
}
|
|
10863
|
+
});
|
|
10762
10864
|
g_stripe
|
|
10763
10865
|
.command('get-current-plan')
|
|
10764
10866
|
.description('stripe getCurrentPlan')
|
|
@@ -10804,6 +10906,21 @@ export function registerGeneratedCommands(program) {
|
|
|
10804
10906
|
printOutput(data);
|
|
10805
10907
|
}
|
|
10806
10908
|
});
|
|
10909
|
+
g_stripe
|
|
10910
|
+
.command('start-free-trial')
|
|
10911
|
+
.description('stripe startFreeTrial')
|
|
10912
|
+
.option('--json', 'Output raw JSON')
|
|
10913
|
+
.action(async (opts) => {
|
|
10914
|
+
const jsonOutput = opts.json;
|
|
10915
|
+
delete opts.json;
|
|
10916
|
+
const data = await apiPost("stripe.startFreeTrial", opts);
|
|
10917
|
+
if (jsonOutput) {
|
|
10918
|
+
console.log(JSON.stringify(data, null, 2));
|
|
10919
|
+
}
|
|
10920
|
+
else {
|
|
10921
|
+
printOutput(data);
|
|
10922
|
+
}
|
|
10923
|
+
});
|
|
10807
10924
|
g_stripe
|
|
10808
10925
|
.command('update-invoice-notifications')
|
|
10809
10926
|
.description('stripe updateInvoiceNotifications')
|