PHPackages                             frozzare/wp-cli-media-restore - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. frozzare/wp-cli-media-restore

ActiveWp-cli-package[CLI &amp; Console](/categories/cli)

frozzare/wp-cli-media-restore
=============================

Restore media attachments using WP CLI

v1.0.0(10y ago)2011.0k↑250%[1 issues](https://github.com/wpup/wp-cli-media-restore/issues)MITPHPPHP &gt;=5.4

Since Nov 22Pushed 6y ago2 watchersCompare

[ Source](https://github.com/wpup/wp-cli-media-restore)[ Packagist](https://packagist.org/packages/frozzare/wp-cli-media-restore)[ Docs](https://github.com/frozzare/wp-cli-media-restore)[ RSS](/packages/frozzare-wp-cli-media-restore/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

wp-cli-media-restore
====================

[](#wp-cli-media-restore)

[![No Maintenance Intended](https://camo.githubusercontent.com/d904056147052e22d8e1c7f46bb50293ed2aeb4c43ead9a2d0cf7a48b46d0562/687474703a2f2f756e6d61696e7461696e65642e746563682f62616467652e737667)](http://unmaintained.tech/)

Restore media attachments using WP CLI. Based on [download missing attachments](https://github.com/cftp/wp-cli-download-missing-attachments) with support for custom content directory and configuration in WP CLI config file.

Installation
------------

[](#installation)

If you're using WP-CLI v0.23.0 or later, you can install this package with:

```
wp package install frozzare/wp-cli-media-restore

```

Or, using Composer directly:

```
composer require frozzare/wp-cli-media-restore

```

For other methods, please refer to WP-CLI's [Community Packages](https://github.com/wp-cli/wp-cli/wiki/Community-Packages) wiki.

Config
------

[](#config)

Example of `~/.wp-cli/config.yml`:

```
media:
  restore:
    generate: false
    uploads_url: http://www.bedrock.com/app/uploads/
```

Options
-------

[](#options)

#### `[--generate=false]`

[](#--generatefalse)

Set this optional parameter if you want to (re)generate all the different image sizes. Defaults to not generating thumbnails.

#### `[--uploads-url]`

[](#--uploads-url)

The URL to the uploads directory, not including any date based folder structure.

Examples
--------

[](#examples)

```
wp media restore --uploads-url=http://www.bedrock.com/app/uploads/

```

License
-------

[](#license)

MIT © [Fredrik Forsmo](https://github.com/frozzare)

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3876d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/aacdbaebed26ea1ccdb7e37e2bfd2a572350e1d781d1c0b8830d444adb86104e?d=identicon)[frozzare](/maintainers/frozzare)

---

Top Contributors

[![frozzare](https://avatars.githubusercontent.com/u/14610?v=4)](https://github.com/frozzare "frozzare (31 commits)")[![danielbachhuber](https://avatars.githubusercontent.com/u/36432?v=4)](https://github.com/danielbachhuber "danielbachhuber (2 commits)")

---

Tags

wordpressattachmentswp-cli

### Embed Badge

![Health badge](/badges/frozzare-wp-cli-media-restore/health.svg)

```
[![Health](https://phpackages.com/badges/frozzare-wp-cli-media-restore/health.svg)](https://phpackages.com/packages/frozzare-wp-cli-media-restore)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.1k19.1M404](/packages/wp-cli-wp-cli)[wpsh/wp-cli-replicator

3584.2k](/packages/wpsh-wp-cli-replicator)[wearerequired/wp-cli-clear-opcache

Use WP-CLI to clear the OPcache for a site via HTTP.

1736.8k](/packages/wearerequired-wp-cli-clear-opcache)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
