Skip to content

Commit

Permalink
wpcli command step (#9)
Browse files Browse the repository at this point in the history
Small step for wp cli big step for playground

```wp post generate --count=12 --post_type=post --post_date=1999-01-04```

_Props to @ryanwelcher for inspiration_

---------

Co-authored-by: Adam Zielinski <adam@adamziel.com>
  • Loading branch information
bph and adamziel authored Apr 11, 2024
1 parent ebdd1d2 commit 122fa4b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions blueprints/posts-via-wp-cli/blueprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"meta": {
"title": "Use wp-cli command to add posts",
"description": "Blueprint example to add posts via a wp-cli command.",
"author": "bph",
"categories": ["Content", "wpcli"]
},
"landingPage": "/wp-admin/edit.php",
"steps":[
{
"step": "login",
"username": "admin",
"password": "password"
},
{
"step": "wp-cli",
"command": "wp post generate --count=12 --post_type=post --post_date=1999-01-04"
}
]
}

0 comments on commit 122fa4b

Please sign in to comment.