ideas icon indicating copy to clipboard operation
ideas copied to clipboard

Calculate WP-CLI command usage frequency

Open danielbachhuber opened this issue 9 years ago • 3 comments

To give developers more visibility into their WP-CLI usage, it would be neat if they had an easy way to access command frequency.

In fact, if we knew which commands they used and how often, we could tell them how much time they've saved (because we can produce estimates of time savings vs. equivalent effort through the web).

Grepping bash history would be one way of calculating command execution. Alternatively, we could add a logger on the before_invoke hook.

danielbachhuber avatar Jan 11 '17 21:01 danielbachhuber

I'd love to see this data optionally submitted to the upstream wp-cli project to see what commands people use all the time and which ones nobody uses. Would help focus efforts on what is most useful, or show places where maybe the documentation or clarity of the command is lacking and people can't find it or don't know how to use it.

TheLastCicada avatar Jan 15 '17 19:01 TheLastCicada

I would love to see this implemented till i have a way to ensure what goes out of my system and what doesn't. I would prefer to read the stats but sending it out to wp-cli would be something i might not be comfortable with (specially not with all my projects)

anantshri avatar Jan 19 '17 14:01 anantshri

Opt-in telemetry would be interesting, though not sure what we'd need that information for. Personally as a user, local stats wouldn't be useful to me. But if someone wants to do it, I suppose it could be added via a userland command first.

swissspidy avatar Nov 11 '23 11:11 swissspidy