https://github.com/shyndman/pubx
The missing pub commands
https://github.com/shyndman/pubx
dart-library package-management
Last synced: 6 months ago
JSON representation
The missing pub commands
- Host: GitHub
- URL: https://github.com/shyndman/pubx
- Owner: shyndman
- License: apache-2.0
- Created: 2019-07-17T21:16:59.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-22T00:28:19.000Z (over 5 years ago)
- Last Synced: 2025-04-02T01:35:49.433Z (6 months ago)
- Topics: dart-library, package-management
- Language: Dart
- Size: 53.7 KB
- Stars: 35
- Watchers: 1
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# pubx
The missing `pub` commands.
Search and view [pub.dev](https://pub.dev) packages from the command line.
## Installation & Usage
```sh
pub global activate pubx
pubx search json
```## Commands
### add
*Alias: a*
Adds the package to your `pubspec.yaml` file and runs `pub get`.
`pubx add {package-name}`
Additional options:
* `dev` - add this as a `dev_dependencies` entry
* `lock` - omits the `^` symbol to lock to the latest version
* `no-fetch` - prevents the add command from running `pub get` after adding a dependency### search
*Aliases: se, s, find*
Searches [pub.dev](https://pub.dev).
`pubx search {query}`
### updates
*Aliases: u*
Checks pub.dev for packages in your pubspec that have updated versions
`pubx updates`
### view
*Aliases: info, show, v*
Displays information about the specified package.
`pubx view {package-name}`
### which
*Aliases: w*
Displays the path for the local source code of the package stored in `.pub-cache`
`pubx which {package-name}`