wp-cli-unsplash-command
wp-cli-unsplash-command copied to clipboard
WP-CLI Unsplash Command
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