Site icon Flutter Packages | Pub dev Packages – Flutter Mobile App World

Enhanced pub package commands

Enhanced pub package commands.

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

Download pub package commands source code on GitHub

https://github.com/leoafarias/pkg
Exit mobile version