Skip to content

Commit

Permalink
--format=json is cooler
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed Feb 4, 2016
1 parent 3d0c748 commit d595761
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,15 @@ For example:
or: wp rest taxonomy <command>
or: wp rest type <command>
or: wp rest user <command>
$ wp --http=demo.wp-api.org rest tag get 65
+----------+-------------------------------------------------------------------+
| Field | Value |
+----------+-------------------------------------------------------------------+
| id | 65 |
| link | http://demo.wp-api.org/tag/dolor-in-sunt-placeat-molestiae-ipsam/ |
| name | Dolor in sunt placeat molestiae ipsam |
| slug | dolor-in-sunt-placeat-molestiae-ipsam |
| taxonomy | post_tag |
+----------+-------------------------------------------------------------------+

$ wp --http=demo.wp-api.org rest tag get 65 --format=json
{
"id": 65,
"link": "http://demo.wp-api.org/tag/dolor-in-sunt-placeat-molestiae-ipsam/",
"name": "Dolor in sunt placeat molestiae ipsam",
"slug": "dolor-in-sunt-placeat-molestiae-ipsam",
"taxonomy": "post_tag"
}

There are many things wp-rest-cli can't yet do. Please [review the issue backlog](https://github.com/danielbachhuber/wp-rest-cli/issues), and open a new issue if you can't find an exising issue for your topic.

Expand Down

0 comments on commit d595761

Please sign in to comment.