dart pub

Work with packages

Subcommands

NameDescription
addAdd a dependency to pubspec.yaml
cacheWork with the Pub system cache
depsPrint package dependencies
downgradeDowngrade packages in a Flutter project
getGet packages in a Flutter project
globalWork with Pub global packages
loginLog into pub.dev
logoutLog out of pub.dev
outdatedAnalyze dependencies to find which ones can be upgraded
publishPublish the current package to pub.dartlang.org
removeRemoves a dependency from the current package
upgradeUpgrade the current package's dependencies to latest versions
uploaderManage uploaders for a package on pub.dev

Options

NameDescription
-h, --helpPrint this usage information
--tracePrint debugging information when an error occurs
--no-traceDo not print debugging information when an error occurs
-v, --verboseShortcut for '--verbose=all