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
Bash

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>
Bash

Remove

Will remove the package from your pubspec.

pkg remove <package>
Bash

View

Display information about a package

pkg view <package>
Bash

Unused

Display dependencies that are not referenced directly in your code.

pkg unused
Bash

Likes

Like a package

pkg like <package>
Bash

Unlike a package

pkg unlike <package>
Bash

View liked packages

pkg likes
Bash

GitHub

https://github.com/leoafarias/pkg