ax events query [FLAGS] [OPTIONS] <NODE> <query>
-h, --help Prints help information
-j, --json Format output as JSON
-V, --version Prints version information
-v Verbosity level. Add more v for higher verbosity (-v, -vv, -vvv, etc.)
-i, --identity <identity> File from which the identity (private key) for authentication is read
<NODE> the IP address or <host>:<admin port> of the node to perform the operation on
<query> event API query
This command allows you to submit a query to a remote node, tunneled through the admin port. For more details on the format of such queries please refer to the AQL docs.
$ ax events query localhost 'FROM "a"' | jq .
The above assumes a Unix-like shell where single quotes provide argument quoting.
cmd.exe on Windows you’ll probably want to use double quotes and switch to single quotes within the query:
(The example above uses the
jq utility to nicely format the JSON output.)