Skip to content
Package management in Julia

Package management in Julia

February 28, 2026

Official documentation for Pkg.jl: https://pkgdocs.julialang.org/

Show which package(s) could be updated

using Pkg
Pkg.status(; outdated=true)

Make a Julia package

To create a minimal package:

pkg> generate JuliaHello

But it’s recommended to use PkgTemplates.jl for the CI, unit tests, documentation, etc.

You could also register your package to the general Julia registry to be accessible to Julia users.

Unit testing

You can have local dependencies for running tests in test/Project.toml without the need of extra and targets sections in the main project’s Project.toml.

Though the build-in unit-test framework is good, but Jive.jl provides more flexibilities. See TestJive.jl for code examples.

  • Discover unit testing jl files automatically.
  • Skip or select which test(s) to run.
  • Multiprocessing for faster runs.

Documentation

Use Documenter.jl to generate the documentation for Julia packages.

You need an SSH deploy key to deploy docs to GitHub pages.

using DocumenterTools
DocumenterTools.genkeys(user="you", repo="YourPackage.jl")

Continuous integration / delivery (CI/CD)

PkgTemplates.jl should set up the appropriate code structure for you. I would recommend to use GitHub to host Julia packages because

  • Running GH actions is unlimited for public repositories, with multiple operating systems running concurrently (matrix build).
  • Julia github actions are convenient to use.
  • Automation bots integrate better with GitHub. e.g. TagBot, Registerbot, and Compat Helper.
Last updated on