Skip to content

Commit 2d7b2aa

Browse files
authored
Adding npx to fix blocking error for customers (aws-amplify#6737) (aws-amplify#6738)
Added npx to the amplify sandbox and amplify generate graphql-client-code commands in six places.
1 parent a89e2c4 commit 2d7b2aa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/pages/gen2/start/mobile-support/index.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Amplify gen2 provides a new way to develop applications. Now you are able to run
9292
</Callout>
9393

9494
```bash
95-
amplify sandbox --config-format=json-mobile --config-out-dir=app/src/main/res/raw
95+
npx amplify sandbox --config-format=json-mobile --config-out-dir=app/src/main/res/raw
9696
```
9797

9898
### Adding Authentication
@@ -241,7 +241,7 @@ export const data = defineData({
241241
To generate the model classes out of GraphQL schema, you can run the following command:
242242

243243
```bash
244-
amplify generate graphql-client-code --format=modelgen --model-target=java --out=app/src/main/java
244+
npx amplify generate graphql-client-code --format=modelgen --model-target=java --out=app/src/main/java
245245
```
246246

247247
Now you can see that the model classes are generated under app/src/main/java/com/amplifyframework/datastore/generated/model folder.
@@ -524,7 +524,7 @@ Running this command will scaffold a lightweight Amplify project in your current
524524
Amplify gen2 provides a new way to develop applications. Now you are able to run your application with a sandbox environment and generate the configuration files for your application. To run your application with a sandbox environment, you can run the following command:
525525

526526
```bash
527-
amplify sandbox --config-format=dart --config-out-dir=lib
527+
npx amplify sandbox --config-format=dart --config-out-dir=lib
528528
```
529529

530530
### Adding Authentication
@@ -654,7 +654,7 @@ export const data = defineData({
654654
To generate the model classes out of GraphQL schema, you can run the following command:
655655

656656
```bash
657-
amplify generate graphql-client-code --format=modelgen --model-target=dart --out=lib/models
657+
npx amplify generate graphql-client-code --format=modelgen --model-target=dart --out=lib/models
658658
```
659659

660660
This will generate dart models under lib/models folder.
@@ -906,7 +906,7 @@ Running this command will scaffold a lightweight Amplify project in your current
906906
Amplify gen2 provides a new way to develop applications. Now you are able to run your application with a sandbox environment and generate the configuration files for your application. To run your application with a sandbox environment, you can run the following command:
907907

908908
```bash
909-
amplify sandbox --config-format=json-mobile
909+
npx amplify sandbox --config-format=json-mobile
910910
```
911911

912912
Once the sandbox environment is running, you would also generate the configuration files for your application. However, Xcode won't be able to recognize them. For recognizing the files, you need to drag and drop the generated files to your project.
@@ -1034,7 +1034,7 @@ export const data = defineData({
10341034
To generate the model classes out of GraphQL schema, you can run the following command:
10351035

10361036
```bash
1037-
amplify generate graphql-client-code --format=modelgen
1037+
npx amplify generate graphql-client-code --format=modelgen
10381038
```
10391039

10401040
Move the generated files to your project. You can do this by dragging and dropping the files to your project.

0 commit comments

Comments
 (0)