riverpod_cli 1.0.3 copy "riverpod_cli: ^1.0.3" to clipboard
riverpod_cli: ^1.0.3 copied to clipboard

A command line tool for Riverpod

Build Status codecov Star on Github License: MIT Discord Buy Me A Coffee

Riverpod


A command line for Riverpod, to help upgrade to newer versions of Riverpod.

Installation #

To install the migration tool, do:

dart pub global activate riverpod_cli

Usage #

To easily upgrade your Riverpod version:

  • open in a terminal the project you want to migrate. You should be located in the same folder than the project's pubspec.yaml .
  • Make sure that your code has no analysis errors otherwise the migration will have trouble running.
  • run:
    riverpod migrate
    

One example would be:

- import 'package:riverpod/all.dart';
+ import 'package:riverpod/riverpod.dart';

You can then press y to accept the change or n to reject it.