pub add
The
onepub pub add
command serves the same purpose as the dart pub add
command in that it adds a named dependency to your pubspec.yaml
file. The difference is that the dependency includes a hosted URL which indicates that the dependency is hosted on OnePub.
To add a dependency, hosted within your OnePub private repository, called
mypackage
run:onepub pub add mypackage
To add a dev dependency, hosted within your OnePub private repository, called
mytestpackage
run:onepub pub add --dev mytestpackage
Last modified 1yr ago