> 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/guides/cli-integration/pub-private.md).

# pub private

To publish a package to OnePub it must be marked as a private package by adding a `publish_to` key/value pair to your `pubspec.yaml`.

Whilst you can do that manually the `onepub pub private` command automates this for you.

To mark your package as private run:

```bash
cd mypackage
onepub pub private
```
