Prisma CLI Prototype
Prototype npm distribution for the Compute-focused Prisma CLI work in this repo.
Install:
pnpm add -D @looma/prisma-cli
Basic flow:
pnpm prisma-cli auth login
pnpm prisma-cli app deploy --env DATABASE_URL=postgresql://example
pnpm prisma-cli app list-env
Minimal Next.js smoke flow:
pnpm create next-app@latest my-app --yes
cd my-app
pnpm add -D @looma/prisma-cli
pnpm prisma-cli auth login
pnpm prisma-cli app deploy --app my-app
pnpm prisma-cli app deploy --app my-app --build-type nextjs --http-port 3000
Minimal Bun smoke flow:
mkdir my-bun-app
cd my-bun-app
bun init --yes
pnpm add -D @looma/prisma-cli
Then replace index.ts with a small Bun.serve(...) server and run:
pnpm prisma-cli app build
pnpm prisma-cli auth login
pnpm prisma-cli app deploy --app my-bun-app --env DATABASE_URL=postgresql://example
pnpm prisma-cli app list-env
Notes:
- the official Prisma ORM package still owns the
prisma executable
- this prototype intentionally exposes
prisma-cli so both CLIs can coexist in one app
- the canonical command shape is still
app deploy, not deploy
prisma.config.ts is project-only in this prototype and will be created as a plain object export when needed
If you want future-shaped local ergonomics in a test app, add:
{
"scripts": {
"prisma": "prisma-cli"
}
}
Then run:
pnpm prisma app deploy