Skip to content

drizzle/init

Source

init.ts

Usage

bash
npm exec saf-workflow kickoff drizzle/init <name> <path>

To run this workflow automatically, tell the agent to:

  1. Navigate to the target package
  2. Run this command
  3. Follow the instructions until done

Checklist

When run, the workflow will:

  • Copy template files and rename placeholders.
  • Change working directory to services/example-service/example-db
  • Run npm install
  • Run npm run generate
  • Run mkdir -p data
  • Run touch data/.gitkeep
  • Run npm test

Help Docs

bash
Usage: npm exec saf-workflow kickoff drizzle/init <name> <path>

Create a Drizzle/SQLite database package

Arguments:
  name        The name of the database package to create (e.g., 'user-db' or 'analytics-db')
              Example: "@example-org/example-db"
  path        The path to the target directory for the database package (e.g., './services/example-db')
              Example: "./services/example-service/example-db"