Download Import Script
Download our Cloudflare D1 import script:Usage
Run the script with your Cloudflare D1 database name and ChartDB information:-r flag:
Required Parameters
-dCloudflare D1 database name-aChartDB API key-tTarget diagram ID
Optional Parameters
-rUse remote database (if not specified, uses local database)
Automated Daily Updates
To automatically update your diagram daily using cron, add the following line to your crontab:Note: Replace
/path/to/cloudflare-d1-import.sh with the absolute path to
the script and adjust the database name accordingly. The log file path
(/path/to/d1-import.log) should be in a directory where your user has write
permissions.
