New:Socket for Asana Is Now Available.Learn more
Get Started

@breadcrumb-sh/cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@breadcrumb-sh/cli

CLI for breadcrumb — schema migrations.

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

@breadcrumb-sh/cli

CLI for Breadcrumb: database migrations for the Breadcrumb schema. Installs the breadcrumb command.

npm i -D @breadcrumb-sh/cli
# or run without installing:
npx breadcrumb <command>

Commands

breadcrumb migrate

Applies the Breadcrumb schema directly to your database, creating tables and adding any missing columns.

breadcrumb migrate [--database <url|path>]

The target comes from --database, or $DATABASE_URL if omitted. A postgres:// or postgresql:// URL uses the Postgres adapter; anything else is treated as a SQLite file path.

breadcrumb migrate --database postgres://user:pass@localhost:5432/app
breadcrumb migrate --database ./prod.db
DATABASE_URL=postgres://… breadcrumb migrate

breadcrumb generate

Writes a reviewable .sql migration file instead of touching your database. Commit it and apply it with your own tooling.

breadcrumb generate [--database <url|path>] [--dialect postgres|sqlite] \
                    [--out <dir>] [--name <name>]
FlagDefaultDescription
--database$DATABASE_URLDiff against a live database, emitting only the delta.
--dialectnoneEmit a fresh full schema when no database is given (postgres or sqlite).
--out./breadcrumb/migrationsOutput directory.
--namebreadcrumbFilename suffix.

Pass either --database (to diff a live DB) or --dialect (for a fresh schema). Files are named <timestamp>_<name>.sql.

# Fresh schema for a new Postgres database
breadcrumb generate --dialect postgres

# Delta against a live database, custom name and dir
breadcrumb generate --database $DATABASE_URL --name init --out ./db/migrations

License

MIT

FAQs

Package last updated on 28 Jul 2026

Related posts