riverpod_cli 1.0.3 icon indicating copy to clipboard operation
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.

9
likes
90
pub points
39%
popularity

Publisher

unverified uploader

A command line tool for Riverpod

Homepage
Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

analyzer, args, codemod, collection, glob, meta, path, pub_semver, pubspec_parse

More

Packages that depend on riverpod_cli