diff --git a/website/docs/introduction/getting_started.mdx b/website/docs/introduction/getting_started.mdx index 0bd66cb1a..a6c65ea46 100644 --- a/website/docs/introduction/getting_started.mdx +++ b/website/docs/introduction/getting_started.mdx @@ -72,8 +72,19 @@ Alternatively, you can manually add the dependency to your app from within your Then, install packages with `flutter pub get`. + ## Generating code from the terminal. You can now run the code-generator with{" "} flutter pub run build_runner watch. + This will generate main.g.dart + :::info + This command will monitor any @riverpod changes and regenerate code automatically. + :::info + :::tip + To generate code on an ad-hoc basis you can run the following: + ```sh + flutter pub build_runner build --delete-conflicting-outputs + ``` + :::