@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 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
- Release builds of `lenso-cli` also copy the bundled Runtime Console into the
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
- Update the hosted console later by upgrading `lenso-cli` and running:
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 host update-console
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-package create billing
82
+ lenso console package create billing
69
83
  ```
70
84
 
71
85
  ## Install a module
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lenso/cli",
3
- "version": "0.1.23",
3
+ "version": "0.1.26",
4
4
  "description": "Lenso command-line interface for scaffolding and operating Lenso backend projects.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/LioRael/lenso-cli",
Binary file
Binary file
Binary file
Binary file