View as Markdown

Getting started

Publish your first Dart package to a Publy org in five steps.

1. Create an org

Sign in with GitHub at publy.dev and create an organization. You'll be its owner.

2. Create a personal token

Every member gets one personal token, always free regardless of plan. Go to Settings → API Tokens and create yours.

3. Authenticate the Dart CLI

dart pub token add https://publy.dev/o/your-org

Paste the personal token you just created when prompted.

4. Add the org as a hosted dependency

dependencies:
  my_package:
    hosted: https://publy.dev/o/your-org
    version: ^1.0.0

5. Publish

dart pub publish

That's it — your package is now live for your org, and any teammate can dart pub get it once they've added their own personal token.