appPackage manifestv6.0.4

app.cli-database

Command-line database tooling for ContractSpec-managed schemas and operations.

@lssm-tech/app.cli-database
Source, release and verification context

Source snapshot bcc79fcc · Declared package version 6.0.4. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.

Package source ↗ Manifest ↗
servernode
EXPLORE THE PACKAGE

See where this package fits.

Follow a declared connection, inspect an import, then open the source guide when you need the detail.

THIS PACKAGEapp.cli-databaseapps

Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.

6 declaracionesSELECT TO INSPECT

@lssm-tech/app.cli-database

Website: https://contractspec.io

CLI tool for contract-source-first Drizzle/PostgreSQL database management: generate, migrate, seed, and schema operations.

What It Does

  • Uses @lssm-tech/lib.schema for schema definitions.
  • Generates Drizzle/PostgreSQL artifacts from portable ContractSpec database entities.
  • Commands dispatched via minimist argument parsing.
  • Related ContractSpec packages include @lssm-tech/lib.schema, @lssm-tech/tool.tsdown, @lssm-tech/tool.typescript.

Running Locally

From packages/apps/cli-database:

  • bun run dev
  • bun run build

Usage

bash
npx database --help
# or
bunx database --help

Arquitectura

  • Uses @lssm-tech/lib.schema for schema definitions.
  • Generates Drizzle/PostgreSQL artifacts from portable ContractSpec database entities.
  • Commands dispatched via minimist argument parsing.
  • src/cli.ts is the CLI entrypoint.
  • src/index.ts is the root public barrel and package entrypoint.

Public Entry Points

  • Binary database points to dist/cli.js.
  • Export . resolves through ./dist/index.mjs.
  • Export ./cli resolves through ./dist/cli.mjs.
  • Export ./commands/check resolves through ./dist/commands/check.mjs.
  • Export ./commands/generate resolves through ./dist/commands/generate.mjs.
  • Export ./commands/import resolves through ./dist/commands/import.mjs.
  • Export ./commands/migrate resolves through ./dist/commands/migrate.mjs.
  • Export ./commands/schema-compose resolves through ./dist/commands/schema-compose.mjs.
  • Export ./commands/schema-generate resolves through ./dist/commands/schema-generate.mjs.
  • Export ./commands/seed resolves through ./dist/commands/seed.mjs.
  • Export ./lib/config resolves through ./dist/lib/config.mjs.
  • The package publishes 12 total export subpaths; keep docs aligned with package.json.

Database Workflow Boundary

Prisma support is retired for supported workflows. Broad root workflows such as lint:fix, typecheck, and release checks must not run Prisma implicitly; use the explicit Drizzle/PostgreSQL packages/apps/cli-database commands below when a database schema workflow is required.

Local Commands

  • bun run dev — bun run build --watch
  • bun run build — tsdown
  • bun run lint — bun run lint:fix
  • bun run lint:check — biome check .
  • bun run lint:fix — biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .
  • bun run publish:pkg — bun publish --tolerate-republish --ignore-scripts --verbose
  • bun run publish:pkg:canary — bun publish:pkg --tag canary
  • bun run clean — rm -rf dist
  • bun run test — standalone host test: spawns src/cli.ts in a throwaway project (schema generate/compose, check, Drizzle config, dry-run and refused migrations, status, seed) with no database
  • bun run dbs:generate — database generate --dry-run
  • bun run dbs:migrate — database migrate:dev --dry-run
  • bun run dbs:deploy — database migrate:deploy --dry-run
  • bun run dbs:status — database migrate:status
  • bun run dbs:seed — database seed

Recent Updates

  • Replace eslint+prettier by biomejs to optimize speed.

Notes

  • Do not change CLI argument signatures without updating docs and CI scripts.
  • Drizzle/PostgreSQL artifact generation is contract-source-first — test migrations carefully.

Declared capabilities.

This manifest does not declare a capability catalogue. Use the guide, import map and source to assess the package.

Imports and export paths.

14 entries

These are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.

14 importaciones

@lssm-tech/app.cli-database
./dist/index.mjs · source target not verified
@lssm-tech/app.cli-database/blueprint
./dist/blueprint.mjs · source target not verified
@lssm-tech/app.cli-database/cli
./dist/cli.mjs · source target not verified
@lssm-tech/app.cli-database/commands/check
./dist/commands/check.mjs · source target not verified
@lssm-tech/app.cli-database/commands/generate
./dist/commands/generate.mjs · source target not verified
@lssm-tech/app.cli-database/commands/import
./dist/commands/import.mjs · source target not verified
@lssm-tech/app.cli-database/commands/migrate
./dist/commands/migrate.mjs · source target not verified
@lssm-tech/app.cli-database/commands/schema-compose
./dist/commands/schema-compose.mjs · source target not verified
@lssm-tech/app.cli-database/commands/schema-generate
./dist/commands/schema-generate.mjs · source target not verified
@lssm-tech/app.cli-database/commands/seed
./dist/commands/seed.mjs · source target not verified
@lssm-tech/app.cli-database/lib/client
./dist/lib/client.mjs · source target not verified
@lssm-tech/app.cli-database/lib/config
./dist/lib/config.mjs · source target not verified
@lssm-tech/app.cli-database/lib/schema-config
./dist/lib/schema-config.mjs · source target not verified
@lssm-tech/app.cli-database/*
./* · source target not verified

Dependencies and related packages.

Runtime dependencies 6
drizzle-kit
catalog:data
drizzle-orm
catalog:data
execa
^10.0.1
minimist
^1.2.8
Development dependencies 4
@types/minimist
^1.2.5
tsdown
catalog:build

Package scripts.

Commands declared by this package. Review its setup requirements before running them; no command here was executed by this review.

cleanrm -rf dist
publish:pkgbun publish --tolerate-republish --ignore-scripts --verbose
publish:pkg:canarybun publish:pkg --tag canary
buildbun ../../../scripts/tsdown.mjs
devbun run build --watch
lintbun run lint:fix
lint:fixnode ../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../scripts/biome.cjs check --write .
lint:checknode ../../../scripts/biome.cjs check .
dbs:generatedatabase generate --dry-run
dbs:migratedatabase migrate:dev --dry-run
dbs:deploydatabase migrate:deploy --dry-run
dbs:statusdatabase migrate:status
dbs:seeddatabase seed --dry-run
schema:generatedatabase schema:generate
schema:composedatabase schema:compose
testbun test
Tu vista

Make room for your context.

Shape the presentation around this moment. You can change it whenever you need.

Tu contexto

The different parts of you

Choose a starting point

Una mezcla útil de contexto, imágenes y orientación discreta.

Tune each dimension
Each dimension can change independently. Product permissions and available actions stay unchanged.

Support the way you begin and return

Tune your support

Comodidad de lectura

Elige tu idioma

El idioma de la interfaz solo cambia el texto. Los mercados, precios y flujos de trabajo conservan sus propios ajustes.

Cobertura de traducción

Parte del contenido se muestra en inglés.

Navegación151
Grafo616
Categorías188
Portafolio332
Ejemplos2035
Vista previa de la fuente41

Se añadirán más traducciones a medida que se revise el contenido.

Esta preferencia se guarda en este navegador.

Buscar en el sitio web

Puntos de partida útiles

Sin resultados. Prueba una frase más corta, un nombre de operación u otro ámbito de búsqueda.

UN POCO DE ESPACIO PARA EXPLORAR

Encuentra algo que explorar.

Abre una vista detallada en esta página, prueba otra perspectiva o sigue el detalle a su propia página.

Cómo funcionan las vistas previas y los controles
01

Mirar antes de salir

Pasa el cursor por un enlace o enfócalo con Tab para ver una vista previa. Hacer clic en el enlace original o pulsar Intro siempre abre su destino.

02

Mantener el contexto

Entra en la vista previa para explorar sus secciones. Usa Alt + ↓ desde un enlace enfocado para entrar con el teclado. Escape la cierra.

03

Abrir las posibilidades

Las filas desplegables, las perspectivas y los controles destacados revelan más. Tu vista cambia la comodidad de lectura y el contexto que exploras.

Un botón separado para mirar más de cerca

Muestra pequeños botones de vista previa junto a los enlaces donde haya espacio. Toca el ojo para inspeccionar o el enlace para ir directamente. Esta elección permanece en esta pestaña.

No se recoge historial de navegación. El movimiento reducido sigue tu dispositivo y Tu vista.