The offical support site for OnePub.
OnePub is a hosted (SAAS) private package repository for Dart and Flutter.
OnePub is to Dart what NPM is to JavaScript.
To take it for a spin by registering at: https://onepub.dev
Read our blogs on getting started publishing to OnePub.
Full documentation is available at:
To install onepub run:
dart pub global activate onepub
onepub login
The onepub login
command will register you with OnePub.
Read our FAQ for a collection of howtos.
Raise a github issue for bugs or features.
For general dicsussions and 'how to' information join our github discussion groups.
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).
You will also need to use opub to publish to OnePub if you are using a version of Dart pre 2.12.
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