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