WPSync
WPSync (wpsync) is a command-line tool for managing blog posts as local
Markdown files: map a folder to a blog, pull its posts, edit them in any
editor, preview the differences, and push the changes back. WordPress is the
first supported platform. Website: wpsync.dev.
WPSync is pre-alpha software. Profiles, pull, diff, and push work today; commands and the post file format may change before a stable release.
Who is it for?
WPSync is for people who would rather write blog posts in a Markdown editor, such as VS Code or Obsidian, than in the WordPress editor.
Your files are the source of truth. Keep them in Git, edit them offline, and see exactly what a push will change before anything reaches the blog.
Installation
WPSync requires Python 3.11 or newer. Install it from PyPI with uv:
uv tool install wpsync
Upgrade later with:
uv tool upgrade wpsync
Quick start
WPSync signs in with a WordPress Application Password, created in the WordPress dashboard under Users > Profile > Application Passwords; the site must use HTTPS. WPSync reads the password from an environment variable named after the profile and never stores it.
From the folder you want to use for the blog:
wpsync init myblog --site https://example.com --username emrah
export MYBLOG_WP_PASSWORD='abcd efgh ijkl mnop qrst uvwx'
wpsync pull # download posts and images into content/
wpsync open hello-world # edit a post in Obsidian or VS Code
wpsync diff # see what push would change
wpsync push # send the changes to the blog
init proposes the current directory as the profile's folder; pressing Enter
accepts it. Each post becomes a Markdown file under content/ with a YAML
header, and its images go in content/images/.
Everyday commands
wpsync profiles # list profiles; * marks the current one
wpsync ls # local posts, without contacting the blog
wpsync show hello # one post's details and issues
wpsync create -o # start a new private post and open it
wpsync open idea # open a post in your editor
wpsync pull # bring changes from the blog
wpsync diff # what push would change, read-only
wpsync push hello # send one post
wpsync delete hello # delete a post, keeping it in .trash/
A new post is private until you set status: public in its header. Pull asks
before replacing a file you edited, and push asks before replacing a post that
also changed on WordPress. Push deletes nothing on the blog unless you pass
-p, and a deleted post is kept in .trash/, where restore brings it back.
Documentation
- Profiles and credentials: Application Passwords, profiles, and running commands from anywhere.
- Post files: the header and body format, images, starting a post, and opening it in an editor.
- Pull and push: what each changes, how they protect local and remote work, when they ask, and deleting posts.
- Listing posts and diff:
ls,show, issues, anddiff's status markers. - Development and maintenance: testing local changes, switching installs, and releasing.
Command behavior
Commands accept any unique prefix, such as wpsync di. An ambiguous prefix
fails and lists the commands it could mean.
show, open, diff, and push take one post by ID, slug, file name, title,
or path. A file name needs no folder: vibing or vibing.md finds
content/2019/vibing.md, looking in the current folder first and then in every
folder under content/. A name that matches several files lists them. pull
takes an ID, a slug, a file name ending in .md, or a path.
Use wpsync -h and wpsync COMMAND -h for built-in help, and wpsync --legend
for the diff and ls symbols. wpsync -v and wpsync --version print the
installed version.
License
WPSync is source-available under the PolyForm Strict License 1.0.0. Use is free of charge for the purposes permitted by that license, including:
- Any noncommercial purpose.
- The personal uses listed in the license, such as personal study and hobby projects, without any anticipated commercial application.
- Use by charitable organizations, educational institutions, public research organizations, public safety or health organizations, environmental protection organizations, and government institutions, regardless of funding source or obligations resulting from funding.
This license grants no rights to modify or redistribute WPSync or create works based on it. The full license governs; this summary does not grant additional permissions.
Commercial use outside those permissions requires a separate paid license. Contact Emrah Diril for pricing and a commercial agreement before beginning such use.
WPSync is source-available, not open source.
Metadata
Release files for wpsync 1.17.2
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 |
|---|---|---|---|---|
| wpsync-1.17.2.tar.gz | 61.7 kB | Without provenance | Details for wpsync-1.17.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wpsync-1.17.2-py3-none-any.whl | Python 3 | none | any | Details for wpsync-1.17.2-py3-none-any.whl |
Total release size: 133.1 kB
Release files / wpsync-1.17.2.tar.gz
| Download URL | wpsync-1.17.2.tar.gz |
|---|---|
| Size | 61.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ff747a7dc466cebd477562109b6c69b869670fc8f0e31b95d5f8bf524941af8
|
|
BLAKE2b-256 checksum How to use checksums |
a82960cbb358e8e623bd2929716ac3c07e671f66ae024fcc470fc8c406d2e21e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.8
|
Release files / wpsync-1.17.2-py3-none-any.whl
| Download URL | wpsync-1.17.2-py3-none-any.whl |
|---|---|
| Size | 71.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73261922a7d6395c596a2135b205060c48400f763353d6f534d559c2439843b8
|
|
BLAKE2b-256 checksum How to use checksums |
48fcd2cd2cc3f64800f6aac50a3e78fe52e9584f61c31eace11248815a395748
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.8
|
Security for wpsync 1.17.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.