# $ vcspull · [](https://pypi.org/project/vcspull/) [](https://github.com/vcs-python/vcspull/blob/master/LICENSE) [](https://codecov.io/gh/vcs-python/vcspull)
Manage and sync multiple git, svn, and mercurial repos via JSON or YAML file. Compare to
[myrepos], [mu-repo]. Built on [libvcs].
Great if you use the same repos at the same locations across multiple
machines or want to clone / update a pattern of repos without having to
`cd` into each one.
- clone / update to the latest repos with `$ vcspull`
- use filters to specify a location, repo url or pattern in the
manifest to clone / update
- supports svn, git, hg version control systems
- automatically checkout fresh repositories
- supports [pip](https://pip.pypa.io/)-style URL's
([RFC3986](https://datatracker.ietf.org/doc/html/rfc3986)-based [url
scheme](https://pip.pypa.io/en/latest/topics/vcs-support/))
See the [documentation](https://vcspull.git-pull.com/), [configuration](https://vcspull.git-pull.com/configuration/) examples, and [config generators](https://vcspull.git-pull.com/configuration/generation.html).
[myrepos]: http://myrepos.branchable.com/
[mu-repo]: http://fabioz.github.io/mu-repo/
# How to
## Install
```console
$ pip install --user vcspull
```
Or using uv:
```console
$ uv tool install vcspull
```
For one-time use without installation:
```console
$ uvx vcspull
```
### Developmental releases
You can test the unpublished version of vcspull before its released.
- [pip](https://pip.pypa.io/en/stable/):
```console
$ pip install --user --upgrade --pre vcspull
```
- [pipx](https://pypa.github.io/pipx/docs/):
```console
$ pipx install --suffix=@next 'vcspull' --pip-args '\--pre' --force
```
Then use `vcspull@next sync [config]...`.
- [uv](https://docs.astral.sh/uv/):
```console
$ uv tool install --prerelease=allow vcspull
```
## Configuration
Add your repos to `~/.vcspull.yaml`. You can edit the file by hand or let
`vcspull add` or `vcspull discover` create entries for you.
```yaml
~/code/:
flask: "git+https://github.com/mitsuhiko/flask.git"
~/study/c:
awesome: "git+git://git.naquadah.org/awesome.git"
~/study/data-structures-algorithms/c:
libds: "git+https://github.com/zhemao/libds.git"
algoxy:
repo: "git+https://github.com/liuxinyu95/AlgoXY.git"
remotes:
tony: "git+ssh://git@github.com/tony/AlgoXY.git"
```
(see the author's
[.vcspull.yaml](https://github.com/tony/.dot-config/blob/master/.vcspull.yaml),
more [configuration](https://vcspull.git-pull.com/configuration.html))
`$HOME/.vcspull.yaml` and `$XDG_CONFIG_HOME/vcspull/` (`~/.config/vcspull`) can
be used as a declarative manifest to clone your repos consistently across
machines. Subsequent syncs of initialized repos will fetch the latest commits.
### Add repositories from the CLI
Register a single repository without touching YAML manually:
```console
$ vcspull add my-lib https://github.com/example/my-lib.git --path ~/code/my-lib
```
- Omit `--path` to default the entry under `./`.
- Use `-w/--workspace` when you want to force a specific workspace root, e.g.
`-w ~/projects/libs`.
- Pass `-f/--file` to add to an alternate YAML file.
- Use `--dry-run` to preview changes before writing.
- Follow with `vcspull sync my-lib` to clone or update the working tree after registration.
### Discover local checkouts and add en masse
Have a directory tree full of cloned Git repositories? Scan and append them to
your configuration:
```console
$ vcspull discover ~/code --recursive
```
The scan shows each repository before import unless you opt into `--yes`. Add
`-w ~/code/` to pin the resulting workspace root or `-f` to
write somewhere other than the default `~/.vcspull.yaml`.
### Inspect configured repositories
List what vcspull already knows about without mutating anything:
```console
$ vcspull list
$ vcspull list --tree
$ vcspull list --json | jq '.[].name'
```
`--json` emits a single JSON array, while `--ndjson` streams newline-delimited
objects that are easy to consume from shell pipelines.
### Check repository status
Get a quick health check for all configured workspaces:
```console
$ vcspull status
$ vcspull status --detailed
$ vcspull status --ndjson | jq --slurp 'map(select(.reason == "summary"))'
```
The status command respects `--workspace/-w` filters and the global
`--color {auto,always,never}` flag. JSON and NDJSON output mirrors the list
command for automation workflows.
### Normalize configuration files
After importing or editing by hand, run the formatter to tidy up keys and keep
entries sorted:
```console
$ vcspull fmt -f ~/.vcspull.yaml --write
```
Use `vcspull fmt --all --write` to format every YAML file that vcspull can
discover under the standard config locations.
## Sync your repos
```console
$ vcspull sync
```
Preview planned work with Terraform-style plan output or emit structured data
for CI/CD:
```console
$ vcspull sync --dry-run "*"
$ vcspull sync --dry-run --show-unchanged "workspace-*"
$ vcspull sync --dry-run --json "*" | jq '.summary'
$ vcspull sync --dry-run --ndjson "*" | jq --slurp 'map(select(.type == "summary"))'
```
Dry runs stream a progress line when stdout is a TTY, then print a concise plan
summary (`+/~/✓/⚠/✗`) grouped by workspace. Use `--summary-only`,
`--relative-paths`, `--long`, or `-v/-vv` for alternate views, and
`--fetch`/`--offline` to control how remote metadata is refreshed.
Keep nested VCS repositories updated too, lets say you have a mercurial
or svn project with a git dependency:
`external_deps.yaml` in your project root (any filename will do):
```yaml
./vendor/:
sdl2pp: "git+https://github.com/libSDL2pp/libSDL2pp.git"
```
Clone / update repos via config file:
```console
$ vcspull sync -f external_deps.yaml '*'
```
See the [Quickstart](https://vcspull.git-pull.com/quickstart.html) for
more.
## Pulling specific repos
Have a lot of repos?
you can choose to update only select repos through
[fnmatch](http://pubs.opengroup.org/onlinepubs/009695399/functions/fnmatch.html)
patterns. remember to add the repos to your `~/.vcspull.{json,yaml}`
first.
The patterns can be filtered by by directory, repo name or vcs url.
Any repo starting with "fla":
```console
$ vcspull sync "fla*"
```
Any repo with django in the name:
```console
$ vcspull sync "*django*"
```
Search by vcs + url, since urls are in this format <vcs>+<protocol>://<url>:
```console
$ vcspull sync "git+*"
```
Any git repo with python in the vcspull:
```console
$ vcspull sync "git+*python*
```
Any git repo with django in the vcs url:
```console
$ vcspull sync "git+*django*"
```
All repositories in your ~/code directory:
```console
$ vcspull sync "$HOME/code/*"
```
[libvcs]: https://github.com/vcs-python/libvcs
<img src="https://raw.githubusercontent.com/vcs-python/vcspull/master/docs/_static/vcspull-demo.gif" class="align-center" style="width:45.0%" alt="image" />
# Donations
Your donations fund development of new features, testing and support.
Your money will go directly to maintenance and development of the
project. If you are an individual, feel free to give whatever feels
right for the value you get out of the project.
See donation options at <https://tony.sh/support.html>.
# More information
- Python support: >= 3.9, pypy
- VCS supported: git(1), svn(1), hg(1)
- Source: <https://github.com/vcs-python/vcspull>
- Docs: <https://vcspull.git-pull.com>
- Changelog: <https://vcspull.git-pull.com/history.html>
- API: <https://vcspull.git-pull.com/api.html>
- Issues: <https://github.com/vcs-python/vcspull/issues>
- Test Coverage: <https://codecov.io/gh/vcs-python/vcspull>
- pypi: <https://pypi.python.org/pypi/vcspull>
- Open Hub: <https://www.openhub.net/p/vcspull>
- License: [MIT](https://opensource.org/licenses/MIT).
[](https://vcspull.git-pull.com) [](https://github.com/vcs-python/vcspull/actions?query=workflow%3A%22tests%22)
Raw data
{
"_id": null,
"home_page": null,
"name": "vcspull",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": "fetcher, git, hg, json, manage, manager, mercurial, subversion, svn, sync, updater, vcs, vcspull, yaml",
"author": null,
"author_email": "Tony Narlock <tony@git-pull.com>",
"download_url": "https://files.pythonhosted.org/packages/34/54/073d8d73afc0ac7c4877baa0d93779ac6938fa0fae05597948d4a9899f0f/vcspull-1.41.0.tar.gz",
"platform": null,
"description": "# $ vcspull · [](https://pypi.org/project/vcspull/) [](https://github.com/vcs-python/vcspull/blob/master/LICENSE) [](https://codecov.io/gh/vcs-python/vcspull)\n\nManage and sync multiple git, svn, and mercurial repos via JSON or YAML file. Compare to\n[myrepos], [mu-repo]. Built on [libvcs].\n\nGreat if you use the same repos at the same locations across multiple\nmachines or want to clone / update a pattern of repos without having to\n`cd` into each one.\n\n- clone / update to the latest repos with `$ vcspull`\n- use filters to specify a location, repo url or pattern in the\n manifest to clone / update\n- supports svn, git, hg version control systems\n- automatically checkout fresh repositories\n- supports [pip](https://pip.pypa.io/)-style URL's\n ([RFC3986](https://datatracker.ietf.org/doc/html/rfc3986)-based [url\n scheme](https://pip.pypa.io/en/latest/topics/vcs-support/))\n\nSee the [documentation](https://vcspull.git-pull.com/), [configuration](https://vcspull.git-pull.com/configuration/) examples, and [config generators](https://vcspull.git-pull.com/configuration/generation.html).\n\n[myrepos]: http://myrepos.branchable.com/\n[mu-repo]: http://fabioz.github.io/mu-repo/\n\n# How to\n\n## Install\n\n```console\n$ pip install --user vcspull\n```\n\nOr using uv:\n\n```console\n$ uv tool install vcspull\n```\n\nFor one-time use without installation:\n\n```console\n$ uvx vcspull\n```\n\n### Developmental releases\n\nYou can test the unpublished version of vcspull before its released.\n\n- [pip](https://pip.pypa.io/en/stable/):\n\n ```console\n $ pip install --user --upgrade --pre vcspull\n ```\n\n- [pipx](https://pypa.github.io/pipx/docs/):\n\n ```console\n $ pipx install --suffix=@next 'vcspull' --pip-args '\\--pre' --force\n ```\n\n Then use `vcspull@next sync [config]...`.\n\n- [uv](https://docs.astral.sh/uv/):\n\n ```console\n $ uv tool install --prerelease=allow vcspull\n ```\n\n## Configuration\n\nAdd your repos to `~/.vcspull.yaml`. You can edit the file by hand or let\n`vcspull add` or `vcspull discover` create entries for you.\n\n```yaml\n~/code/:\n flask: \"git+https://github.com/mitsuhiko/flask.git\"\n~/study/c:\n awesome: \"git+git://git.naquadah.org/awesome.git\"\n~/study/data-structures-algorithms/c:\n libds: \"git+https://github.com/zhemao/libds.git\"\n algoxy:\n repo: \"git+https://github.com/liuxinyu95/AlgoXY.git\"\n remotes:\n tony: \"git+ssh://git@github.com/tony/AlgoXY.git\"\n```\n\n(see the author's\n[.vcspull.yaml](https://github.com/tony/.dot-config/blob/master/.vcspull.yaml),\nmore [configuration](https://vcspull.git-pull.com/configuration.html))\n\n`$HOME/.vcspull.yaml` and `$XDG_CONFIG_HOME/vcspull/` (`~/.config/vcspull`) can\nbe used as a declarative manifest to clone your repos consistently across\nmachines. Subsequent syncs of initialized repos will fetch the latest commits.\n\n### Add repositories from the CLI\n\nRegister a single repository without touching YAML manually:\n\n```console\n$ vcspull add my-lib https://github.com/example/my-lib.git --path ~/code/my-lib\n```\n\n- Omit `--path` to default the entry under `./`.\n- Use `-w/--workspace` when you want to force a specific workspace root, e.g.\n `-w ~/projects/libs`.\n- Pass `-f/--file` to add to an alternate YAML file.\n- Use `--dry-run` to preview changes before writing.\n- Follow with `vcspull sync my-lib` to clone or update the working tree after registration.\n\n### Discover local checkouts and add en masse\n\nHave a directory tree full of cloned Git repositories? Scan and append them to\nyour configuration:\n\n```console\n$ vcspull discover ~/code --recursive\n```\n\nThe scan shows each repository before import unless you opt into `--yes`. Add\n`-w ~/code/` to pin the resulting workspace root or `-f` to\nwrite somewhere other than the default `~/.vcspull.yaml`.\n\n### Inspect configured repositories\n\nList what vcspull already knows about without mutating anything:\n\n```console\n$ vcspull list\n$ vcspull list --tree\n$ vcspull list --json | jq '.[].name'\n```\n\n`--json` emits a single JSON array, while `--ndjson` streams newline-delimited\nobjects that are easy to consume from shell pipelines.\n\n### Check repository status\n\nGet a quick health check for all configured workspaces:\n\n```console\n$ vcspull status\n$ vcspull status --detailed\n$ vcspull status --ndjson | jq --slurp 'map(select(.reason == \"summary\"))'\n```\n\nThe status command respects `--workspace/-w` filters and the global\n`--color {auto,always,never}` flag. JSON and NDJSON output mirrors the list\ncommand for automation workflows.\n\n### Normalize configuration files\n\nAfter importing or editing by hand, run the formatter to tidy up keys and keep\nentries sorted:\n\n```console\n$ vcspull fmt -f ~/.vcspull.yaml --write\n```\n\nUse `vcspull fmt --all --write` to format every YAML file that vcspull can\ndiscover under the standard config locations.\n\n## Sync your repos\n\n```console\n$ vcspull sync\n```\n\nPreview planned work with Terraform-style plan output or emit structured data\nfor CI/CD:\n\n```console\n$ vcspull sync --dry-run \"*\"\n$ vcspull sync --dry-run --show-unchanged \"workspace-*\"\n$ vcspull sync --dry-run --json \"*\" | jq '.summary'\n$ vcspull sync --dry-run --ndjson \"*\" | jq --slurp 'map(select(.type == \"summary\"))'\n```\n\nDry runs stream a progress line when stdout is a TTY, then print a concise plan\nsummary (`+/~/\u2713/\u26a0/\u2717`) grouped by workspace. Use `--summary-only`,\n`--relative-paths`, `--long`, or `-v/-vv` for alternate views, and\n`--fetch`/`--offline` to control how remote metadata is refreshed.\n\nKeep nested VCS repositories updated too, lets say you have a mercurial\nor svn project with a git dependency:\n\n`external_deps.yaml` in your project root (any filename will do):\n\n```yaml\n./vendor/:\n sdl2pp: \"git+https://github.com/libSDL2pp/libSDL2pp.git\"\n```\n\nClone / update repos via config file:\n\n```console\n$ vcspull sync -f external_deps.yaml '*'\n```\n\nSee the [Quickstart](https://vcspull.git-pull.com/quickstart.html) for\nmore.\n\n## Pulling specific repos\n\nHave a lot of repos?\n\nyou can choose to update only select repos through\n[fnmatch](http://pubs.opengroup.org/onlinepubs/009695399/functions/fnmatch.html)\npatterns. remember to add the repos to your `~/.vcspull.{json,yaml}`\nfirst.\n\nThe patterns can be filtered by by directory, repo name or vcs url.\n\nAny repo starting with \"fla\":\n\n```console\n$ vcspull sync \"fla*\"\n```\n\nAny repo with django in the name:\n\n```console\n$ vcspull sync \"*django*\"\n```\n\nSearch by vcs + url, since urls are in this format <vcs>+<protocol>://<url>:\n\n```console\n$ vcspull sync \"git+*\"\n```\n\nAny git repo with python in the vcspull:\n\n```console\n$ vcspull sync \"git+*python*\n```\n\nAny git repo with django in the vcs url:\n\n```console\n$ vcspull sync \"git+*django*\"\n```\n\nAll repositories in your ~/code directory:\n\n```console\n$ vcspull sync \"$HOME/code/*\"\n```\n\n[libvcs]: https://github.com/vcs-python/libvcs\n\n<img src=\"https://raw.githubusercontent.com/vcs-python/vcspull/master/docs/_static/vcspull-demo.gif\" class=\"align-center\" style=\"width:45.0%\" alt=\"image\" />\n\n# Donations\n\nYour donations fund development of new features, testing and support.\nYour money will go directly to maintenance and development of the\nproject. If you are an individual, feel free to give whatever feels\nright for the value you get out of the project.\n\nSee donation options at <https://tony.sh/support.html>.\n\n# More information\n\n- Python support: >= 3.9, pypy\n- VCS supported: git(1), svn(1), hg(1)\n- Source: <https://github.com/vcs-python/vcspull>\n- Docs: <https://vcspull.git-pull.com>\n- Changelog: <https://vcspull.git-pull.com/history.html>\n- API: <https://vcspull.git-pull.com/api.html>\n- Issues: <https://github.com/vcs-python/vcspull/issues>\n- Test Coverage: <https://codecov.io/gh/vcs-python/vcspull>\n- pypi: <https://pypi.python.org/pypi/vcspull>\n- Open Hub: <https://www.openhub.net/p/vcspull>\n- License: [MIT](https://opensource.org/licenses/MIT).\n\n[](https://vcspull.git-pull.com) [](https://github.com/vcs-python/vcspull/actions?query=workflow%3A%22tests%22)\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Manage and sync multiple git, mercurial, and svn repos",
"version": "1.41.0",
"project_urls": null,
"split_keywords": [
"fetcher",
" git",
" hg",
" json",
" manage",
" manager",
" mercurial",
" subversion",
" svn",
" sync",
" updater",
" vcs",
" vcspull",
" yaml"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "9877149c08575de07cb35a5f1961c30c181e8187c38d380d5d293a5f5c5d1d2f",
"md5": "21f2c01fa18bd0cc5554f98fef8948a2",
"sha256": "281df8493632ec91d246f33e8ff1bf8b015b1df582e92117baed933805bcf701"
},
"downloads": -1,
"filename": "vcspull-1.41.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "21f2c01fa18bd0cc5554f98fef8948a2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 49388,
"upload_time": "2025-10-25T11:49:37",
"upload_time_iso_8601": "2025-10-25T11:49:37.164148Z",
"url": "https://files.pythonhosted.org/packages/98/77/149c08575de07cb35a5f1961c30c181e8187c38d380d5d293a5f5c5d1d2f/vcspull-1.41.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "3454073d8d73afc0ac7c4877baa0d93779ac6938fa0fae05597948d4a9899f0f",
"md5": "5a1313a66a1e6462975d8f5bac77c00a",
"sha256": "451684f299222f7b0a396848f9040d9d0d3d0e7927f3b3d749154fc311b1d18e"
},
"downloads": -1,
"filename": "vcspull-1.41.0.tar.gz",
"has_sig": false,
"md5_digest": "5a1313a66a1e6462975d8f5bac77c00a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 2271551,
"upload_time": "2025-10-25T11:49:38",
"upload_time_iso_8601": "2025-10-25T11:49:38.696966Z",
"url": "https://files.pythonhosted.org/packages/34/54/073d8d73afc0ac7c4877baa0d93779ac6938fa0fae05597948d4a9899f0f/vcspull-1.41.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-25 11:49:38",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "vcspull"
}