Skip to content

docs: align init command flags with CLI options#2823

Open
daniel-chen-j wants to merge 1 commit into
react-native-community:mainfrom
daniel-chen-j:docs/fix-init-command-flags
Open

docs: align init command flags with CLI options#2823
daniel-chen-j wants to merge 1 commit into
react-native-community:mainfrom
daniel-chen-j:docs/fix-init-command-flags

Conversation

@daniel-chen-j

Copy link
Copy Markdown

Summary

Docs-only fix for docs/commands.md init options so they match packages/cli/src/commands/init/index.ts:

  • Correct --pm default to npm
  • Fix --skip-git-init / --replace-directory option signatures
  • Document --platform-name
  • Fix example invocations (@react-native-community/cli, template@0.74.0)

No open docs issue was found; happy to link one if maintainers prefer.

Test plan

  • Diff options list against rnc-cli init --help / source index.ts
  • Confirm example npx commands resolve the scoped package name

@daniel-chen-j
daniel-chen-j requested a review from thymikee as a code owner July 20, 2026 14:44
@github-actions github-actions Bot added the docs Documentation change label Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant