@lenso/cli 0.1.23 → 0.1.26
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 +20 -6
- package/package.json +1 -1
- package/vendor/darwin-arm64/lenso +0 -0
- package/vendor/darwin-x64/lenso +0 -0
- package/vendor/linux-x64/lenso +0 -0
- package/vendor/win32-x64/lenso.exe +0 -0
package/README.md
CHANGED
|
@@ -16,21 +16,35 @@ cargo install lenso-cli
|
|
|
16
16
|
lenso host init my-app
|
|
17
17
|
cd my-app
|
|
18
18
|
cp .env.example .env
|
|
19
|
+
lenso console update
|
|
19
20
|
lenso serve
|
|
20
21
|
```
|
|
21
22
|
|
|
22
23
|
The package name defaults to the target directory name and can be overridden with
|
|
23
24
|
`--name`. Pass `--force` to scaffold into a non-empty directory.
|
|
24
|
-
|
|
25
|
-
new project, so the API serves it at `/console` without requiring Node.js or
|
|
26
|
-
pnpm in the host application.
|
|
25
|
+
Install or update the hosted Runtime Console with:
|
|
27
26
|
|
|
28
|
-
|
|
27
|
+
```sh
|
|
28
|
+
lenso console update
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
The command downloads the latest `lenso-runtime-console` release artifact and
|
|
32
|
+
installs it under `.lenso/console`, so the host API can serve `/console`
|
|
33
|
+
without requiring Node.js or pnpm in the host application. For local builds,
|
|
34
|
+
pass `--artifact <dir-or-tar.gz>`. For a pinned release, pass
|
|
35
|
+
`--console-version vX.Y.Z`.
|
|
36
|
+
|
|
37
|
+
After creating a password user, grant the first Runtime Console admin:
|
|
29
38
|
|
|
30
39
|
```sh
|
|
31
|
-
lenso
|
|
40
|
+
lenso console bootstrap-admin --identifier admin@example.com
|
|
41
|
+
# or
|
|
42
|
+
lenso console bootstrap-admin --user-id usr_...
|
|
32
43
|
```
|
|
33
44
|
|
|
45
|
+
`console.admin` is always added. Pass extra `--scope <name>` flags when the
|
|
46
|
+
user should also see scoped module data, then restart the API/worker.
|
|
47
|
+
|
|
34
48
|
The generated host depends on the crates.io `lenso` crate with the `host`
|
|
35
49
|
feature, which is the current narrow host API for booting API, worker, and
|
|
36
50
|
migration entrypoints. See
|
|
@@ -65,7 +79,7 @@ lenso module create billing --remote --output-dir ../module-packages
|
|
|
65
79
|
The Runtime Console package generator is available directly as:
|
|
66
80
|
|
|
67
81
|
```sh
|
|
68
|
-
lenso console
|
|
82
|
+
lenso console package create billing
|
|
69
83
|
```
|
|
70
84
|
|
|
71
85
|
## Install a module
|
package/package.json
CHANGED
|
Binary file
|
package/vendor/darwin-x64/lenso
CHANGED
|
Binary file
|
package/vendor/linux-x64/lenso
CHANGED
|
Binary file
|
|
Binary file
|