Add `--skip-install` (parity with `prisma orm init --skip-install`): no way to scaffold files without installing dependencies
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 58/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- nodejs, typescript
- Domain
- cli
Research direction
Start at the create-prisma CLI flag parsing and follow the install and post-install flow, using prisma orm init --skip-install as the behavioral reference. Verify that scaffolding still writes all files, skipped mode reports nextActions in both output modes, deploy is rejected, and normal installation behavior remains unchanged.
Written by the indexing model from the issue text.
Description
Summary
create-prisma has no way to generate a project without installing dependencies. prisma orm init has --skip-install; create-prisma rejects it:
$ npm create prisma@latest -- nest-ref --template nest --provider postgres --yes --skip-install
ERROR
Unrecognized flag: --skip-install in command create-prisma
([email protected], npm 11.6.2, Node 24.11.1, macOS.)
Why it matters
- Inspecting a template. I wanted to compare what
--template nestemits against a hand-wired NestJS 12 project. That needs the files, notnode_modules. A full install of the nest template pulls in@prisma/composer,alchemy,tsdownand friends, which takes minutes on a cold cache for something I was going to delete. - Agents and CI. The CLI already advertises itself as agent-friendly (
--yes,--json). Agents typically generate first and install once, after they have editedpackage.json(for example to add@nestjs/cli, or to pin a different@prisma/orm-postgresrc). Today that means "install, edit, install again". - Offline / monorepo scaffolding. In a pnpm or turborepo workspace, the install has to run from the workspace root anyway; the nested install
create-prismaperforms is wasted and can leave a stray lockfile. --jsonimplies deploy. The help text says--json"deploys unless --no-deploy", so the only non-interactive mode does more work by default, not less. A--skip-installflag is the natural counterpart.
Proposal
Add --skip-install (matching the prisma orm init flag name so the two CLIs read the same):
--skip-install Write the project files but do not install dependencies
(also skips the initial `prisma contract emit`, which needs them)
Behaviour:
- Scaffold all files exactly as today, including
package.json. - Skip the package-manager install step and the post-install steps that need
node_modules(prisma contract emit,prisma db init, skills sync). - Print the commands the user needs to run next, and include them in the
--jsonresult asnextActions, the same wayprisma orm initdoes:
{
"ok": true,
"packagesInstalled": { "status": "skipped" },
"contractEmitted": false,
"nextActions": [
{ "kind": "run-command", "command": "npm install" },
{ "kind": "run-command", "command": "npx prisma contract emit" }
]
}
--skip-installwith--deployshould be an error (deploy needs a build).
Alternatives
--package-manager none: less discoverable and does not express intent.- Generating into a temp dir and killing the process during install: what I actually did, which is not great.
- Dominant language
- TypeScript
- Stars
- 12
- Forks
- 0
- Avg merge
- 24m
- Merged PRs (30d)
- 9
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from prisma/create-prisma
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 55/100
prisma/create-prisma#112 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 5/5 Over a week Newbie friendliness 35/100
prisma/create-prisma#108 ·
Maintainers usually reply within 1 day
All issues in prisma/create-prisma
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
tashfeenahmed/freellmapi#2305 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
prime-radiant-inc/evener#8335 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vercel-labs/ui#1921 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 65/100
microsoft/monaco-editor#5626 ·
Maintainers usually reply within 1 day