Jordan-Hall / wpress-handler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wpress

A simple CLI tool to unpack and pack to .wpress files generated by the All-in-One WP Migration Wordpress plugin.


A funny comic from xkcd.com about creating new standards in computer industry
"Standards" by xkcd.

Usage

Prerequisites: Make sure that you have Node.js installed on your machine.

Extraction

# One-time usage for extraction
npx wpress extract your-migration.wpress

# Or install it locally
npm i -g wpress
wpress extract your-migration.wpress

Options

You can customize the standard behavior of the wpress command with these custom options that can be added:

wpress extract --out ./alternate-output your-migration.wpress
Option Description
-o, --out <dir> Define an alternate directory where the archive should be extracted to.
-f, --force Skip the check if the output directory already exists and override the content in it.

Compression

# One-time usage for compression
npx wpress compress your-directory-name your-output.wpress

# Installed version
wpress compress your-directory-name your-output.wpress

The command then creates a new directory with the same name (in this example your-migration/) where it extracts the content of the archive into.

Acknowledgements

This was a fork of Felix Haus](https://github.com/ofhouse)
WebsiteTwitter wpress-extract but refactored to support compress

The functionality of this package is inspired by the wpressor tool. Since the provided binaries stopped working on MacOS and no solution for Linux is available I created this tool as a cross-platform alternative.

License

MIT - see LICENSE for details.

About

License:MIT License


Languages

Language:JavaScript 100.0%