@looma/prisma-cli
v0.1.7
Published
Prototype Prisma Compute CLI.
Readme
Prisma CLI Prototype
Prototype npm distribution for the Compute-focused Prisma CLI work in this repo.
Install:
pnpm add -D @looma/prisma-cliBasic flow:
pnpm prisma-cli auth login
pnpm prisma-cli app deploy --env DATABASE_URL=postgresql://example
pnpm prisma-cli app list-envMinimal Next.js smoke flow:
pnpm create next-app@latest my-app --yes
cd my-app
# add output: "standalone" in next.config.*
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 3000Minimal Bun smoke flow:
mkdir my-bun-app
cd my-bun-app
bun init --yes
pnpm add -D @looma/prisma-cliThen 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-envNotes:
- the official Prisma ORM package still owns the
prismaexecutable - this prototype intentionally exposes
prisma-cliso both CLIs can coexist in one app - the canonical command shape is still
app deploy, notdeploy prisma.config.tsis 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