react-native-community / cli

The React Native Community CLI - command line tools to help you build RN apps
MIT License
2.41k stars 905 forks source link

feat: add `--version` option #2460

Closed szymonrybczak closed 4 months ago

szymonrybczak commented 4 months ago

Summary:

Add --version option, we already have abbreviation one -v.

Test Plan:

  1. Clone the repository and do all the required steps from the Contributing guide
  2. Run this command:
node /path/to/react-native-cli/packages/cli/build/bin.js --version
  1. Should output current CLI version.

Checklist