pkg

Enhanced pub package commands.

  • Add latest resolvable package
  • Remove dependency
  • View package info
  • Like/unlike/view liked pub.dev packages
  • Improved conflict resolution (soon)
  • View unused dependencies

Installation

pub activate global pkg

Usage

Add

Easily add packages to your pubspec. By default pkg will try to resolve to the latest compatible version of the package to add to your project.

pkg add <package>

Remove

Will remove the package from your pubspec.

pkg remove <package>

View

Display information about a package

pkg view <package>

Unused

Display dependencies that are not referenced directly in your code.

pkg unused

Likes

Like a package

pkg like <package>

Unlike a package

pkg unlike <package>

View liked packages

pkg likes

GitHub

https://github.com/leoafarias/pkg