You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes a developer wants to script, write guide, or like the cli and in those cases passing flags to fulfill prompts is desired. Example:
❯ prisma2 init myblog
What kind of database do you want to introspect?
──────────────────────────────────────────────────
❯ SQLite Beginner's choice
❯ MySQL MySQL compliant databases like MySQL or MariaDB
❯ Postgres PostgreSQL database
Example flag
prisma2 init --db postgres
I left the issue more general than about just init because I am assuming there are other instances.
Reacted by Nikolas, Jan Piotrowski, Colten Rouska, Robin Dürhager and Vignesh T.V.
Activity
[-]non-interactive cli flags[/-][+]cli flags for non-interactive[/+]rizowski commentedon Aug 19, 2019
janpio commentedon Aug 19, 2019
janpio commentedon Dec 22, 2019
janpio commentedon Jan 16, 2020
We will replace the existing
initwizard with a much simpler version in2.0.0-preview020, so this problem will be gone after that 🚀Make prisma2 an optional peer dependency (#313)
Make prisma2 an optional peer dependency (#313)