The missing pub
commands.
Search and view pub.dev packages from the command line.
pub global activate pubx
pubx search json
Alias: a
Adds the package to your pubspec.yaml
file and runs pub get
.
pubx add {package-name}
Additional options:
dev
- add this as adev_dependencies
entrylock
- omits the^
symbol to lock to the latest versionno-fetch
- prevents the add command from runningpub get
after adding a dependency
Aliases: se, s, find
Searches pub.dev.
pubx search {query}
Aliases: u
Checks pub.dev for packages in your pubspec that have updated versions
pubx updates
Aliases: info, show, v
Displays information about the specified package.
pubx view {package-name}
Aliases: w
Displays the path for the local source code of the package stored in .pub-cache
pubx which {package-name}