2020-04-04 19:45:09 +00:00
.TH "Pi-hole" "8" "Pi-hole" "Pi-hole" "April 2020"
2018-06-01 23:39:51 +00:00
.SH "NAME"
Pi-hole : A black-hole for internet advertisements
.br
.SH "SYNOPSIS"
2024-12-16 11:42:07 +00:00
\fB pihole\fR (\fB -allow\fR |\fB -deny\fR ) [options] domain(s)
2018-06-01 23:39:51 +00:00
.br
2024-12-16 11:42:07 +00:00
\fB pihole\fR (\fB --allow-regex\fR |\fB --regex\fR ) [options] domain(s)
.br
\fB pihole\fR (\fB --allow-wild\fR |\fB --wild\fR ) [options] domain(s)
2018-06-01 23:39:51 +00:00
.br
2024-12-16 11:42:07 +00:00
\fB pihole setpassword\fR password
2018-06-01 23:39:51 +00:00
.br
2024-12-16 11:42:07 +00:00
\fB pihole\fR \fB -d\fR [-a] [-c]
2018-06-01 23:39:51 +00:00
.br
\fB pihole -f
.br
pihole -r
.br
2022-12-28 13:33:36 +00:00
\fB pihole\fR \fB -t\fR [arg]
2018-06-01 23:39:51 +00:00
.br
2024-12-16 11:42:07 +00:00
\fB pihole -g\fR
2018-06-01 23:39:51 +00:00
.br
\fB pihole\fR -\fB q\fR [options]
.br
2018-06-02 04:13:30 +00:00
\fB pihole\fR \fB -l\fR (\fB on|off|off noflush\fR )
2018-06-01 23:39:51 +00:00
.br
2019-06-30 06:02:51 +00:00
\fB pihole -up \fR [--check-only]
2018-06-01 23:39:51 +00:00
.br
2024-12-16 11:42:07 +00:00
\fB pihole -v\fR
2018-06-02 04:13:30 +00:00
.br
2024-12-16 11:42:07 +00:00
\fB pihole uninstall\fR
2018-06-01 23:39:51 +00:00
.br
2024-12-16 11:42:07 +00:00
\fB pihole status\fR
2018-06-01 23:39:51 +00:00
.br
2024-12-16 11:42:07 +00:00
\fB pihole reloaddns\fR
2024-10-02 20:51:56 +00:00
.br
2024-12-16 11:42:07 +00:00
\fB pihole reloadlists\fR
2018-06-01 23:39:51 +00:00
.br
\fB pihole\fR (\fB enable\fR |\fB disable\fR [time])
.br
\fB pihole\fR \fB checkout\fR repo [branch]
.br
2024-12-16 11:42:07 +00:00
\fB pihole\fR \a pi\fR endpoint
.br
2018-06-01 23:39:51 +00:00
\fB pihole\fR \fB help\fR
.br
.SH "DESCRIPTION"
Available commands and options:
.br
2024-06-25 11:56:49 +00:00
\fB allow, allowlist\fR [options] [<domain1> <domain2 ...>]
2018-06-01 23:39:51 +00:00
.br
2024-06-25 11:56:49 +00:00
Adds or removes specified domain or domains to the Allowlist
2018-06-01 23:39:51 +00:00
.br
2024-06-25 11:56:49 +00:00
\fB deny, denylist\fR [options] [<domain1> <domain2 ...>]
2018-06-01 23:39:51 +00:00
.br
2024-06-25 11:56:49 +00:00
Adds or removes specified domain or domains to the denylist
2018-06-01 23:39:51 +00:00
.br
2019-07-22 20:26:27 +00:00
\fB --regex, regex\fR [options] [<regex1> <regex2 ...>]
.br
2024-06-25 11:56:49 +00:00
Add or removes specified regex filter to the regex denylist
2019-07-22 20:26:27 +00:00
.br
2024-06-25 11:56:49 +00:00
\fB --allow-regex\fR [options] [<regex1> <regex2 ...>]
2019-07-22 20:26:27 +00:00
.br
2024-06-25 11:56:49 +00:00
Add or removes specified regex filter to the regex allowlist
2019-07-22 20:26:27 +00:00
.br
2018-07-13 01:38:43 +00:00
\fB --wild, wildcard\fR [options] [<domain1> <domain2 ...>]
2018-06-01 23:39:51 +00:00
.br
2024-06-25 11:56:49 +00:00
Add or removes specified domain to the wildcard denylist
2018-07-08 18:37:33 +00:00
.br
2024-06-25 11:56:49 +00:00
\fB --allow-wild\fR [options] [<domain1> <domain2 ...>]
2018-07-08 18:37:33 +00:00
.br
2024-06-25 11:56:49 +00:00
Add or removes specified domain to the wildcard allowlist
2018-06-01 23:39:51 +00:00
.br
2018-06-02 04:13:30 +00:00
2024-06-25 11:56:49 +00:00
(Allow-/denylist manipulation options):
2018-06-01 23:39:51 +00:00
.br
2024-06-25 11:56:49 +00:00
not, -d, --delmode Remove domain(s) from the list
2018-06-01 23:39:51 +00:00
.br
2024-06-25 11:56:49 +00:00
-q, --quiet Make output less verbose
2018-06-01 23:39:51 +00:00
.br
2024-06-25 11:56:49 +00:00
-l, --list Display all your listed domains
2018-06-01 23:39:51 +00:00
.br
2018-06-03 12:15:26 +00:00
\fB -d, debug\fR [-a]
2018-06-01 23:39:51 +00:00
.br
2018-06-03 12:15:26 +00:00
Start a debugging session
2018-06-02 04:13:30 +00:00
.br
-a Enable automated debugging
2024-12-16 11:42:07 +00:00
-c Include a Pi-hole database integrity check
2018-06-01 23:39:51 +00:00
.br
\fB -f, flush\fR
.br
2018-06-02 04:13:30 +00:00
Flush the Pi-hole log
2018-06-01 23:39:51 +00:00
.br
2018-06-03 12:15:26 +00:00
2018-06-01 23:39:51 +00:00
\fB -r, reconfigure\fR
.br
2018-06-02 04:13:30 +00:00
Reconfigure or Repair Pi-hole subsystems
2018-06-01 23:39:51 +00:00
.br
2022-12-28 13:33:36 +00:00
\fB -t, tail\fR [arg]
2018-06-01 23:39:51 +00:00
.br
2018-06-02 04:13:30 +00:00
View the live output of the Pi-hole log
2018-06-01 23:39:51 +00:00
.br
2022-12-28 13:33:36 +00:00
[arg] Optional argument to filter the log for
(regular expressions are supported)
.br
2018-06-03 12:15:26 +00:00
\fB -g, updateGravity\fR
2018-06-01 23:39:51 +00:00
.br
2018-06-02 04:13:30 +00:00
Update the list of ad-serving domains
2018-06-01 23:39:51 +00:00
.br
2018-06-03 12:15:26 +00:00
\fB -q, query\fR [option]
2018-06-01 23:39:51 +00:00
.br
2018-06-02 04:13:30 +00:00
Query the adlists for a specified domain
2018-06-01 23:39:51 +00:00
.br
2018-06-02 04:13:30 +00:00
(Query options):
2018-06-01 23:39:51 +00:00
.br
2024-12-16 11:42:07 +00:00
-partial Search the adlists for partially matching domains
2018-06-01 23:39:51 +00:00
.br
2024-12-16 11:42:07 +00:00
-all Return all query matches within a adlists
2018-06-01 23:39:51 +00:00
.br
2018-06-03 12:15:26 +00:00
\fB -h, --help, help\fR
2018-06-01 23:39:51 +00:00
.br
2018-06-02 04:13:30 +00:00
Show a help dialog
2018-06-01 23:39:51 +00:00
.br
2018-06-30 03:34:15 +00:00
\fB -l, logging\fR [on|off|off noflush]
2018-06-01 23:39:51 +00:00
.br
2018-06-30 03:34:15 +00:00
Specify whether the Pi-hole log should be used
2018-06-01 23:39:51 +00:00
.br
2024-07-02 18:52:44 +00:00
(Logging options):
2018-06-01 23:39:51 +00:00
.br
2020-09-05 13:15:03 +00:00
on Enable the Pi-hole log at /var/log/pihole/pihole.log
2018-06-01 23:39:51 +00:00
.br
2018-07-29 01:28:25 +00:00
off Disable and flush the Pi-hole log at
2020-09-05 13:15:03 +00:00
/var/log/pihole/pihole.log
2018-06-01 23:39:51 +00:00
.br
2020-09-05 13:15:03 +00:00
off noflush Disable the Pi-hole log at /var/log/pihole/pihole.log
2018-06-01 23:39:51 +00:00
.br
2018-06-03 12:15:26 +00:00
2018-06-03 23:54:53 +00:00
\fB -up, updatePihole\fR [--check-only]
2018-06-01 23:39:51 +00:00
.br
2018-06-03 12:15:26 +00:00
Update Pi-hole subsystems
2018-06-01 23:39:51 +00:00
.br
2018-06-02 04:13:30 +00:00
--check-only Exit script before update is performed.
2018-06-01 23:39:51 +00:00
.br
2024-12-16 11:42:07 +00:00
\fB -v, version\fR
2018-06-01 23:39:51 +00:00
.br
2018-06-02 04:13:30 +00:00
Show installed versions of Pi-hole, Web Interface & FTL
2018-06-01 23:39:51 +00:00
.br
2018-06-30 03:34:15 +00:00
2024-12-16 11:08:16 +00:00
\fB setpassword\fR
.br
Set Web Interface password
.br
2018-06-01 23:39:51 +00:00
\fB uninstall\fR
.br
2018-06-02 04:13:30 +00:00
Uninstall Pi-hole from your system
2018-06-01 23:39:51 +00:00
.br
\fB status\fR
.br
2018-06-02 04:13:30 +00:00
Display the running status of Pi-hole subsystems
2018-06-01 23:39:51 +00:00
.br
2024-12-16 11:42:07 +00:00
\fB enable\fR [time]
2018-06-01 23:39:51 +00:00
.br
2024-12-16 11:42:07 +00:00
Enable Pi-hole blocking, optionally for a set duration
2018-06-01 23:39:51 +00:00
.br
2018-06-02 04:46:45 +00:00
\fB disable\fR [time]
2018-06-01 23:39:51 +00:00
.br
2024-12-16 11:42:07 +00:00
Disable Pi-hole blocking, optionally for a set duration
2018-06-01 23:39:51 +00:00
.br
2018-06-03 12:15:26 +00:00
2018-06-30 03:34:15 +00:00
(time options):
2018-06-01 23:39:51 +00:00
.br
2018-06-02 04:13:30 +00:00
#s Disable Pi-hole functionality for # second(s)
2018-06-01 23:39:51 +00:00
.br
2018-06-02 04:13:30 +00:00
#m Disable Pi-hole functionality for # minute(s)
2018-06-01 23:39:51 +00:00
.br
2024-09-24 13:15:15 +00:00
\fB reloaddns\fR
2018-06-01 23:39:51 +00:00
.br
2024-09-24 13:15:15 +00:00
Update the lists and flush the cache without restarting the DNS server
2020-04-04 19:45:09 +00:00
.br
2024-10-02 18:31:39 +00:00
\fB reloadlists\fR
2020-04-04 19:45:09 +00:00
.br
2024-09-24 13:15:15 +00:00
Update the lists WITHOUT flushing the cache or restarting the DNS server
2018-06-01 23:39:51 +00:00
.br
2018-06-03 12:15:26 +00:00
\fB checkout\fR [repo] [branch]
2018-06-01 23:39:51 +00:00
.br
2020-05-13 10:49:00 +00:00
Switch Pi-hole subsystems to a different GitHub branch
2018-06-01 23:39:51 +00:00
.br
2018-06-02 04:13:30 +00:00
(repo options):
2018-06-01 23:39:51 +00:00
.br
2018-06-02 04:13:30 +00:00
core Change the branch of Pi-hole's core subsystem
2018-06-01 23:39:51 +00:00
.br
2018-06-02 04:13:30 +00:00
web Change the branch of Admin Console subsystem
2018-06-01 23:39:51 +00:00
.br
2018-06-02 04:13:30 +00:00
ftl Change the branch of Pi-hole's FTL subsystem
2018-06-01 23:39:51 +00:00
.br
2018-06-02 04:13:30 +00:00
(branch options):
2018-06-01 23:39:51 +00:00
.br
2018-06-02 04:13:30 +00:00
master Update subsystems to the latest stable release
2018-06-01 23:39:51 +00:00
.br
2018-07-29 01:28:25 +00:00
dev Update subsystems to the latest development
release
2018-06-02 04:13:30 +00:00
.br
branchname Update subsystems to the specified branchname
2018-06-01 23:39:51 +00:00
.br
2024-12-16 11:42:07 +00:00
\fB api\fR endpoint
.br
Query the Pi-hole API at <endpoint>
.br
2018-06-01 23:39:51 +00:00
.SH "EXAMPLE"
2018-06-02 04:13:30 +00:00
2018-06-01 23:39:51 +00:00
Some usage examples
.br
2024-06-25 11:56:49 +00:00
Allow-/denylist manipulation
2018-06-01 23:39:51 +00:00
.br
2024-06-25 11:56:49 +00:00
\fB pihole allow iloveads.example.com\fR
2018-07-08 18:37:33 +00:00
.br
2024-06-25 11:56:49 +00:00
Allow "iloveads.example.com"
2018-06-01 23:39:51 +00:00
.br
2018-07-29 01:28:25 +00:00
2024-12-16 11:42:07 +00:00
\fB pihole deny remove noads.example.com\fR
2018-06-01 23:39:51 +00:00
.br
2024-06-25 11:56:49 +00:00
Removes "noads.example.com" from denylist
2018-06-01 23:39:51 +00:00
.br
2018-07-29 01:28:25 +00:00
\fB pihole --wild example.com\fR
.br
Adds example.com as a wildcard - would block all subdomains of
example.com, including example.com itself.
2018-06-01 23:39:51 +00:00
.br
2018-06-03 12:15:26 +00:00
2018-07-29 01:28:25 +00:00
\fB pihole --regex "ad.*\\ .example\\ .com$"\fR
.br
Adds "ad.*\\ .example\\ .com$" to the regex blacklist.
Would block all subdomains of example.com which start with "ad"
2018-06-01 23:39:51 +00:00
.br
2018-07-29 01:28:25 +00:00
Changing the Web Interface password
2018-06-01 23:39:51 +00:00
.br
2018-06-03 12:15:26 +00:00
2024-12-16 11:08:16 +00:00
\fB pihole setpassword ExamplePassword\fR
2018-07-29 01:28:25 +00:00
.br
Change the password to "ExamplePassword"
2018-06-01 23:39:51 +00:00
.br
2018-07-29 01:28:25 +00:00
Updating lists from internet sources
2018-06-01 23:39:51 +00:00
.br
2018-06-03 12:15:26 +00:00
2018-07-29 01:28:25 +00:00
\fB pihole -g\fR
.br
Update the list of ad-serving domains
2018-06-01 23:39:51 +00:00
.br
2018-06-03 12:15:26 +00:00
2018-07-29 01:28:25 +00:00
Displaying version information
2018-06-01 23:39:51 +00:00
.br
2018-06-03 12:15:26 +00:00
2024-12-16 11:42:07 +00:00
\fB pihole -v\fR
2018-07-29 01:28:25 +00:00
.br
2024-12-16 11:42:07 +00:00
Display the current version of Pi-hole
2018-06-01 23:39:51 +00:00
.br
2018-06-03 12:15:26 +00:00
2018-07-29 01:28:25 +00:00
Temporarily disabling Pi-hole
.br
\fB pihole disable 5m\fR
.br
Disable Pi-hole functionality for five minutes
.br
Switching Pi-hole subsystem branches
.br
\fB pihole checkout master\fR
.br
Switch to master branch
2018-06-01 23:39:51 +00:00
.br
2018-06-03 12:15:26 +00:00
2018-07-29 01:28:25 +00:00
\fB pihole checkout core dev\fR
2018-06-01 23:39:51 +00:00
.br
2018-07-29 01:28:25 +00:00
Switch to core development branch
2018-06-01 23:39:51 +00:00
.br
2019-06-15 07:12:44 +00:00
\fB pihole arpflush\fR
.br
Flush information stored in Pi-hole's network tables
.br
2024-12-16 11:42:07 +00:00
\fB pihole api stats/summary\fR
2018-06-01 23:39:51 +00:00
.br
2024-12-16 11:42:07 +00:00
Queries FTL for the stats/summary endpoint
.br
2018-06-01 23:39:51 +00:00
.SH "COLOPHON"
Get sucked into the latest news and community activity by entering Pi-hole's orbit. Information about Pi-hole, and the latest version of the software can be found at https://pi-hole.net.
.br