Pi CLI
v20240309-041106

pihole-FTL.db database used a long term data store
for a Pi-Hole. It can extract and analyse all time data, including client, query and ad domain data.~$ picli [global options] command [command options] [arguments...]For help, run ~$ picli h
For command help, run ~$ picli <command> h
For subcommand help, run ~$ picli <command> -h
setup, s Configure Pi-CLI
config, c Interact with stored configuration settings
run, r Run a one off command without booting the live view
database, d Analytics options to run on a Pi-Hole's FTL database
help, h Shows a list of commands or help for one command
config commandManage stored config data
delete, d Delete stored config data (config file and API key)
view, v View config stored config data (config file and API key)
help, h Shows a list of commands or help for one command
run commandRun a single command without the live view
summary, s Extract a basic summary of data from the Pi-Hole
top-forwarded, tf Extract the current top 10 forwarded DNS queries
top-blocked, tb Extract the current top 10 blocked DNS queries
latest-queries, lq Extract the latest queries
enable, e Enable the Pi-Hole
disable, d Disable the Pi-Hole
help, h Shows a list of commands or help for one command
database commandThese commands are ran against a Pi-Hole's FTL database file and provide all time data metrics
client-summary, cs Summary of all Pi-Hole clients
top-queries, tq Returns the top (all time) queries
help, h Shows a list of commands or help for one command
Where do I get my API key?
Pre-Compiled binaries?
How do I compile myself?
Makefile in the
cmd/main directory that can be used for compilation
on Windows, Mac and Linux.Compilation targets are: win, mac and linux
If you find Pi-CLI useful, please consider donating to the Pi-Hole project
Or, feel free to submit code to make Pi-CLI even more useful!