Try
sudo sqlite3 /etc/pihole/gravity.db "INSERT INTO adlist (address, enabled, comment) VALUES ('https://https://domain.com/blocklist.txt', 1, 'ANTI Tracking');"
Add
There's no nees to re-invent the wheel. Multiple solution for central management of multiple piholes exist. One of them: