blob: ba1a59d1e0a2129c41fdbce861542f382a3915c9 [file]
# 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 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 running implicit `pub get`.
dart pub unpack foo --output=archives
Downloads and extracts latest stable version of package:foo in a directory
`archives/foo-<version>`.
dart pub unpack 'foo:{hosted:"https://my_repo.org"}'
Downloads and extracts latest stable version of package:foo from my_repo.org
in a directory `foo-<version>`.
Usage: pub unpack package-name[:constraint]
-h, --help Print this usage information.
-f, --[no-]force overwrites an existing folder if it exists
-o, --output Download and extract the package in this dir
(defaults to ".")
Run "pub help" to see global options.
See https://dart.dev/tools/pub/cmd/pub-unpack for detailed documentation.