Skip to content

Commit d3834f7

Browse files
authored
docs: fix codegen CLI example commands (facebook#4348)
1 parent f1c538e commit d3834f7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/the-new-architecture/codegen-cli.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ Options:
2121
- Read `package.json` from the current working directory, generate code based on its codegenConfig.
2222

2323
```shell
24-
npx @react-native-codegen/cli codegen
24+
npx @react-native-community/cli codegen
2525
```
2626

2727
- Read `package.json` from the current working directory, generate iOS code in the location defined in the codegenConfig.
2828

2929
```shell
30-
npx @react-native-codegen/cli codegen --platform ios
30+
npx @react-native-community/cli codegen --platform ios
3131
```
3232

3333
- Read `package.json` from `third-party/some-library`, generate Android code in `third-party/some-library/android/generated`.
3434

3535
```shell
36-
npx @react-native-codegen/cli codegen \
36+
npx @react-native-community/cli codegen \
3737
--path third-party/some-library \
3838
--platform android \
3939
--outputPath third-party/some-library/android/generated

website/versioned_docs/version-0.76/the-new-architecture/codegen-cli.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ Options:
2121
- Read `package.json` from the current working directory, generate code based on its codegenConfig.
2222

2323
```shell
24-
npx @react-native-codegen/cli codegen
24+
npx @react-native-community/cli codegen
2525
```
2626

2727
- Read `package.json` from the current working directory, generate iOS code in the location defined in the codegenConfig.
2828

2929
```shell
30-
npx @react-native-codegen/cli codegen --platform ios
30+
npx @react-native-community/cli codegen --platform ios
3131
```
3232

3333
- Read `package.json` from `third-party/some-library`, generate Android code in `third-party/some-library/android/generated`.
3434

3535
```shell
36-
npx @react-native-codegen/cli codegen \
36+
npx @react-native-community/cli codegen \
3737
--path third-party/some-library \
3838
--platform android \
3939
--outputPath third-party/some-library/android/generated

0 commit comments

Comments
 (0)