@dokploy/cli 0.29.7 → 0.29.9

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.
@@ -2754,6 +2754,7 @@ export function registerGeneratedCommands(program) {
2754
2754
  .option('--internalPath <value>', 'internalPath')
2755
2755
  .option('--stripPath', 'stripPath')
2756
2756
  .option('--middlewares <value>', 'middlewares')
2757
+ .option('--forwardAuthEnabled', 'forwardAuthEnabled')
2757
2758
  .option('--json', 'Output raw JSON')
2758
2759
  .action(async (opts) => {
2759
2760
  const jsonOutput = opts.json;
@@ -2764,6 +2765,8 @@ export function registerGeneratedCommands(program) {
2764
2765
  opts["https"] = opts["https"] === true || opts["https"] === "true";
2765
2766
  if (opts["stripPath"] != null)
2766
2767
  opts["stripPath"] = opts["stripPath"] === true || opts["stripPath"] === "true";
2768
+ if (opts["forwardAuthEnabled"] != null)
2769
+ opts["forwardAuthEnabled"] = opts["forwardAuthEnabled"] === true || opts["forwardAuthEnabled"] === "true";
2767
2770
  const data = await apiPost("domain.create", opts);
2768
2771
  if (jsonOutput) {
2769
2772
  console.log(JSON.stringify(data, null, 2));
@@ -2836,6 +2839,7 @@ export function registerGeneratedCommands(program) {
2836
2839
  .option('--internalPath <value>', 'internalPath')
2837
2840
  .option('--stripPath', 'stripPath')
2838
2841
  .option('--middlewares <value>', 'middlewares')
2842
+ .option('--forwardAuthEnabled', 'forwardAuthEnabled')
2839
2843
  .requiredOption('--domainId <value>', 'domainId')
2840
2844
  .option('--json', 'Output raw JSON')
2841
2845
  .action(async (opts) => {
@@ -2847,6 +2851,8 @@ export function registerGeneratedCommands(program) {
2847
2851
  opts["https"] = opts["https"] === true || opts["https"] === "true";
2848
2852
  if (opts["stripPath"] != null)
2849
2853
  opts["stripPath"] = opts["stripPath"] === true || opts["stripPath"] === "true";
2854
+ if (opts["forwardAuthEnabled"] != null)
2855
+ opts["forwardAuthEnabled"] = opts["forwardAuthEnabled"] === true || opts["forwardAuthEnabled"] === "true";
2850
2856
  const data = await apiPost("domain.update", opts);
2851
2857
  if (jsonOutput) {
2852
2858
  console.log(JSON.stringify(data, null, 2));
@@ -3002,6 +3008,172 @@ export function registerGeneratedCommands(program) {
3002
3008
  printOutput(data);
3003
3009
  }
3004
3010
  });
3011
+ const g_forwardAuth = program.command('forward-auth').description('forward-auth commands');
3012
+ g_forwardAuth
3013
+ .command('deploy-on-server')
3014
+ .description('forwardAuth deployOnServer')
3015
+ .requiredOption('--serverId <value>', 'serverId')
3016
+ .requiredOption('--providerId <value>', 'providerId')
3017
+ .option('--json', 'Output raw JSON')
3018
+ .action(async (opts) => {
3019
+ const jsonOutput = opts.json;
3020
+ delete opts.json;
3021
+ const data = await apiPost("forwardAuth.deployOnServer", opts);
3022
+ if (jsonOutput) {
3023
+ console.log(JSON.stringify(data, null, 2));
3024
+ }
3025
+ else {
3026
+ printOutput(data);
3027
+ }
3028
+ });
3029
+ g_forwardAuth
3030
+ .command('disable')
3031
+ .description('forwardAuth disable')
3032
+ .requiredOption('--domainId <value>', 'domainId')
3033
+ .option('--json', 'Output raw JSON')
3034
+ .action(async (opts) => {
3035
+ const jsonOutput = opts.json;
3036
+ delete opts.json;
3037
+ const data = await apiPost("forwardAuth.disable", opts);
3038
+ if (jsonOutput) {
3039
+ console.log(JSON.stringify(data, null, 2));
3040
+ }
3041
+ else {
3042
+ printOutput(data);
3043
+ }
3044
+ });
3045
+ g_forwardAuth
3046
+ .command('enable')
3047
+ .description('forwardAuth enable')
3048
+ .requiredOption('--domainId <value>', 'domainId')
3049
+ .option('--json', 'Output raw JSON')
3050
+ .action(async (opts) => {
3051
+ const jsonOutput = opts.json;
3052
+ delete opts.json;
3053
+ const data = await apiPost("forwardAuth.enable", opts);
3054
+ if (jsonOutput) {
3055
+ console.log(JSON.stringify(data, null, 2));
3056
+ }
3057
+ else {
3058
+ printOutput(data);
3059
+ }
3060
+ });
3061
+ g_forwardAuth
3062
+ .command('get-auth-domain')
3063
+ .description('forwardAuth getAuthDomain')
3064
+ .requiredOption('--serverId <value>', 'serverId')
3065
+ .option('--json', 'Output raw JSON')
3066
+ .action(async (opts) => {
3067
+ const jsonOutput = opts.json;
3068
+ delete opts.json;
3069
+ const data = await apiGet("forwardAuth.getAuthDomain", opts);
3070
+ if (jsonOutput) {
3071
+ console.log(JSON.stringify(data, null, 2));
3072
+ }
3073
+ else {
3074
+ printOutput(data);
3075
+ }
3076
+ });
3077
+ g_forwardAuth
3078
+ .command('list-providers')
3079
+ .description('forwardAuth listProviders')
3080
+ .option('--json', 'Output raw JSON')
3081
+ .action(async (opts) => {
3082
+ const jsonOutput = opts.json;
3083
+ delete opts.json;
3084
+ const data = await apiGet("forwardAuth.listProviders", opts);
3085
+ if (jsonOutput) {
3086
+ console.log(JSON.stringify(data, null, 2));
3087
+ }
3088
+ else {
3089
+ printOutput(data);
3090
+ }
3091
+ });
3092
+ g_forwardAuth
3093
+ .command('remove-auth-domain')
3094
+ .description('forwardAuth removeAuthDomain')
3095
+ .requiredOption('--serverId <value>', 'serverId')
3096
+ .option('--json', 'Output raw JSON')
3097
+ .action(async (opts) => {
3098
+ const jsonOutput = opts.json;
3099
+ delete opts.json;
3100
+ const data = await apiPost("forwardAuth.removeAuthDomain", opts);
3101
+ if (jsonOutput) {
3102
+ console.log(JSON.stringify(data, null, 2));
3103
+ }
3104
+ else {
3105
+ printOutput(data);
3106
+ }
3107
+ });
3108
+ g_forwardAuth
3109
+ .command('remove-on-server')
3110
+ .description('forwardAuth removeOnServer')
3111
+ .requiredOption('--serverId <value>', 'serverId')
3112
+ .option('--json', 'Output raw JSON')
3113
+ .action(async (opts) => {
3114
+ const jsonOutput = opts.json;
3115
+ delete opts.json;
3116
+ const data = await apiPost("forwardAuth.removeOnServer", opts);
3117
+ if (jsonOutput) {
3118
+ console.log(JSON.stringify(data, null, 2));
3119
+ }
3120
+ else {
3121
+ printOutput(data);
3122
+ }
3123
+ });
3124
+ g_forwardAuth
3125
+ .command('server-status')
3126
+ .description('forwardAuth serverStatus')
3127
+ .option('--json', 'Output raw JSON')
3128
+ .action(async (opts) => {
3129
+ const jsonOutput = opts.json;
3130
+ delete opts.json;
3131
+ const data = await apiGet("forwardAuth.serverStatus", opts);
3132
+ if (jsonOutput) {
3133
+ console.log(JSON.stringify(data, null, 2));
3134
+ }
3135
+ else {
3136
+ printOutput(data);
3137
+ }
3138
+ });
3139
+ g_forwardAuth
3140
+ .command('set-auth-domain')
3141
+ .description('forwardAuth setAuthDomain')
3142
+ .requiredOption('--serverId <value>', 'serverId')
3143
+ .requiredOption('--authDomain <value>', 'authDomain')
3144
+ .option('--https', 'https')
3145
+ .option('--certificateType <value>', 'certificateType (none, letsencrypt, custom)')
3146
+ .option('--customCertResolver <value>', 'customCertResolver')
3147
+ .option('--json', 'Output raw JSON')
3148
+ .action(async (opts) => {
3149
+ const jsonOutput = opts.json;
3150
+ delete opts.json;
3151
+ if (opts["https"] != null)
3152
+ opts["https"] = opts["https"] === true || opts["https"] === "true";
3153
+ const data = await apiPost("forwardAuth.setAuthDomain", opts);
3154
+ if (jsonOutput) {
3155
+ console.log(JSON.stringify(data, null, 2));
3156
+ }
3157
+ else {
3158
+ printOutput(data);
3159
+ }
3160
+ });
3161
+ g_forwardAuth
3162
+ .command('status')
3163
+ .description('forwardAuth status')
3164
+ .requiredOption('--domainId <value>', 'domainId')
3165
+ .option('--json', 'Output raw JSON')
3166
+ .action(async (opts) => {
3167
+ const jsonOutput = opts.json;
3168
+ delete opts.json;
3169
+ const data = await apiGet("forwardAuth.status", opts);
3170
+ if (jsonOutput) {
3171
+ console.log(JSON.stringify(data, null, 2));
3172
+ }
3173
+ else {
3174
+ printOutput(data);
3175
+ }
3176
+ });
3005
3177
  const g_gitea = program.command('gitea').description('gitea commands');
3006
3178
  g_gitea
3007
3179
  .command('create')
@@ -8244,12 +8416,15 @@ export function registerGeneratedCommands(program) {
8244
8416
  .requiredOption('--username <value>', 'username')
8245
8417
  .requiredOption('--sshKeyId <value>', 'sshKeyId')
8246
8418
  .requiredOption('--serverType <value>', 'serverType (deploy, build)')
8419
+ .option('--enableDockerCleanup', 'enableDockerCleanup')
8247
8420
  .option('--json', 'Output raw JSON')
8248
8421
  .action(async (opts) => {
8249
8422
  const jsonOutput = opts.json;
8250
8423
  delete opts.json;
8251
8424
  if (opts["port"] != null)
8252
8425
  opts["port"] = Number(opts["port"]);
8426
+ if (opts["enableDockerCleanup"] != null)
8427
+ opts["enableDockerCleanup"] = opts["enableDockerCleanup"] === true || opts["enableDockerCleanup"] === "true";
8253
8428
  const data = await apiPost("server.create", opts);
8254
8429
  if (jsonOutput) {
8255
8430
  console.log(JSON.stringify(data, null, 2));
@@ -8414,6 +8589,7 @@ export function registerGeneratedCommands(program) {
8414
8589
  .requiredOption('--username <value>', 'username')
8415
8590
  .requiredOption('--sshKeyId <value>', 'sshKeyId')
8416
8591
  .requiredOption('--serverType <value>', 'serverType (deploy, build)')
8592
+ .option('--enableDockerCleanup', 'enableDockerCleanup')
8417
8593
  .option('--command <value>', 'command')
8418
8594
  .option('--json', 'Output raw JSON')
8419
8595
  .action(async (opts) => {
@@ -8421,6 +8597,8 @@ export function registerGeneratedCommands(program) {
8421
8597
  delete opts.json;
8422
8598
  if (opts["port"] != null)
8423
8599
  opts["port"] = Number(opts["port"]);
8600
+ if (opts["enableDockerCleanup"] != null)
8601
+ opts["enableDockerCleanup"] = opts["enableDockerCleanup"] === true || opts["enableDockerCleanup"] === "true";
8424
8602
  const data = await apiPost("server.update", opts);
8425
8603
  if (jsonOutput) {
8426
8604
  console.log(JSON.stringify(data, null, 2));
@@ -8429,6 +8607,25 @@ export function registerGeneratedCommands(program) {
8429
8607
  printOutput(data);
8430
8608
  }
8431
8609
  });
8610
+ g_server
8611
+ .command('update-builds-concurrency')
8612
+ .description('server updateBuildsConcurrency')
8613
+ .requiredOption('--serverId <value>', 'serverId')
8614
+ .requiredOption('--buildsConcurrency <value>', 'buildsConcurrency')
8615
+ .option('--json', 'Output raw JSON')
8616
+ .action(async (opts) => {
8617
+ const jsonOutput = opts.json;
8618
+ delete opts.json;
8619
+ if (opts["buildsConcurrency"] != null)
8620
+ opts["buildsConcurrency"] = Number(opts["buildsConcurrency"]);
8621
+ const data = await apiPost("server.updateBuildsConcurrency", opts);
8622
+ if (jsonOutput) {
8623
+ console.log(JSON.stringify(data, null, 2));
8624
+ }
8625
+ else {
8626
+ printOutput(data);
8627
+ }
8628
+ });
8432
8629
  g_server
8433
8630
  .command('validate')
8434
8631
  .description('server validate')
@@ -9105,6 +9302,24 @@ export function registerGeneratedCommands(program) {
9105
9302
  printOutput(data);
9106
9303
  }
9107
9304
  });
9305
+ g_settings
9306
+ .command('update-builds-concurrency')
9307
+ .description('settings updateBuildsConcurrency')
9308
+ .requiredOption('--buildsConcurrency <value>', 'buildsConcurrency')
9309
+ .option('--json', 'Output raw JSON')
9310
+ .action(async (opts) => {
9311
+ const jsonOutput = opts.json;
9312
+ delete opts.json;
9313
+ if (opts["buildsConcurrency"] != null)
9314
+ opts["buildsConcurrency"] = Number(opts["buildsConcurrency"]);
9315
+ const data = await apiPost("settings.updateBuildsConcurrency", opts);
9316
+ if (jsonOutput) {
9317
+ console.log(JSON.stringify(data, null, 2));
9318
+ }
9319
+ else {
9320
+ printOutput(data);
9321
+ }
9322
+ });
9108
9323
  g_settings
9109
9324
  .command('update-docker-cleanup')
9110
9325
  .description('settings updateDockerCleanup')
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.29.7",
4
+ "version": "0.29.9",
5
5
  "author": "Mauricio Siu",
6
6
  "licenses": [
7
7
  {