Open dossy opened 5 years ago
Running wp --http=wordpress.com rest status list
fails because it probably has REST API disabled. On other default installs the command (with the domain replaced) works.
This package doesn't seem to support the http
parameter in the YAML file, and always requires a --http=domain.com
somewhere on the command line.
I'm trying to use
wp-cli/restful
with aliases where I can specify the domain usinghttp: domain
in my~/.wp-cli/config.yml
and it doesn't appear to work, likewp-cli
is ignoring thehttp
key in the configuration if it's in an alias.Create
~/wp-cli.config.yml
with just the following:Then, try the following:
I would have expected the
wp @test-http rest status list
to return the same output aswp --http=wordpress.com rest status list
, but instead it behaves as thoughhttp
isn't set.