How to publish a private package

Packages are published using command-line tools.

# install onepub
dart pub global activate onepub

# login to one pub
onepub login

# cd into the directory of the package you want to publish
cd mypackage

# enable private publishing for your package
onepub pub private

# publish the package to onepub using the standard dart publish command.
dart pub publish

You can read full details on the publishing workflow.

Last updated