blob: 5d32e5ef842d57054e9ecb5d3d36cae9b488285d [file] [log] [blame]
# GENERATED BY: test/help_test.dart
## Section 0
$ pub add --help
Add a dependency to pubspec.yaml.
Usage: pub add <package>[:<constraint>] [options]
-h, --help Print this usage information.
-d, --dev Adds package to the development dependencies instead.
--git-url Git URL of the package
--git-ref Git branch or commit to be retrieved
--git-path Path of git package in repository
--hosted-url URL of package host server
--path Local path
--sdk SDK source for package
--[no-]offline Use cached packages instead of accessing the network.
-n, --dry-run Report what dependencies would change but don't change
any.
--[no-]precompile Build executables in immediate dependencies.
-C, --directory=<dir> Run this in the directory<dir>.
Run "pub help" to see global options.
See https://dart.dev/tools/pub/cmd/pub-add for detailed documentation.