invect-cli
v0.0.7
Published
CLI for managing Invect workflow projects. Thin wrapper around @invect/cli.
Downloads
1,568
Maintainers
Readme
Schema generation, database migrations, and project setup for Invect. Merges core + plugin schemas and generates dialect-specific Drizzle files for SQLite, PostgreSQL, and MySQL.
This package is a thin wrapper around @invect/cli.
Install
npm install -D invect-cliOr run directly:
npx invect-cli <command>Commands
invect-cli init
Interactive setup wizard. Detects your framework, installs dependencies, creates invect.config.ts, generates schemas, and runs the initial migration.
invect-cli generate
Generates Drizzle schema files for all three database dialects from your core + plugin schemas. Reads invect.config.ts to discover plugins.
npx invect-cli generateinvect-cli migrate
Applies pending migrations or pushes the schema directly (dev mode).
npx invect-cli migrateinvect-cli info
Displays diagnostic info — system, frameworks, databases, config, and plugins.
invect-cli secret
Generates a cryptographically secure 32-byte base64 key for INVECT_ENCRYPTION_KEY.
npx invect-cli secretConfiguration
The CLI reads from invect.config.ts in your project root:
import { defineConfig } from '@invect/core';
export default defineConfig({
database: {
type: 'sqlite',
connectionString: 'file:./dev.db',
},
plugins: [
// Your plugins here — their schemas are merged automatically
],
});