@dokploy/cli 0.29.4 → 0.29.6
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 +70 -0
- package/dist/index.js +3 -1
- package/package.json +5 -2
|
@@ -2327,6 +2327,25 @@ export function registerGeneratedCommands(program) {
|
|
|
2327
2327
|
printOutput(data);
|
|
2328
2328
|
}
|
|
2329
2329
|
});
|
|
2330
|
+
g_deployment
|
|
2331
|
+
.command('read-logs')
|
|
2332
|
+
.description('deployment readLogs')
|
|
2333
|
+
.requiredOption('--deploymentId <value>', 'deploymentId')
|
|
2334
|
+
.option('--tail <value>', 'tail')
|
|
2335
|
+
.option('--json', 'Output raw JSON')
|
|
2336
|
+
.action(async (opts) => {
|
|
2337
|
+
const jsonOutput = opts.json;
|
|
2338
|
+
delete opts.json;
|
|
2339
|
+
if (opts["tail"] != null)
|
|
2340
|
+
opts["tail"] = Number(opts["tail"]);
|
|
2341
|
+
const data = await apiGet("deployment.readLogs", opts);
|
|
2342
|
+
if (jsonOutput) {
|
|
2343
|
+
console.log(JSON.stringify(data, null, 2));
|
|
2344
|
+
}
|
|
2345
|
+
else {
|
|
2346
|
+
printOutput(data);
|
|
2347
|
+
}
|
|
2348
|
+
});
|
|
2330
2349
|
g_deployment
|
|
2331
2350
|
.command('remove-deployment')
|
|
2332
2351
|
.description('deployment removeDeployment')
|
|
@@ -9105,6 +9124,24 @@ export function registerGeneratedCommands(program) {
|
|
|
9105
9124
|
printOutput(data);
|
|
9106
9125
|
}
|
|
9107
9126
|
});
|
|
9127
|
+
g_settings
|
|
9128
|
+
.command('update-enforce-sso')
|
|
9129
|
+
.description('settings updateEnforceSSO')
|
|
9130
|
+
.requiredOption('--enforceSSO', 'enforceSSO')
|
|
9131
|
+
.option('--json', 'Output raw JSON')
|
|
9132
|
+
.action(async (opts) => {
|
|
9133
|
+
const jsonOutput = opts.json;
|
|
9134
|
+
delete opts.json;
|
|
9135
|
+
if (opts["enforceSSO"] != null)
|
|
9136
|
+
opts["enforceSSO"] = opts["enforceSSO"] === true || opts["enforceSSO"] === "true";
|
|
9137
|
+
const data = await apiPost("settings.updateEnforceSSO", opts);
|
|
9138
|
+
if (jsonOutput) {
|
|
9139
|
+
console.log(JSON.stringify(data, null, 2));
|
|
9140
|
+
}
|
|
9141
|
+
else {
|
|
9142
|
+
printOutput(data);
|
|
9143
|
+
}
|
|
9144
|
+
});
|
|
9108
9145
|
g_settings
|
|
9109
9146
|
.command('update-log-cleanup')
|
|
9110
9147
|
.description('settings updateLogCleanup')
|
|
@@ -9137,6 +9174,24 @@ export function registerGeneratedCommands(program) {
|
|
|
9137
9174
|
printOutput(data);
|
|
9138
9175
|
}
|
|
9139
9176
|
});
|
|
9177
|
+
g_settings
|
|
9178
|
+
.command('update-remote-servers-only')
|
|
9179
|
+
.description('settings updateRemoteServersOnly')
|
|
9180
|
+
.requiredOption('--remoteServersOnly', 'remoteServersOnly')
|
|
9181
|
+
.option('--json', 'Output raw JSON')
|
|
9182
|
+
.action(async (opts) => {
|
|
9183
|
+
const jsonOutput = opts.json;
|
|
9184
|
+
delete opts.json;
|
|
9185
|
+
if (opts["remoteServersOnly"] != null)
|
|
9186
|
+
opts["remoteServersOnly"] = opts["remoteServersOnly"] === true || opts["remoteServersOnly"] === "true";
|
|
9187
|
+
const data = await apiPost("settings.updateRemoteServersOnly", opts);
|
|
9188
|
+
if (jsonOutput) {
|
|
9189
|
+
console.log(JSON.stringify(data, null, 2));
|
|
9190
|
+
}
|
|
9191
|
+
else {
|
|
9192
|
+
printOutput(data);
|
|
9193
|
+
}
|
|
9194
|
+
});
|
|
9140
9195
|
g_settings
|
|
9141
9196
|
.command('update-server')
|
|
9142
9197
|
.description('settings updateServer')
|
|
@@ -9403,6 +9458,21 @@ export function registerGeneratedCommands(program) {
|
|
|
9403
9458
|
printOutput(data);
|
|
9404
9459
|
}
|
|
9405
9460
|
});
|
|
9461
|
+
g_sso
|
|
9462
|
+
.command('enforce-sso')
|
|
9463
|
+
.description('sso enforceSSO')
|
|
9464
|
+
.option('--json', 'Output raw JSON')
|
|
9465
|
+
.action(async (opts) => {
|
|
9466
|
+
const jsonOutput = opts.json;
|
|
9467
|
+
delete opts.json;
|
|
9468
|
+
const data = await apiGet("sso.enforceSSO", opts);
|
|
9469
|
+
if (jsonOutput) {
|
|
9470
|
+
console.log(JSON.stringify(data, null, 2));
|
|
9471
|
+
}
|
|
9472
|
+
else {
|
|
9473
|
+
printOutput(data);
|
|
9474
|
+
}
|
|
9475
|
+
});
|
|
9406
9476
|
g_sso
|
|
9407
9477
|
.command('get-trusted-origins')
|
|
9408
9478
|
.description('sso getTrustedOrigins')
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { readFileSync } from "node:fs";
|
|
2
3
|
import chalk from "chalk";
|
|
3
4
|
import { program } from "commander";
|
|
4
5
|
import { registerAuthCommand } from "./commands/auth.js";
|
|
5
6
|
import { registerGeneratedCommands } from "./generated/commands.js";
|
|
7
|
+
const packageJson = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
|
|
6
8
|
const pkg = {
|
|
7
9
|
name: "dokploy",
|
|
8
|
-
version:
|
|
10
|
+
version: packageJson.version,
|
|
9
11
|
description: "Dokploy CLI - Manage your Dokploy server",
|
|
10
12
|
};
|
|
11
13
|
program
|
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.
|
|
4
|
+
"version": "0.29.6",
|
|
5
5
|
"author": "Mauricio Siu",
|
|
6
6
|
"licenses": [
|
|
7
7
|
{
|
|
@@ -42,7 +42,10 @@
|
|
|
42
42
|
"license": "MIT",
|
|
43
43
|
"main": "dist/index.js",
|
|
44
44
|
"type": "module",
|
|
45
|
-
"repository":
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "Dokploy/cli"
|
|
48
|
+
},
|
|
46
49
|
"types": "dist/index.d.ts",
|
|
47
50
|
"scripts": {
|
|
48
51
|
"build": "tsc -b",
|