$ wp curl-rest --user=admin
Output:
curl -H 'X-WP-NONCE: ooO0o00o00' --cookie \
'wordpress_logged_in_wwWwwwWwwwWWwwwwwWwwwWWwwWWWwwwww=admin|xxxxxxxxxx|YYyyYyyyyYyYyYYYYYyyyYYyyyyYyyYYyyyyyyYYyyY|zZzzzzzZzZzzzzzZZzzzZzzzZzzZZzzzzzzZZzZzzzZZZzzZzZzzzZZzzzzzZzzz' \
'http://local.wordpress.local/wp-json/wp/v2/settings'
$ curl -H 'X-WP-NONCE: ooO0o00o00' --cookie \
'wordpress_logged_in_wwWwwwWwwwWWwwwwwWwwwWWwwWWWwwwww=admin|xxxxxxxxxx|YYyyYyyyyYyYyYYYYYyyyYYyyyyYyyYYyyyyyyYYyyY|zZzzzzzZzZzzzzzZZzzzZzzzZzzZZzzzzzzZZzZzzzZZZzzZzZzzzZZzzzzzZzzz' \
'http://local.wordpress.local/wp-json/wp/v2/settings'
Output:
(prettified, I recommend the jq
command line tool)
{
"title": "wordpress.local",
"description": "Just another WordPress site",
"url": "http://local.wordpress.local",
"email": "[email protected]",
"timezone": "",
"date_format": "F j, Y",
"time_format": "g:i a",
"start_of_week": 1,
"language": "",
"use_smilies": true,
"default_category": 1,
"default_post_format": "0",
"posts_per_page": 10,
"default_ping_status": "open",
"default_comment_status": "open"
}