buildx-cli 1.8.21 → 1.8.23

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
@@ -227,8 +227,9 @@ Modes:
227
227
  - `product`: tries `POST /product/:product_key/projects`, then falls back to `plain` when product creation is denied (for example non-root auth).
228
228
 
229
229
  Key options:
230
- - `--project-id <id>`: target project ID (required)
231
- - `--name <name>`: project name (required)
230
+ - `-i, --interactive`: prompt for missing options (recommended for first-time setup)
231
+ - `--project-id <id>`: target project ID (required unless interactive prompt is used)
232
+ - `--name <name>`: project name (required unless interactive prompt is used)
232
233
  - `--description <text>`: project description (optional)
233
234
  - `--product-key <key>`: enable product mode first, with fallback to plain mode
234
235
  - `--app <none|next|expo|react>`: app scaffold target (default `none`)
@@ -244,6 +245,9 @@ Examples:
244
245
  # backend only (plain mode)
245
246
  npx buildx-cli project:init --project-id hello-world --name "Hello World"
246
247
 
248
+ # interactive guided mode
249
+ npx buildx-cli project:init --interactive
250
+
247
251
  # product mode first, fallback to plain when not allowed
248
252
  npx buildx-cli project:init --project-id hello-world --name "Hello World" --product-key approval
249
253
 
@@ -255,12 +259,18 @@ npx buildx-cli project:init --project-id hello-world --name "Hello World" --app
255
259
  ```
256
260
 
257
261
  Generated auth-aware structure:
262
+ - Next.js scaffold source:
263
+ - `project:init --app next` runs `npx create-next-app@latest` first (TypeScript + App Router)
264
+ - then applies Buildx auth/public-private route wiring and maintenance scripts
258
265
  - Next.js template uses route groups for separation:
259
266
  - `app/(public)/...` (sign-in/sign-up/forgot-password)
260
267
  - `app/(private)/...` (protected dashboard)
261
268
  - Expo template uses auth-state route split in `App.tsx`:
262
269
  - public screen tree for unauthenticated users
263
270
  - private screen tree for authenticated users
271
+ - Scaffold layout is single-level:
272
+ - app package files are generated at workspace root (no `apps/web` nesting)
273
+ - `buildx/` artifacts are generated at root level alongside app files
264
274
 
265
275
  UI package dependency resolution:
266
276
  - generated apps depend on package from env `BUILDX_UI_PACKS_PACKAGE`
@@ -268,6 +278,10 @@ UI package dependency resolution:
268
278
  - set a scoped package before seeding when unscoped npm name is unavailable:
269
279
  - `BUILDX_UI_PACKS_PACKAGE=@your-scope/buildx-react-ui-packs npx buildx-cli project:init ...`
270
280
 
281
+ Notes:
282
+ - Next scaffold requires npm registry connectivity for `create-next-app`.
283
+ - Use `--dry-run` to preview file plan without running scaffold commands.
284
+
271
285
  ### New Project Maintenance
272
286
 
273
287
  After `project:init`, use these commands to maintain local/remote artifact parity:
package/dist/README.md CHANGED
@@ -227,8 +227,9 @@ Modes:
227
227
  - `product`: tries `POST /product/:product_key/projects`, then falls back to `plain` when product creation is denied (for example non-root auth).
228
228
 
229
229
  Key options:
230
- - `--project-id <id>`: target project ID (required)
231
- - `--name <name>`: project name (required)
230
+ - `-i, --interactive`: prompt for missing options (recommended for first-time setup)
231
+ - `--project-id <id>`: target project ID (required unless interactive prompt is used)
232
+ - `--name <name>`: project name (required unless interactive prompt is used)
232
233
  - `--description <text>`: project description (optional)
233
234
  - `--product-key <key>`: enable product mode first, with fallback to plain mode
234
235
  - `--app <none|next|expo|react>`: app scaffold target (default `none`)
@@ -244,6 +245,9 @@ Examples:
244
245
  # backend only (plain mode)
245
246
  npx buildx-cli project:init --project-id hello-world --name "Hello World"
246
247
 
248
+ # interactive guided mode
249
+ npx buildx-cli project:init --interactive
250
+
247
251
  # product mode first, fallback to plain when not allowed
248
252
  npx buildx-cli project:init --project-id hello-world --name "Hello World" --product-key approval
249
253
 
@@ -255,12 +259,18 @@ npx buildx-cli project:init --project-id hello-world --name "Hello World" --app
255
259
  ```
256
260
 
257
261
  Generated auth-aware structure:
262
+ - Next.js scaffold source:
263
+ - `project:init --app next` runs `npx create-next-app@latest` first (TypeScript + App Router)
264
+ - then applies Buildx auth/public-private route wiring and maintenance scripts
258
265
  - Next.js template uses route groups for separation:
259
266
  - `app/(public)/...` (sign-in/sign-up/forgot-password)
260
267
  - `app/(private)/...` (protected dashboard)
261
268
  - Expo template uses auth-state route split in `App.tsx`:
262
269
  - public screen tree for unauthenticated users
263
270
  - private screen tree for authenticated users
271
+ - Scaffold layout is single-level:
272
+ - app package files are generated at workspace root (no `apps/web` nesting)
273
+ - `buildx/` artifacts are generated at root level alongside app files
264
274
 
265
275
  UI package dependency resolution:
266
276
  - generated apps depend on package from env `BUILDX_UI_PACKS_PACKAGE`
@@ -268,6 +278,10 @@ UI package dependency resolution:
268
278
  - set a scoped package before seeding when unscoped npm name is unavailable:
269
279
  - `BUILDX_UI_PACKS_PACKAGE=@your-scope/buildx-react-ui-packs npx buildx-cli project:init ...`
270
280
 
281
+ Notes:
282
+ - Next scaffold requires npm registry connectivity for `create-next-app`.
283
+ - Use `--dry-run` to preview file plan without running scaffold commands.
284
+
271
285
  ### New Project Maintenance
272
286
 
273
287
  After `project:init`, use these commands to maintain local/remote artifact parity: