@tokenoftrust/cli 2.5.2 → 2.5.3
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/README.md +12 -6
- package/package.json +1 -1
- package/src/commands/clone.mjs +2 -1
- package/template/private-app/README.md +8 -4
package/README.md
CHANGED
|
@@ -5,12 +5,17 @@ One command to go from a Token of Trust invite to a running store.
|
|
|
5
5
|
```sh
|
|
6
6
|
npm i -g @tokenoftrust/cli
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
tot clone
|
|
8
|
+
# list the stores you can build on
|
|
9
|
+
tot clone
|
|
10
|
+
# mirrors `git clone`; dir defaults to <tenant>
|
|
11
|
+
tot clone <tenant> my-store
|
|
10
12
|
cd my-store
|
|
11
|
-
|
|
12
|
-
tot
|
|
13
|
-
|
|
13
|
+
# run it locally with save→reload — no Docker needed
|
|
14
|
+
tot dev
|
|
15
|
+
# bundle your edits into a compliance-reviewed preview
|
|
16
|
+
tot preview
|
|
17
|
+
# promote a reconciled preview live (diff + one confirm)
|
|
18
|
+
tot ship
|
|
14
19
|
```
|
|
15
20
|
|
|
16
21
|
**Prerequisites: Node.js and an invite. Nothing else.** `tot dev` downloads the
|
|
@@ -88,7 +93,8 @@ tot login tot login
|
|
|
88
93
|
The value is an **opaque label** — any string works, so it's easy to script parallel identities:
|
|
89
94
|
|
|
90
95
|
```
|
|
91
|
-
|
|
96
|
+
# a fresh isolated identity per terminal / test worker
|
|
97
|
+
export TOT_PROFILE=$(uuidgen)
|
|
92
98
|
tot login
|
|
93
99
|
```
|
|
94
100
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokenoftrust/cli",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.3",
|
|
4
4
|
"description": "Token of Trust developer CLI — clone a tenant store, run it locally with save→reload, and submit it for preview. Installs the `tot` command.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Token of Trust",
|
package/src/commands/clone.mjs
CHANGED
|
@@ -306,7 +306,8 @@ export async function run(argv, ctx, deps = {}) {
|
|
|
306
306
|
tenant: args.tenant, dir: /** @type {string} */ (res.dir), env, storefrontUrl: args.url, redact, readTopology, cloneDeps,
|
|
307
307
|
});
|
|
308
308
|
console.log(`\nYour local working clone is at ${res.dir}.`);
|
|
309
|
-
console.log(
|
|
309
|
+
console.log(" # run it locally with save→reload");
|
|
310
|
+
console.log(` cd ${res.dir} && tot dev`);
|
|
310
311
|
console.log(` (origin has no token — \`tot\` mints one fresh at fetch/push time)`);
|
|
311
312
|
return 0;
|
|
312
313
|
}
|
|
@@ -30,10 +30,14 @@ are the stable human and LLM entry points.
|
|
|
30
30
|
## Local loop (no network, no real ToT account needed)
|
|
31
31
|
|
|
32
32
|
```
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
# lint tot-app.json against the contract
|
|
34
|
+
tot app dev validate
|
|
35
|
+
# start the stub receiver
|
|
36
|
+
node server.js &
|
|
37
|
+
# sign a fixture CloudEvent and POST it in
|
|
38
|
+
tot app dev emit order.created
|
|
39
|
+
# mint a dev widget-launch JWT against an ephemeral key
|
|
40
|
+
tot app dev mint
|
|
37
41
|
```
|
|
38
42
|
|
|
39
43
|
`tot app dev` generates its own throwaway RS256 keypair per app directory
|