Skip to content

[CLI] react-native --help should work outside of a project #10784

@fahrradflucht

Description

@fahrradflucht

Description

react-native-cli (not local-cli) should have a --help flag so that react-native --help would work outside of a project.

Current Behaviour

$ react-native --help
You did not pass any commands, did you mean to run `react-native init`?

Expected Behaviour

At least this:

$ react-native --help

  react-native [options] [command]

  Commands:

  init                 generates a new react-native project

  Options:

    -h, --help             output usage information
    --config [string]  Path to the CLI configuration file

The flags that are available seem to be documented here.

Additional Information

  • React Native version: 0.36.1
  • react-native-cli: 1.0.0
  • Operating System: MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions