> 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/installing/cli-integration/manually-add-publish_to.md). Agents can also search and read this documentation through its [MCP server](https://docs.onepub.dev/~gitbook/mcp).

# Manually add publish\_to

#### Manually edit pubspec.yaml

Login to OnePub and copy the \`publish\_to:\` URL from the profile page:

![](https://2164893338-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJazaE7yAHIXZjE9ucSqu%2Fuploads%2FOA5qcBDys1OUaWBEnJSp%2Fimage.png?alt=media\&token=68d71df3-ba83-4c1d-a521-5bdd958fff3c)

Add a `publish_to` key to your `pubspec.yaml`.

```yaml
name: onepub
version: 1.1.0

# Set onepub as the publish target.
publish_to: https://onepub.dev/api/xxxxxxx

```
