A. Command Reference
Appendices
Basic Commands
System Management
pihole -g- Update the list of ad-serving domainspihole status- Display the running status of Pi-hole subsystemspihole enable- Enable Pi-hole subsystemspihole disable [time]- Disable Pi-hole subsystems- Time options:
#s(seconds),#m(minutes) - Example:
pihole disable 5m- Disable for 5 minutes
- Time options:
DNS Management
pihole restartdns- Full restart of Pi-hole subsystemsreload- Updates lists and flushes DNS cachereload-lists- Updates lists without flushing DNS cache
List Management
pihole -w [domain(s)]- Add domains to whitelistpihole -b [domain(s)]- Add domains to blacklistpihole --wild [domain(s)]- Add wildcard domains to blacklistpihole --white-wild [domain(s)]- Add wildcard domains to whitelistpihole --regex [regex]- Add regex filters to blacklistpihole --white-regex [regex]- Add regex filters to whitelist
List manipulation options:
-d, --delmode- Remove domain(s)-nr, --noreload- Update without refreshing dnsmasq-q, --quiet- Less verbose output-l, --list- Display all listed domains--nuke- Remove all entries in a list
System Maintenance
pihole -f- Flush the Pi-hole logpihole -r- Reconfigure or repair Pi-holepihole -up- Update Pi-hole subsystems--check-only- Check for updates without installing
pihole uninstall- Uninstall Pi-hole
Administrative Functions
Web Interface
pihole -a -p password- Set Web Interface passwordpihole -a -l privacylevel- Set privacy level (0-3)pihole -a -i interface- Specify dnsmasq's interface
Temperature Units
pihole -a -c- Set to Celsiuspihole -a -f- Set to Fahrenheitpihole -a -k- Set to Kelvin
Logging
pihole -l on- Enable loggingpihole -l off- Disable and flush logspihole -l off noflush- Disable logging without flushingpihole -t [arg]- View live output of Pi-hole log- Optional argument to filter log (supports regex)
Development and Debugging
Version Management
pihole -v- Show versions of Pi-hole components-p, --pihole- Pi-hole core version-a, --admin- Web interface version-f, --ftl- FTL version-c, --current- Current version-l, --latest- Latest version--hash- Show GitHub hash
Branch Management
pihole checkout [repo] [branch]
- Repos:
core,web,ftl - Branches:
master,dev, or specific branch name
Debugging
pihole -d- Start debugging session-a- Enable automated debugging
Query Tools
pihole -q [options]- Query adlists for domains-adlist- Print block list URL-exact- Search for exact matches-all- Show all query matches
Something here not working for you? Ask in the community — other makers and the Little Bird team read it.