
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A Bridge CLI to manage Cloudflare D1 migrations with Prisma
npm install -g d1-prisma
# or
yarn global add d1-prisma
# or
pnpm add -g d1-prisma
# or
bun add -g d1-prisma
To install dependencies:
bun install
To build:
bun run build
To run from source:
bun run src/index.ts
This project was created using bun init in bun v1.3.3. Bun is a fast all-in-one JavaScript runtime.
First, ensure you have a wrangler.toml or wrangler.jsonc file in your project root with your D1 database configuration:
# wrangler.toml
[[d1_databases]]
binding = "DB"
database_name = "my-database"
database_id = "your-database-id"
To create a new migration:
d1-prisma create --name "add-users-table"
Options:
--name, -n: Migration name--schema: Path to Prisma schema (default: "./prisma/schema.prisma")--database, -d: Specific database to useThe CLI will:
To apply migrations locally:
d1-prisma apply
To apply migrations to remote database:
d1-prisma apply --remote
After applying, the CLI automatically regenerates your Prisma client.
npm install -g wrangler)npm install -g prisma)The tool automatically detects your configuration files:
wrangler.jsoncwrangler.tomlIf multiple D1 databases are configured, you'll be prompted to select one.
build: Build the project to dist/ directorydev: Watch mode for developmentstart: Run the built CLIThe project consists of:
src/index.ts: Main CLI entry pointsrc/utils/config.ts: Configuration file parsingsrc/utils/shell.ts: Shell command utilitiesContributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.
If you encounter any issues or have questions, please open an issue on GitHub.
FAQs
Bridge CLI to manage Cloudflare D1 migrations with Prisma
The npm package d1-prisma receives a total of 2 weekly downloads. As such, d1-prisma popularity was classified as not popular.
We found that d1-prisma demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.