@dokploy/cli 0.29.11 → 0.29.13
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 +37 -0
- package/package.json +1 -1
|
@@ -143,6 +143,21 @@ export function registerGeneratedCommands(program) {
|
|
|
143
143
|
printOutput(data);
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
|
+
g_ai
|
|
147
|
+
.command('get-custom-providers')
|
|
148
|
+
.description('ai getCustomProviders')
|
|
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.getCustomProviders", opts);
|
|
154
|
+
if (jsonOutput) {
|
|
155
|
+
console.log(JSON.stringify(data, null, 2));
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
printOutput(data);
|
|
159
|
+
}
|
|
160
|
+
});
|
|
146
161
|
g_ai
|
|
147
162
|
.command('get-enabled-providers')
|
|
148
163
|
.description('ai getEnabledProviders')
|
|
@@ -191,6 +206,22 @@ export function registerGeneratedCommands(program) {
|
|
|
191
206
|
printOutput(data);
|
|
192
207
|
}
|
|
193
208
|
});
|
|
209
|
+
g_ai
|
|
210
|
+
.command('save-custom-providers')
|
|
211
|
+
.description('ai saveCustomProviders')
|
|
212
|
+
.requiredOption('--providers <value>', 'providers')
|
|
213
|
+
.option('--json', 'Output raw JSON')
|
|
214
|
+
.action(async (opts) => {
|
|
215
|
+
const jsonOutput = opts.json;
|
|
216
|
+
delete opts.json;
|
|
217
|
+
const data = await apiPost("ai.saveCustomProviders", opts);
|
|
218
|
+
if (jsonOutput) {
|
|
219
|
+
console.log(JSON.stringify(data, null, 2));
|
|
220
|
+
}
|
|
221
|
+
else {
|
|
222
|
+
printOutput(data);
|
|
223
|
+
}
|
|
224
|
+
});
|
|
194
225
|
g_ai
|
|
195
226
|
.command('suggest')
|
|
196
227
|
.description('ai suggest')
|
|
@@ -1021,6 +1052,7 @@ export function registerGeneratedCommands(program) {
|
|
|
1021
1052
|
.option('--backupType <value>', 'backupType (database, compose)')
|
|
1022
1053
|
.option('--composeId <value>', 'composeId')
|
|
1023
1054
|
.option('--serviceName <value>', 'serviceName')
|
|
1055
|
+
.option('--includeEncryptionKey', 'includeEncryptionKey')
|
|
1024
1056
|
.option('--metadata <value>', 'metadata')
|
|
1025
1057
|
.option('--json', 'Output raw JSON')
|
|
1026
1058
|
.action(async (opts) => {
|
|
@@ -1030,6 +1062,8 @@ export function registerGeneratedCommands(program) {
|
|
|
1030
1062
|
opts["enabled"] = opts["enabled"] === true || opts["enabled"] === "true";
|
|
1031
1063
|
if (opts["keepLatestCount"] != null)
|
|
1032
1064
|
opts["keepLatestCount"] = Number(opts["keepLatestCount"]);
|
|
1065
|
+
if (opts["includeEncryptionKey"] != null)
|
|
1066
|
+
opts["includeEncryptionKey"] = opts["includeEncryptionKey"] === true || opts["includeEncryptionKey"] === "true";
|
|
1033
1067
|
const data = await apiPost("backup.create", opts);
|
|
1034
1068
|
if (jsonOutput) {
|
|
1035
1069
|
console.log(JSON.stringify(data, null, 2));
|
|
@@ -1213,6 +1247,7 @@ export function registerGeneratedCommands(program) {
|
|
|
1213
1247
|
.requiredOption('--serviceName <value>', 'serviceName')
|
|
1214
1248
|
.requiredOption('--metadata <value>', 'metadata')
|
|
1215
1249
|
.requiredOption('--databaseType <value>', 'databaseType (postgres, mariadb, mysql, mongo, web-server, libsql)')
|
|
1250
|
+
.option('--includeEncryptionKey', 'includeEncryptionKey')
|
|
1216
1251
|
.option('--json', 'Output raw JSON')
|
|
1217
1252
|
.action(async (opts) => {
|
|
1218
1253
|
const jsonOutput = opts.json;
|
|
@@ -1221,6 +1256,8 @@ export function registerGeneratedCommands(program) {
|
|
|
1221
1256
|
opts["enabled"] = opts["enabled"] === true || opts["enabled"] === "true";
|
|
1222
1257
|
if (opts["keepLatestCount"] != null)
|
|
1223
1258
|
opts["keepLatestCount"] = Number(opts["keepLatestCount"]);
|
|
1259
|
+
if (opts["includeEncryptionKey"] != null)
|
|
1260
|
+
opts["includeEncryptionKey"] = opts["includeEncryptionKey"] === true || opts["includeEncryptionKey"] === "true";
|
|
1224
1261
|
const data = await apiPost("backup.update", opts);
|
|
1225
1262
|
if (jsonOutput) {
|
|
1226
1263
|
console.log(JSON.stringify(data, null, 2));
|