> For the complete documentation index, see [llms.txt](https://docs.onepub.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.onepub.dev/faq/how-to-publish-a-private-package.md).

# How to publish a private package

Packages are published using command-line tools.

```bash
# 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](broken://pages/PbE2uXNQqgvs4v6pk07n).
