@vaiftech/cli 1.9.9 → 1.10.0

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
@@ -3,7 +3,7 @@
3
3
  [![npm version](https://img.shields.io/npm/v/@vaiftech/cli)](https://www.npmjs.com/package/@vaiftech/cli)
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
5
5
 
6
- Command-line tools for [VAIF Studio](https://vaif.studio) (v1.9.7) — scaffold full projects from templates with feature selection, browser-based authentication, manage schemas, deploy functions, generate TypeScript types, and more.
6
+ Command-line tools for [VAIF Studio](https://vaif.studio) (v1.10.0) — scaffold full projects from templates with feature selection, browser-based authentication, manage schemas, deploy functions, generate TypeScript types, migrate from Supabase/Firebase, and more.
7
7
 
8
8
  ## Installation
9
9
 
@@ -25,6 +25,12 @@ vaif init --template nextjs-fullstack
25
25
  # Scaffold with specific features
26
26
  vaif init --template react-spa --features auth,realtime,storage
27
27
 
28
+ # Migrate from another platform
29
+ vaif migrate --from supabase --dry-run
30
+
31
+ # Generate CLAUDE.md for AI assistants
32
+ vaif init --claude
33
+
28
34
  # Pull your database schema and generate types
29
35
  vaif pull
30
36
  vaif generate
@@ -158,6 +164,8 @@ vaif init --template react-spa # Scaffold from template
158
164
  vaif init --template nextjs-fullstack --features auth,storage
159
165
  vaif init --typescript # Setup for TypeScript
160
166
  vaif init --force # Overwrite existing config
167
+ vaif init --claude # Auto-detect project type + generate CLAUDE.md from live data
168
+ vaif init --claude saas # Generate CLAUDE.md from static template (base|saas|mobile|ecommerce)
161
169
  ```
162
170
 
163
171
  ### Add Features to Existing Project
@@ -256,6 +264,54 @@ export default async function handler(req, ctx) {
256
264
  }
257
265
  ```
258
266
 
267
+ ### Migration from Other Platforms
268
+
269
+ Migrate your project from Supabase or Firebase to VAIF Studio. The CLI analyzes your local project files, builds a migration plan, and optionally executes it via the VAIF API.
270
+
271
+ ```bash
272
+ vaif migrate --from supabase # Analyze Supabase project + show migration plan
273
+ vaif migrate --from firebase # Analyze Firebase project + show migration plan
274
+ vaif migrate --from supabase --dry-run # Preview plan without executing
275
+ vaif migrate --from firebase -p <id> # Specify target VAIF project
276
+ vaif migrate --from supabase -o ./my-supabase-app # Analyze a different directory
277
+ ```
278
+
279
+ **Supabase migration reads:**
280
+ - `supabase/migrations/*.sql` — Table schemas, indexes, RLS policies
281
+ - `supabase/config.toml` — Project configuration
282
+ - `supabase/.temp/project-ref` — Project reference
283
+ - `supabase/functions/` — Edge functions
284
+
285
+ **Firebase migration reads:**
286
+ - `firebase.json` — Hosting, functions, Firestore, storage config
287
+ - `.firebaserc` — Project aliases
288
+ - `firestore.rules` — Security rules (translated to RLS policies)
289
+ - `functions/src/index.ts` — Cloud functions
290
+
291
+ The migration plan shows tables, storage buckets, functions, and notes. In dry-run mode, it also saves the plan to `migration-plan.md`. When executed, it creates tables, buckets, and function stubs via the VAIF API.
292
+
293
+ ### CLAUDE.md Generation
294
+
295
+ Generate a `CLAUDE.md` file for AI assistants to understand your project:
296
+
297
+ ```bash
298
+ vaif init --claude # Auto-detect project type, generate from live project data
299
+ vaif init --claude base # Static template: universal project
300
+ vaif init --claude saas # Static template: SaaS with billing, teams, multi-tenancy
301
+ vaif init --claude mobile # Static template: mobile app (React Native, Expo, Flutter)
302
+ vaif init --claude ecommerce # Static template: e-commerce with products, orders, Stripe
303
+ ```
304
+
305
+ **Auto-detection** examines `package.json` dependencies and directory structure to determine project type (mobile, ecommerce, saas, or base) and generates a tailored CLAUDE.md with live project data.
306
+
307
+ **Convention import**: When using a static template, the CLI automatically imports team conventions from existing AI config files (`.cursorrules`, `.github/copilot-instructions.md`, `.windsurfrules`, `.clinerules`) and appends them to the generated CLAUDE.md.
308
+
309
+ For a fully personalized CLAUDE.md from your live project data (database schema, API keys, etc.), use:
310
+
311
+ ```bash
312
+ vaif claude-setup
313
+ ```
314
+
259
315
  ### Claude Code Integration
260
316
 
261
317
  Set up [Claude Code](https://claude.ai/claude-code) to work with your VAIF project. This generates a `.mcp.json` (MCP server config) and a `CLAUDE.md` (project context with your full database schema, SDK examples, and API reference).