Skip to content

--mode flag is no longer mentionned in npm init adonisjs@latest -- -K="user/repo" --mode=git command #173

@MGouillardon

Description

@MGouillardon

Documentation Inconsistency: Starter Kit Git Mode Flag

Current Documentation

The documentation at URL states that private repositories can be downloaded using:

npm init adonisjs@latest -- -K="user/repo" --mode=git

Actual Behavior

The --mode=git flag is not recognized by the CLI, resulting in:

image

Expected Behavior

According to the CLI help (npm init adonisjs@latest -- --help), the correct way to handle private repositories is to use the -t, --token flag
image

npm init adonisjs@latest -- -K="organization/repo" -t="github_token"

Proposed Documentation Update

The documentation should be updated to:

  1. Remove the --mode=git reference
  2. Add information about using the -t, --token flag for private repositories
  3. Include examples for both personal and organization repositories

Additional Context

This issue affects users trying to set up new AdonisJS projects from private repositories, especially those hosted in organizations.

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