| # GENERATED BY: test/help_test.dart |
| |
| ## Section 0 |
| $ pub unpack --help |
| Downloads a package and unpacks it in place. |
| |
| For example: |
| |
| dart pub unpack foo |
| |
| Downloads and extracts the latest stable version of package:foo from pub.dev |
| in a directory `foo-<version>`. |
| |
| dart pub unpack foo:1.2.3-pre --no-resolve |
| |
| Downloads and extracts package:foo version 1.2.3-pre in a directory |
| `foo-1.2.3-pre` without running implicit `pub get`. |
| |
| dart pub unpack foo --output=archives |
| |
| Downloads and extracts the latest stable version of package:foo in a directory |
| `archives/foo-<version>`. |
| |
| dart pub unpack 'foo:{hosted:"https://my_repo.org"}' |
| |
| Downloads and extracts the latest stable version of package:foo from my_repo.org |
| in a directory `foo-<version>`. |
| |
| |
| Usage: pub unpack package-name[:descriptor] |
| -h, --help Print this usage information. |
| -f, --[no-]force Overwrite the target directory if it already exists. |
| -o, --output Download and extract the package in the specified directory. |
| (defaults to ".") |
| |
| Run "pub help" to see global options. |
| See https://dart.dev/tools/pub/cmd/pub-unpack for detailed documentation. |
| |