dataflare-cli
v0.8.4
Published
Agent-first analytics in your own Cloudflare account. `npx dataflare-cli init` deploys it.
Maintainers
Readme
dataflare
The CLI for Dataflare: open-source, agent-first analytics (web, product, session replay, A/B tests) that runs in your own Cloudflare account.
CLOUDFLARE_API_TOKEN=… npx dataflare-cli initdataflare init creates a D1 database, an R2 bucket and a Worker in your account, then prints the snippet for your framework and writes AGENTS.md, a Claude Code skill and .mcp.json so your coding agent can use Dataflare straight away.
npx dataflare-cli status # check the deployment end to end
npx dataflare-cli query web --from -7d # ask questions from the terminal
npx dataflare-cli query funnel --steps '$pageview,signup_completed'
npx dataflare-cli sql "SELECT event, COUNT(*) AS n FROM events GROUP BY event"
npx dataflare-cli flags set new-checkout --variants control:50,test:50
npx dataflare-cli mcp # MCP server over stdio (what .mcp.json runs)
npx dataflare-cli@latest upgrade # stage a new version into .glass/ (CI deploys it)
npx dataflare-cli ci # write the GitHub Actions workflow that deploys .glass/
npx dataflare-cli --helpEvery command takes --json. Docs: getting started, agents. License: MIT.
