app.cli-databases
Multi-database command-line workflows for ContractSpec workspaces.
appsappv5.0.4stableservernode
@lssm-tech/app.cli-databasesbun add @lssm-tech/app.cli-databasesManifest declarations describe the current workspace; they do not verify registry publication or runtime execution.
Package guide
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
bash
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.
Relationships
THIS PACKAGEapp.cli-databases5 import paths
Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.
3 declarations
minimist^1.2.8
execa^10.0.1
@lssm-tech/lib.contracts-specworkspace:^
Read the package manual ↗
Declared capabilities
This manifest does not declare a capability catalogue. Use the guide, import map and source to assess the package.
Scripts
cleanrm -rf distpublish:pkgbun publish --tolerate-republish --ignore-scripts --verbosepublish:pkg:canarybun publish:pkg --tag canarybuildbun ../../../scripts/tsdown.mjsdevbun run build --watchlintbun run lint:fixlint:fixnode ../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../scripts/biome.cjs check --write .lint:checknode ../../../scripts/biome.cjs check .testbun test