You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**`--app-name`**: The name of your new application. This becomes the project directory. Defaults to `adminforth-app`.
36
38
-**`--db `**: The connection URL for your database. Currently PostgreSQL, MongoDB, SQLite, MySQL, Clickhouse are supported. If not provided, defaults to `sqlite://.db.sqlite`.
37
39
38
-
<!-- **What it does:**
39
-
40
-
1. ✅ Parses CLI arguments (or prompts if missing).
41
-
2. 🔍 Validates Node.js version and checks if target folder exists.
42
-
3. 📁 Creates project directory structure:
43
-
- `custom/`
44
-
- `resources/`
45
-
- `.env`, `package.json`, `tsconfig.json`, etc.
46
-
4. 🛠 Applies database-specific templates using Handlebars.
47
-
5. 📦 Installs dependencies in both main and custom directories.
48
-
6. 📌 Prints helpful next steps to start developing immediately. -->
@@ -251,38 +196,13 @@ This command bundles the AdminForth front-end (SPA) using your current AdminFort
251
196
**Usage:**
252
197
253
198
```bash
254
-
adminforth bundle
199
+
pnpx adminforth bundle
255
200
```
256
201
257
-
<!-- **What it does:**
258
-
259
-
1. 🔍 Looks for a valid AdminForth instance file using `findAdminInstance()`.
260
-
2. 📦 Dynamically loads the instance using `callTsProxy`.
261
-
3. 🧰 Calls `admin.bundleNow({ hotReload: false })` to build the production-ready front-end. -->
262
-
263
202
**Output:**
264
203
265
204
The output files (typically JavaScript/CSS assets) will be generated in the directory configured by your AdminForth project (usually `dist` or `public`).
266
205
267
-
**Example:**
268
-
269
-
```bash
270
-
adminforth bundle
271
-
```
272
-
273
-
You should see:
274
-
275
-
```
276
-
Bundling admin SPA...
277
-
```
278
-
279
-
And after successful execution, your compiled AdminForth front-end will be ready for deployment.
280
-
281
-
---
282
-
283
-
284
-
285
-
286
206
287
207
288
208
@@ -332,7 +252,7 @@ Config will be auto-updated.
332
252
333
253
Usage shortcut:
334
254
```bash
335
-
adminforth component fields.show.user.email
255
+
pnpx adminforth component fields.show.user.email
336
256
```
337
257
338
258
---
@@ -429,30 +349,7 @@ This command helps you scaffold a new resource file for a selected table in your
429
349
**Usage:**
430
350
431
351
```bash
432
-
adminforth resource
433
-
```
434
-
435
-
436
-
<!-- **What it does:**
437
-
438
-
1. 🔍 Discovers all available tables across configured databases.
439
-
2. 🧭 Prompts the user to select a table using a searchable list.
440
-
3. 📑 Fetches all columns for the selected table.
441
-
4. 🛠 Generates a resource file from a Handlebars template (`templates/resource.ts.hbs`), including:
442
-
- Table name
443
-
- Column definitions
444
-
- Database source name
445
-
- Resource metadata
446
-
5. 🚫 Skips file creation if a matching resource already exists with the same `dataSource`.
447
-
6. 🧠 Appends the new resource to the app’s main `index.ts`:
448
-
- Adds an import statement.
449
-
- Registers the resource in the `resources` array.
450
-
- Adds a corresponding entry to the admin `menu`. -->
0 commit comments