Question: Group/client command line option

I searched but couldn't find.

Is it possible to perform operations on the clients, groups and blocked domains from the command line? For example, adding a new client, activating/deactivating domains, enable/disable groups.

Thanks

From the draft release notes for the upcoming V5.0:

We added a dashboard interface (Group Management) to be able to easily use this powerful new functionality, however, there is currently no CLI interface through the pihole command. If you want to manage groups from the CLI, you’ll have to directly interact with the database. We prepared an extensive example in our official documentation showing some possible configurations once through the web interface but also how to achieve the same thing through the CLI.

https://deploy-preview-201--pihole-docs.netlify.app/database/gravity/example/

1 Like