Skip to content

cli flags for non-interactive #313

Closed

Description

@jasonkuhrt

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.

Activity

  1. changed the title [-]non-interactive cli flags[/-] [+]cli flags for non-interactive[/+] on Aug 3, 2019
  2. added
    kind/feature
    on Aug 5, 2019
  3. rizowski commented on Aug 19, 2019

    @rizowski
  4. janpio commented on Aug 19, 2019

    @janpio
  5. janpio commented on Dec 22, 2019

    @janpio
  6. janpio commented on Jan 16, 2020

    @janpio
    Contributor

    We will replace the existing init wizard with a much simpler version in 2.0.0-preview020, so this problem will be gone after that 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/featuretopic: clitopic: prisma init

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions