Skip to content

Ignores --gitInit and --installDeps? #107

@peteruithoven

Description

@peteruithoven

Describe the Bug

The directus-template-cli seems to ignore the --gitInit and --installDeps arguments.

npx directus-template-cli init --help                                                             
Initialize a new Directus + Frontend monorepo using official or community starters.

USAGE
  $ directus-template-cli init [DIRECTORY] [--frontend <value>] [--gitInit] [--installDeps] [--overwriteDir] [--template <value>] [--disableTelemetry]

ARGUMENTS
  DIRECTORY  [default: .] Directory to create the project in

FLAGS
  --disableTelemetry   Disable telemetry
  --frontend=<value>   Frontend framework to use (e.g., nextjs, nuxt, astro)
  --[no-]gitInit       Initialize a new Git repository
  --[no-]installDeps   Install dependencies automatically
  --[no-]overwriteDir  Override the default directory
  --template=<value>   Template name (e.g., simple-cms) or GitHub URL (e.g., https://github.com/directus-labs/starters/tree/main/simple-cms)

DESCRIPTION
  Initialize a new Directus + Frontend monorepo using official or community starters.

EXAMPLES
  $ directus-template-cli init

  $ directus-template-cli init my-project

  $ directus-template-cli init --frontend=nextjs --template=simple-cms

  $ directus-template-cli init my-project --frontend=nextjs --template=simple-cms
npx directus-template-cli init my-project --frontend=nextjs --gitInit --installDeps --template=cms
(\   /)
 \\_//
 ( Õ Õ) "Let's create a new Directus project!"
C(")(")
┌  Directus Template CLI - Create Project
│
◇  Would you like to install project dependencies automatically?
│  Yes
│
◇  Initialize a new Git repository?
│  Yes
│
◇  Docker containers running!

To Reproduce

Run

npx directus-template-cli init my-project --frontend=nextjs --gitInit --installDeps --template=cms

You will notice it will still ask about these 2 steps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions