Designed for command-line users
Website |
Reddit |
Twitter |
Telegram
- AdGuard CLI is not an open source project. We use GitHub as an open bug tracker for users to see what developers are working on. However, we at AdGuard create a lot of open source software.
- Privacy policy: https://adguard.com/privacy.html
AdGuard CLI is the command-line version of AdGuard Ad Blocker. Learn more about it in our Knowledge base.
To install the latest version of AdGuard CLI, run the following command:
Release channel:
curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardCLI/release/install.sh | sh -s -- -vBeta channel:
curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardCLI/beta/install.sh | sh -s -- -vNightly channel:
curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardCLI/nightly/install.sh | sh -s -- -vInside an archive file, there is a small file with a .sig extension that contains the signature data. In a hypothetical situation where the binary file inside an archive is replaced by someone, you’ll know it isn’t an official release from AdGuard.
To verify the signature, you need to have the gpg tool installed.
First, import the AdGuard public key:
gpg --keyserver 'keys.openpgp.org' --recv-key '28645AC9776EC4C00BCE2AFC0FE641E7235E2EC6'Then, verify the signature:
gpg --verify /opt/adguard_cli/adguard-cli.sig If you use a custom installation path, replace /opt/adguard_cli/adguard-cli.sig with the path to the signature file. It should be in the same directory as the binary file.
You’ll see something like this:
gpg: assuming signed data in 'adguard-cli'
gpg: Signature made Fri Nov 15 13:20:43 2024 +02
gpg: using RSA key 28645AC9776EC4C00BCE2AFC0FE641E7235E2EC6
gpg: issuer "devteam@adguard.com"
gpg: Good signature from "AdGuard <devteam@adguard.com>" [ultimate]
Check the following:
- RSA key: must be
28645AC9776EC4C00BCE2AFC0FE641E7235E2EC6; - Issuer name: must be
AdGuard; - Email address: must be
devteam@adguard.com.
There may also be the following warning:
gpg: WARNING: The key's User ID is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 2864 5AC9 776E C4C0 0BCE 2AFC 0FE6 41E7 235E 2EC6
Run adguard-cli [command] to use AdGuard CLI. Below are the available commands and their options:
-h, --helpPrint this help message and exit--help-allShow all available commands, subcommands, and options-v, --versionDisplay program version information and exit
activateActivate an AdGuard licensereset-licenseReset an AdGuard licenseconfigureRun the configuration wizardstartStart AdGuard CLIstopStop AdGuard CLIstatusShow the status of AdGuard CLIlicenseShow license informationconfigConfigure AdGuard CLIshowShow current configuration fromproxy.yamlsetSet a single option inproxy.yaml, e.g.: -listen_ports.http_proxysets the HTTP listen port -proxy_modesets the proxy mode (manual or auto)getGet a single option fromproxy.yaml
check-updateCheck for updatesupdateUpdate AdGuard CLI-v, --verboseShow update script output
filtersManage filterslistList installed and added filters, or all available filters if--allis specifiedaddAdd internal filter, by ID or nameinstallInstall a custom filterremoveRemove internal or custom filterenableEnable the filter (Rules from this filter will be applied)disableDisable the filter (Rules from this filter will no longer be applied)updateUpdate filters
export-logsExport logs to a zip file-o, --output TEXTPath to the output artifact. Can be a directory-f, --forceOverwrite the output artifact without asking
