# @rafaelgou/peach-cli

> Peach CLI - Wordpress database domain migration tool

Latest version **1.0.0** (published 2020-02-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @rafaelgou/peach-cli
pnpm add @rafaelgou/peach-cli
yarn add @rafaelgou/peach-cli
bun add @rafaelgou/peach-cli
```

Provides the command `peach-cli`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-02-18 |
| First published | 2020-02-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rafael Goulart |
| Maintainers | rafaelgou |

## Links

- npm: https://www.npmjs.com/package/@rafaelgou/peach-cli
- Repository: https://github.com/rafaelgou/peach-cli
- Homepage: https://github.com/rafaelgou/peach-cli#readme
- Issues: https://github.com/rafaelgou/peach-cli/issues
- npm.io page: https://npm.io/package/@rafaelgou/peach-cli

## Recent versions

- 1.0.0 (latest) — 2020-02-18

## README

# Peach CLI

Command line tool to migrate wordpress databases between domains.

This is a command line version of [Peach](http://psaia.github.com/Peach/),
great work of my good friend [Pete Saia](https://github.com/psaia).

## The problem

- You are developing a [Wordpress](https://wordpress.org) website locally.
- You setup a dummy domain, like `http://localhost` or `http://localhost:8000`
  or even `http://mysite.local`
- The site is ready to go staging/production (like `http://mycoolsite.com`)
- You make a database dump from your local
- You restore the dump on staging/production
- ... and all links a broken because the old domain (`http://mysite.local` is not cool on production)

## The solution

Use [Peach](http://psaia.github.com/Peach/), online version! Drag and drop your sql dump, inform your new domain, run it, everything on the browser, no tracking.

But, if you like a little more automation, use **Peach command**. Yeah, this tool.

## Install

```bash
npm install -g @rafaelgou/peach-cli
```

or

```bash
yarn global @rafaelgou/peach-cli
```

to install the command line globally.

Run it:

```bash
peach-cli <PATH_TO_YOUR_SQL_FILE> <NEW_DOMAIN>
```

You get a new file converted with `-migrated.sql` suffix/extension

---
_Source: https://npm.io/package/@rafaelgou/peach-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
