CLI Reference
CLI Reference
Complete command reference for agh-cli, organized by functional area.
Client operations
Manage AdGuard Home clients including listing, adding, updating, and deleting.
| Command | Description |
|---|---|
| add | Add a client |
| delete | Delete a client |
| list | List clients |
| update | Update a client |
Filtering operations
Manage AdGuard Home filtering configuration, rules, and filter URLs.
| Command | Description |
|---|---|
| add-url | Add a filter URL |
| config | Update filtering configuration |
| remove-url | Remove a filter URL |
| status | Get filtering status |
Manage configured AdGuard Home instances
List, add, and remove AdGuard Home instance configurations, and manage the credentials those instances use.
| Command | Description |
|---|---|
| add | Add a new instance configuration |
| credentials | Manage stored instance credentials |
| list | List configured instances |
| remove | Remove an instance configuration |
DNS rewrite rule operations
Create, read, update, and delete DNS rewrite rules on one or more AdGuard Home instances.
| Command | Description |
|---|---|
| add | Add a rewrite rule |
| delete | Delete a rewrite rule |
| diff | Compare rewrite rules between instances or against a file |
| list | List rewrite rules |
| settings | Rewrite settings operations |
| update | Update a rewrite rule |
| wildcard | Wildcard rewrite rule operations |
Version
Print the application version, including commit SHA and build details.
| Command | Description |
|---|---|
| version | Print the application version |