WP Manifestindependent plugin directory
manifest / developer / wp-cli-unsplash-command

WP-CLI Unsplash Command

Adds the command `wp unsplash` to WP-CLI.

by Ashley Rich · github.com/a5hleyrich/wp-cli-unsplash-command · website

25stars
9forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/a5hleyrich/wp-cli-unsplash-command/archive/refs/heads/master.zip

Download and import images from Unsplash into your Media Library. Useful for generating demo data.

Usage

Basic usage, which will import 10 images:

wp unsplash

count=<number>

Import 100 images:

wp unsplash --count=100

media_date=<yyyy-mm-dd|random>

Import images with a specific attachment date:

wp unsplash --media_date=2016-01-25

Import images with random attachment dates:

wp unsplash --media_date=random

media_dimensions=<dimensions>

Import images with specific dimensions:

wp unsplash --media_dimensions=1080x720