@lssm-tech/app.cli-databasesapp.cli-databases
Multi-database command-line workflows for ContractSpec workspaces.
@lssm-tech/app.cli-databasesSource, release and verification context
Source snapshot bcc79fcc · Declared package version 5.0.4. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.
See where this package fits.
Follow a declared connection, inspect an import, then open the source guide when you need the detail.
Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.
@lssm-tech/app.cli-databases
Website: https://contractspec.io
CLI orchestrator for multi-database workflows. Coordinates operations across multiple database profiles defined in a project.
What It Does
- Lightweight CLI with no workspace bundle dependencies.
- Uses minimist for argument parsing, execa for subprocess execution.
- Delegates per-database work to
cli-database. - Related ContractSpec packages include
@lssm-tech/tool.tsdown,@lssm-tech/tool.typescript.
Running Locally
From packages/apps/cli-databases:
bun run devbun run build
Usage
npx databases --help
# or
bunx databases --helpArchitecture
- Lightweight CLI with no workspace bundle dependencies.
- Uses minimist for argument parsing, execa for subprocess execution.
- Delegates per-database work to
cli-database. src/cli.tsis the CLI entrypoint.src/index.tsis the root public barrel and package entrypoint.
Public Entry Points
- Binary
databasespoints todist/cli.js. - Export
.resolves through./dist/index.mjs. - Export
./cliresolves through./dist/cli.mjs. - Export
./profileresolves through./dist/profile.mjs. - Export
./*resolves through./*.
Local Commands
bun run dev— bun run build --watchbun run build— tsdownbun run lint— bun run lint:fixbun 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 --verbosebun run publish:pkg:canary— bun publish:pkg --tag canarybun run clean— rm -rf distbun run test— standalone host test: spawnssrc/cli.tsagainst a fixture profile with recordingprisma/databasestubs on PATH (fan-out, fail-fast, profile and usage errors)
Recent Updates
- Replace eslint+prettier by biomejs to optimize speed.
Notes
- Keep this as a thin orchestrator — business logic belongs in
cli-database. - Do not change CLI argument signatures without updating docs and CI scripts.
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.
5 entriesThese are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.
5 imports
@lssm-tech/app.cli-databases/blueprint@lssm-tech/app.cli-databases/cli@lssm-tech/app.cli-databases/profile@lssm-tech/app.cli-databases/*No export paths match this search.
Dependencies and related packages.
Runtime dependencies 3
- @lssm-tech/lib.contracts-spec
- workspace:^
- execa
- ^10.0.1
- minimist
- ^1.2.8
Development dependencies 3
- @lssm-tech/tool.tsdown
- workspace:*
- @lssm-tech/tool.typescript
- workspace:*
- 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.
rm -rf distbun publish --tolerate-republish --ignore-scripts --verbosebun publish:pkg --tag canarybun ../../../scripts/tsdown.mjsbun run build --watchbun run lint:fixnode ../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../scripts/biome.cjs check --write .node ../../../scripts/biome.cjs check .bun test