Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce WP-CLI stream command #499

Closed
westonruter opened this issue May 2, 2014 · 7 comments

Comments

Projects
None yet
4 participants
@westonruter
Copy link
Contributor

commented May 2, 2014

It would be really cool if Stream data could be queried via WP-CLI, and if settings could be updated.

For example, there should be a wp stream log command that takes the filter arguments like --author=1 or --context=sidebars.

Also, a cool use case would be something like wp stream log --tail which would output a continual stream of entries as they come in. The PHP process would keep running until Ctrl-C. Basically like Heartbeat on the command line. You could then pipe the results into something else.

@westonruter

This comment has been minimized.

Copy link
Contributor Author

commented May 20, 2014

Not sure how this would mesh with the Stream Data Exporter plugin, i.e. which would be responsible for what.

@shadyvb

This comment has been minimized.

Copy link
Contributor

commented May 20, 2014

@westonruter Can't see an intersection unless you're talking about a wp stream export command.

@westonruter

This comment has been minimized.

Copy link
Contributor Author

commented May 20, 2014

Just that wp stream log really would do the exact same thing as the exporter, but just at the CLI level.

@fjarrett

This comment has been minimized.

Copy link
Contributor

commented Jan 23, 2015

I've created a Query Reference in our Wiki that can be used as a guide when using the WP-CLI command.

@fjarrett

This comment has been minimized.

Copy link
Contributor

commented Jan 28, 2015

Released in 2.0.3

@fjarrett fjarrett closed this Jan 28, 2015

@szepeviktor

This comment has been minimized.

Copy link
Contributor

commented Feb 24, 2015

Could you please include the Query Ref. as PHP-doc?
E.g. https://github.com/wp-cli/wp-cli/blob/master/php/commands/post.php#L218-L278

@fjarrett

This comment has been minimized.

Copy link
Contributor

commented Feb 24, 2015

Hi @szepeviktor, thanks for the suggestion.

Would you be willing to provide a pull request for this?

We have Query Parameters documented in the wiki. Otherwise we will just add these to the docblock when we get around to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.