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.
pub add <dependency>
To add a dependency, hosted within your OnePub private repository, called mypackage run:
onepub pub add mypackagepub add -dev <dependency>
To add a dev dependency, hosted within your OnePub private repository, called mytestpackage run:
onepub pub add --dev mytestpackageLast updated
Was this helpful?
