The offical support site for OnePub the hosted private package repository for Dart and Flutter.
OnePub is to Dart what NPM is to JavaScript and JFrog to Java.
With Google deprecating the pub command in favour of using flutter pub
or dart pub
we have created a replacement opub
command for the lazy ones amoungst us (like me).
Our opub command is a very thin wrapper for flutter pub
and dart pub
and simply
passes any command line arguments through to flutter pub
or dart pub
.
The opub command detects if your project is a flutter (checks your pubspec.yaml) if found runs:
flutter pub <args>
If you have a non-flutter project then we run
dart pub <args>
So to use opub command:
dart pub global activate onepub
opub get
or
opub upgrade --major-version
or
any other pub subcommands and arguments
Enjoy.
Details on our Security Policy