0Pricing
Dart Academy · Lesson

dart pub publish to pub.dev

Validate, version, and release your package.

Publishing Shares Your Work

When your package is ready, one command sends it to the world. Publishing puts your library on pub.dev so anyone can depend on it. 🌍

Version Before You Publish

Set a clear version in pubspec.yaml following semantic versioning. Major, minor, and patch numbers tell users exactly how much changed.

version: 1.0.0

All lessons in this course

  1. Structuring a Publishable Library
  2. Documenting With dartdoc Comments
  3. Linting, Formatting, and pana Score
  4. dart pub publish to pub.dev
← Back to Dart Academy