Megamono

DOCUMENTATION

On this page
  1. Plan the database project
  2. Command options

megamono database

Syntax, options, and usage for the database command.

Create a named database project using Prisma or Drizzle, or connect an existing schema to your workspace tasks.

Plan the database project

bash
megamono add database primary --dry-run

Choose your adapter and review the schema location. Adding a database project does not provision a server or apply migrations. See database options for adopting and moving an existing schema.

Command options

Use the help below for exact syntax and options. You can also run megamono database --help in your terminal.

text
Usage: megamono add database [name] [options]

  --buildable          Fresh Prisma 7 ESM client library: generate then compile
                       Existing client configurations are never converted

Options:
  --adapter=prisma|drizzle
                       Select the database toolkit
  --directory=<path>   Select the Nx project root
  --project=<name>     Select the Nx project name
  --schema=<path>      Adopt an existing Prisma schema entry
  --relocate           Move the existing Prisma schema into the context project
  --client-output=<path>
                       Explicitly relocate generated client output too
  --target=<path>      Select the complete Playstack artifact target
  --scope=<scope>      Select the package and tag scope
  --dry-run            Preview without mutation
  --interactive=false  Disable prompts for automation
  --yes                Confirm a fully resolved non-interactive plan

Fresh projects default to libs/<adapter>/<name>. Existing Prisma layouts are adopted in place unless an explicit relocation operation is requested.

All CLI commands

Megamono

One repository system for the applications, tools, and people building together inside it.

BUILD

Get startedGuidesDocumentationCLI referenceCapabilitiesInference

SOURCE

GitHub ↗

MIT licensed

© 2026 Megamono

By

Commune Software