The prometheus query prompt

Hello folks, In the " Prometheus Certified Associate" course videos, the instructor uses a command line
query prompt to run the promQL queries, instead of the prometheus UI. How to get this
command line prompt for promQL queries ?

I believe the tool you want is “promtool”, since promtool promql will do just that.

The easiest way to get promtool is to get the main prometheus binaries from the releases page. promtool is in the same archive as prometheus itself.