Pub Package Manager

You can use the pub tool to manage Dart packages. Pub is one of the tools that you get when you install the Dart SDK.

You can access the pub commands either through an IDE, such as WebStorm, or at the command line. Use whatever approach is most convenient.

Managing packages

Dart applications rely on packages. If your Dart app uses one or more library packages, then your app itself must be an application package.

How to



Pub commands

The pub tool provides the following commands:

For an overview of all the pub commands, see Pub Commands.


Troubleshooting Pub gives solutions to problems that you might encounter when using pub.