@dokploy/cli 0.29.12 → 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 +31 -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')
|