distlift
distlift is a small command-line helper for people who ship software packages. If your project lives in Git and you use a version number (like 1.2.3) that you bump when you release, distlift can automate the boring steps: update the version in your project files, refresh a changelog from recent commits, create a Git commit and tag, and optionally push to your remote or build and publish installable packages.
You run it from a terminal in your project folder. It is aimed at Python and JavaScript projects out of the box; advanced users can extend it with plugins.
What you need first
- Python 3.11 or newer installed on your computer.
- Your code in a Git repository (distlift talks to Git for tags and history).
- A habit of running terminal commands from the folder that contains your project (the “repo root”).
Install
Open a terminal and run:
pip install distlift
If you use pip only for your user account, that is fine. After install, you
should be able to run:
distlift --help
If that prints help text, the tool is on your path. You can also run it as
python -m distlift if your Python environment prefers that style.
The simplest workflow
From your project’s root directory, with a clean saved state in Git (no half-finished edits you are not ready to commit), run:
distlift
With no extra words, distlift performs a patch release: it bumps the
last part of the version (e.g. 1.0.4 → 1.0.5), updates your manifest
(such as pyproject.toml or package.json), can update CHANGELOG.md when
that is enabled, then commits, tags, and pushes according to your settings.
You can pass one of these on the same command instead: --major,
--minor, --patch, or --version / -v with an exact version (for example
distlift --minor or distlift --version 2.0.0). You cannot combine two of
them on one run.
Practice run (nothing is written to Git):
distlift --dry-run
That only shows what would happen—safe when you are learning.
Skip the changelog for one run:
distlift --no-changelog
Keep the changelog but do not open an editor to tweak the new entry:
distlift --no-changelog-editor
After a successful release, build installable files locally:
distlift --build
Build and upload to a registry (only when you have publish credentials and configuration set up):
distlift --publish
More detail in the log:
distlift -V
or
distlift --verbose
Work on another folder without cd there:
distlift --repo-root "C:\path\to\your\repo"
(Use the path style your operating system expects.)
Choosing how big the version jump is
The bare distlift shortcut (see above) accepts --major, --minor,
--patch, or --version / -v the same way as distlift release simple.
When you prefer the explicit subcommand, use:
distlift release simple --patch
distlift release simple --minor
distlift release simple --major
distlift release simple --version 2.0.0
You must pick exactly one of those version options for release simple.
Add --dry-run anytime to rehearse.
Monorepos (several packages in one repository)
If your repository is configured for multiple packages, each with its own version and tag, use:
distlift release monorepo --all-changed
or release specific names:
distlift release monorepo --package my-lib --package my-app
You can pass --major, --minor, --patch, or --version /
-v on release monorepo as well (at most one per run). If you pass none
of these, --default-bump controls the bump kind (it defaults to patch).
Unified version: --version 2.0.0 sets that same next version on
every package included in that release (still respecting each package’s
version format). On an interactive terminal, distlift asks you to confirm
before continuing. In non-interactive environments (typical CI), no prompt is
shown.
Add --dry-run to preview what would happen without writing to Git.
Dependent package updates
When you release package a, distlift can update dependency declarations on
other packages in the same monorepo (for example b and c that depend on
a) before the release commit. If b is part of the same release, its
tagged manifest will contain both b's new version and the new constraint on
a.
Enable built-in scanning in distlift.toml:
[dependency_updates]
enabled = true
include_current_monorepo = true
python_version_template = ">={version}"
javascript_version_template = "^{version}"
[[dependency_updates.rules]]
package = "a"
projects = ["b", "c"]
version_template = "=={version}"
Per-package switches (monorepo only; ignored in simple mode):
[[monorepo.packages]]
name = "a"
path = "packages/a"
dependency_updates_trigger_enabled = true
dependency_updates_receive_enabled = true
Outside a release, apply the same logic manually:
distlift deps autoupdate --released a=1.2.0
Use --dry-run to preview changes. When updates run, the
dependencies_autoupdated hook fires (configure under [hooks]). Hook
subprocesses also receive:
DISTLIFT_DEPENDENCY_UPDATE_COUNT— number of declarations changedDISTLIFT_DEPENDENCY_UPDATE_PROJECTS— dependent project names (sorted)DISTLIFT_DEPENDENCY_UPDATE_FILES— manifest paths updated (sorted)DISTLIFT_DEPENDENCY_UPDATE_DEPENDENCIES— dependency names changed (sorted)DISTLIFT_DEPENDENCY_UPDATE_TRIGGERS— released packages that triggered updates (sorted)
Interactive third-party upgrades (requires a real terminal):
distlift deps upgrade
For each project source (for example frontend and backend in a
monorepo), distlift shows a scrollable dependency list. Use Up/Down
to move, Space to cycle available versions (latest stable by default,
then newer releases, then skip), Left/Right to toggle stable vs skip,
Enter to approve a source, and Esc to cancel. After all sources,
confirm once; distlift updates manifest declarations, installs packages
into the active environment (Python venv or node_modules), and
refreshes supported lock files when --no-install is used
(package-lock.json, pnpm-lock.yaml, yarn.lock).
Use --dry-run to rehearse without writing files. Use --no-install
to update manifests and lock files only. Non-interactive environments
should continue to use distlift deps autoupdate.
Custom rules in a plugin: scaffold a small pip-installable project:
distlift plugins create-dependency-updater my-updater \
--output plugins/my-updater \
--watch-package a \
--project b
Install with python -m pip install -e plugins/my-updater, or load from a
directory without installing:
[plugins]
directories = ["plugins/my-updater"]
Deploy marker tags (CI)
When one Git tag should trigger deployment for the whole repo (for example after several package versions were released), use:
distlift deploy
That creates the next tag deploy_1, deploy_2, … at HEAD and pushes it to
each configured remote. The working tree must be clean. The prefix is
configurable (default deploy): see [deploy].tag_prefix in TOML or
DISTLIFT_DEPLOY_TAG_PREFIX.
Use --dry-run to print the planned tag without creating it. With
deploy.verify_indexes or --verify-indexes, distlift checks that each
package’s manifest version is visible on PyPI (python -m pip index …) or
npm (npm view …), using your normal pip / npm configuration. See also
DISTLIFT_DEPLOY_VERIFY_INDEXES.
distlift can maintain a Keep a Changelog-style CHANGELOG.md using your
Git history (and conventional commit messages when enabled).
See what would be added for a version, without saving:
distlift changelog preview --version 1.2.3
Write or update the changelog file for that version:
distlift changelog update --version 1.2.3
By default this may open your text editor so you can polish the entry; add
--no-editor to skip that step.
Create a starter changelog file if you do not have one:
distlift changelog init
In monorepo setups, many changelog commands accept --package <name> so the
right subfolder is used.
Configuration commands
Show the settings distlift is actually using (and where each value came from):
distlift config show
Check that configuration is valid:
distlift config validate
Create or open config files for your user account or the whole machine (these create starter files or open them in your editor):
distlift config init-user
distlift config edit-user
distlift config init-system
distlift config edit-system
System-level files on Windows often live under shared “Program Data” folders and may need administrator rights to edit.
Choosing the text editor
Whenever distlift needs to open a file in an editor (when polishing a
generated changelog entry, or when you run distlift config edit-user or
distlift config edit-system), it looks for a command to launch in this
order:
- The
GIT_EDITORenvironment variable (the same one Git itself uses for commit messages). - The
VISUALenvironment variable (the POSIX convention for a full-screen editor such asvim,nano, orcode --wait). - The
EDITORenvironment variable (the older POSIX fallback, e.g.notepadon Windows). - The
editorsetting from your distlift config file, or theDISTLIFT_EDITORenvironment variable.
So if none of the standard editor environment variables are set on your system, you can still tell distlift which editor to use by writing one line in your user config:
editor = "code --wait"
You can place that in any distlift TOML layer
(distlift.toml / .distlift.toml, [tool.distlift] inside
pyproject.toml, your user config file, or the system one). The values
saved by distlift config init-user already include a commented-out
example.
distlift config show prints the effective editor (or (unset) when no
layer provides one).
Plugins
List extensions distlift loaded (built-ins and any you configured):
distlift plugins list
Getting unstuck
Every command accepts --help, for example:
distlift changelog --help
distlift release simple --help
That lists all flags for that command. If something fails, read the message in the terminal—distlift usually explains whether the problem is configuration, Git state, or a missing file.
distlift is release automation for developers; it performs real Git
operations when not in --dry-run. Always commit or stash unrelated work,
read --help before unfamiliar flags, and use --dry-run until you are
comfortable with the plan.
Metadata
Release files for distlift 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| distlift-1.1.1.tar.gz | 184.3 kB | With provenance | Details for distlift-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| distlift-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for distlift-1.1.1-py3-none-any.whl |
Total release size: 365.6 kB
Release files / distlift-1.1.1.tar.gz
| Download URL | distlift-1.1.1.tar.gz |
|---|---|
| Size | 184.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea106857f2179a44c758845fba9cd3b6eb1b3f188041634e35a960a5758f5bec
|
|
BLAKE2b-256 checksum How to use checksums |
ed466305e823f6552ad91067ac82aa59946c97c721fd0a233b225a330e0864df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.
Transparency logRelease files / distlift-1.1.1-py3-none-any.whl
| Download URL | distlift-1.1.1-py3-none-any.whl |
|---|---|
| Size | 181.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d101ad41a638de2715327f96044a534835ad634d7ca11e938af7ca9d1f0d8ba
|
|
BLAKE2b-256 checksum How to use checksums |
ee1165923f0eca3260aba7455f6ee79b9b5f4d89188a8d108da17b70dec590cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.
Transparency logSecurity for distlift 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for distlift-1.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.