@coffre/cli 0.1.2 → 0.1.4
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/keys-RhB7ayOY.js +726 -0
- package/dist/main.js +6 -6
- package/dist/setup-3OJc_VCA.js +756 -0
- package/dist/templates/node/README.md +20 -17
- package/dist/templates/node/package.json +3 -3
- package/dist/templates/node/server.env.example +3 -3
- package/dist/templates/node/src/server.ts +2 -2
- package/dist/templates/node/src/vault.ts +7 -7
- package/dist/templates/node/vault.env.example +6 -5
- package/dist/templates/workers/README.md +28 -23
- package/dist/templates/workers/app/src/worker.ts +2 -2
- package/dist/templates/workers/app/wrangler.jsonc +4 -4
- package/dist/templates/workers/package.json +4 -4
- package/dist/templates/workers/vault/src/worker.ts +8 -8
- package/dist/templates/workers/vault/wrangler.jsonc +8 -7
- package/package.json +4 -4
- package/dist/keys-D9CG_wYV.js +0 -64
- package/dist/setup-DPHVyr2N.js +0 -521
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { a as keys } from "./keys-RhB7ayOY.js";
|
|
3
3
|
import { i as isRole, r as assignableToEnvironment, t as ROLES } from "./access-CO1kGjWW.js";
|
|
4
4
|
import { parseArgs, promisify } from "node:util";
|
|
5
5
|
import { execFile, spawn } from "node:child_process";
|
|
@@ -1461,9 +1461,9 @@ const USAGE = `coffre - secrets, with an audit log
|
|
|
1461
1461
|
coffre init --workers [<dir>] two Cloudflare Workers: the app and its vault
|
|
1462
1462
|
coffre init --node [<dir>] a Node server, and its vault beside it
|
|
1463
1463
|
coffre setup [--reset-passwords] [--json]
|
|
1464
|
-
its database logins, migrations and keys
|
|
1465
|
-
shown once
|
|
1466
|
-
coffre keys [--json]
|
|
1464
|
+
its database logins, migrations and keys in one go,
|
|
1465
|
+
shown once on a screen of their own
|
|
1466
|
+
coffre keys [--json] the app key, vault key and vault ID alone, shown the same way
|
|
1467
1467
|
|
|
1468
1468
|
Session
|
|
1469
1469
|
coffre login [<url>] [--no-browser] sign in, and make <url> the current instance
|
|
@@ -1513,10 +1513,10 @@ switch (command) {
|
|
|
1513
1513
|
initProject(rest);
|
|
1514
1514
|
break;
|
|
1515
1515
|
case "keys":
|
|
1516
|
-
keys(rest);
|
|
1516
|
+
await keys(rest);
|
|
1517
1517
|
break;
|
|
1518
1518
|
case "setup":
|
|
1519
|
-
await (await import("./setup-
|
|
1519
|
+
await (await import("./setup-3OJc_VCA.js")).setup(rest);
|
|
1520
1520
|
break;
|
|
1521
1521
|
case "login":
|
|
1522
1522
|
await login(rest);
|