Skip to content

Clarify specific CLI and RN versions in init command #4638

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/get-started-without-a-framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ If you are having trouble with iOS, try to reinstall the dependencies by running

#### [Optional] Using a specific version or template

If you want to start a new project with a specific React Native version, you can use the `--version` argument:
If you want to start a new project with a specific CLI and React Native version, you can use the `--version` argument:

```shell
npx @react-native-community/[email protected] init AwesomeProject --version X.XX.X
npx @react-native-community/[email protected] init AwesomeProject --version Y.YY.Y
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@szymonrybczak should we replace here to just be npx @react-native-community/cli@latest init?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my company we use Jfrog Artifactory as a proxy for all our npm packages, and I don't know if that is the limiting factor, but the @latest version gives, and has always given me, "Invalid Version: latest", so I would prefer if you kept this guide for initializing specific RN versions with the CLI.

```

You can also start a project with a custom React Native template with the `--template` argument, read more [here](https://github.com/react-native-community/cli/blob/main/docs/init.md#initializing-project-with-custom-template).
Expand Down