@fui-org/fui-cli 1.1.0 → 1.2.1

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
@@ -4,48 +4,24 @@ A command-line tool for the FUI low-code platform: projects, modules, components
4
4
 
5
5
  ## Install
6
6
 
7
- ### 1. Install Bun
7
+ ### 1. Install fui
8
8
 
9
- `fui` runs on [Bun](https://bun.com) 1.4 or later. Skip this step if `bun --version` already prints 1.4 or later.
10
-
11
- macOS and Linux:
12
-
13
- ```bash
14
- curl -fsSL https://bun.sh/install | bash
15
- ```
16
-
17
- On macOS you can use Homebrew instead:
9
+ Needs [Node.js](https://nodejs.org) 22 or later (`node --version`).
18
10
 
19
11
  ```bash
20
- brew install oven-sh/bun/bun
21
- ```
22
-
23
- Windows (PowerShell):
24
-
25
- ```powershell
26
- powershell -c "irm bun.sh/install.ps1 | iex"
27
- ```
28
-
29
- Open a new terminal so `PATH` picks up Bun, then check it:
30
-
31
- ```bash
32
- bun --version
12
+ npm install -g @fui-org/fui-cli
13
+ fui --version
33
14
  ```
34
15
 
35
- To upgrade an older Bun, run `bun upgrade`.
16
+ ### Or install with Bun
36
17
 
37
- ### 2. Install fui
18
+ If you use [Bun](https://bun.com) as your package manager, install fui with it instead. fui still runs on Node.js.
38
19
 
39
20
  ```bash
40
21
  bun add -g @fui-org/fui-cli
41
- fui --version
42
22
  ```
43
23
 
44
- This puts `fui` on your `PATH`, in `~/.bun/bin` on macOS and Linux and in `%USERPROFILE%\.bun\bin` on Windows.
45
-
46
- Already use Node.js 22 or later? `npm install -g @fui-org/fui-cli` works too. Also install Node.js 22+ on a Bun-only machine, because `fui` starts through `node`. Postgres and MySQL connections need Bun.
47
-
48
- ### 3. Set up
24
+ ### 2. Set up
49
25
 
50
26
  Ask your FUI administrator for the API address and your API token, then:
51
27
 
@@ -60,9 +36,11 @@ The token is read from stdin, so it never lands in your shell history. `fui conf
60
36
  For real-browser checks (`fui module simulate --render`, `fui component preview`), install Playwright once:
61
37
 
62
38
  ```bash
63
- bun add -g playwright && bunx playwright install chromium
39
+ npm install -g playwright && npx playwright install chromium
64
40
  ```
65
41
 
42
+ Installed fui with Bun? Install Playwright the same way, so fui finds it: `bun add -g playwright && bunx playwright install chromium`.
43
+
66
44
  ## Updates
67
45
 
68
46
  `fui` updates itself in the background, at most once an hour, and prints one line after an update. `fui update` updates now, and `fui update --check` only reports. Turn it off with `fui config set auto-update off`.
@@ -115,16 +93,16 @@ Secrets are read only from stdin (`-`) or from an env var (`--*-env VAR`):
115
93
 
116
94
  ```bash
117
95
  printf %s "$TOKEN" | fui db add docs -p my-project --token - --api-domain tapi.example.edu.vn
118
- fui db add local -p demo --conn-env PG_URL
96
+ fui db add local -p demo --conn-env SQLITE_URL
119
97
  fui db list
120
98
  ```
121
99
 
122
- A connection is an MSSQL string (through tAPI) or a `postgres://`, `mysql://` or `sqlite://` URL.
100
+ A connection is an MSSQL string (through tAPI) or a `sqlite://` URL.
123
101
 
124
102
  ## Uninstall
125
103
 
126
104
  ```bash
127
- bun remove -g @fui-org/fui-cli
105
+ npm uninstall -g @fui-org/fui-cli
128
106
  ```
129
107
 
130
- With npm: `npm uninstall -g @fui-org/fui-cli`.
108
+ Installed with Bun: `bun remove -g @fui-org/fui-cli`.