Linux 软件免费装
Banner图

SiteCargo

开发者 khokansardar
更新时间 2026年6月13日 13:20
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

migration staging deployment full-site-editing block-themes

下载

0.1.2

详情介绍:

WordPress full-site-editing structure — patterns, templates, template parts, global styles, and navigation — lives in the database. Moving some of it from staging to production today means either a full database sync (which is destructive to production-only data like orders, users, and form entries) or tedious manual copy-paste. SiteCargo packs exactly what you choose into a portable, reviewable bundle and applies it to another site with stable identity, ID remapping, and media handling — never touching the data you didn't select. It is currently a WP-CLI tool (an admin user interface is on the roadmap). How it works Supported entity types Only templates/parts that have been customized in the database are exported; unedited theme-file templates already ship with the theme. External services This plugin does not connect to any external service, send any data off-site, or phone home. Bundles are plain files on your own server that you move between environments however you like.

安装:

  1. Upload the sitecargo folder to the /wp-content/plugins/ directory, or install through the Plugins screen.
  2. Activate the plugin through the Plugins screen.
  3. Use WP-CLI to run commands, for example:
wp sitecargo export --all --dir=my-bundle wp sitecargo diff --dir=my-bundle wp sitecargo apply --dir=my-bundle --yes Exported bundles are always written inside wp-content/uploads/sitecargo/; --dir is the folder name, not an arbitrary filesystem path. WP-CLI is required to use this plugin.

升级注意事项:

0.1.2 Security hardening: exports are now confined to wp-content/uploads/sitecargo/. Use --dir=<name> (a folder name) rather than a filesystem path. 0.1.1 Plugin renamed to SiteCargo. Early software — test in a non-production environment first. 0.1.0 Initial release. Early software — test in a non-production environment first.

常见问题:

Does this replace WP Migrate or a full database export?

No. SiteCargo is deliberately selective — it promotes specific structure and content and leaves everything else (orders, users, comments, options) untouched. Use a full migration tool when you genuinely want to overwrite a whole site.

Will applying a bundle create duplicates if I run it twice?

No. Applying is idempotent: patterns and navigation are matched by a stable identifier stored in post meta, and templates/parts/global styles are matched by theme and slug. A second apply updates the same items.

Does it move my media?

Yes. Referenced media is included in the bundle and imported into the target's media library, de-duplicated by content hash, with the relevant block markup (IDs and URLs) rewritten to point at the target's copy.

Is it safe to run on production?

Always run wp sitecargo diff first to preview changes, and keep a backup. This is early (alpha) software.

更新日志:

0.1.2 0.1.1 0.1.0