Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add a GraphQL Analytics API query command

Open
#171 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
graphql, typescript
Domain
api, cli

Research direction

Start by reading the CLI command registration and configuration handling to see how existing analytics commands obtain account and zone values. The issue proposes a GraphQL query command or a generic raw API command, but does not identify an entry point or settle the interface; clarify that scope before implementation. Done means the CLI can query datasets such as workersInvocationsAdaptive with account and zone supplied from config.

Written by the indexing model from the issue text.

Description

upstream

Version: cf 1.0.0-beta.10

Problem: There's no command for the GraphQL Analytics API (/client/v4/graphql). cf cli search "run graphql analytics query" returns analytics query timeseries/summary (zone traffic) and analytics_engine sql query, but nothing that can query datasets like workersInvocationsAdaptive or workersInvocationsScheduled.

Why it matters: Several operational questions are answered only in GraphQL, such as "did this Worker's cron fire in the last hour?" and per-script invocation and error counts.

Request: cf graphql --query @file.graphql --var key=value (account and zone filled in from the config), or cover it with a generic cf api command (see the raw-request issue).

Dominant language
TypeScript
Stars
853
Forks
42
Avg merge
17h 57m
Merged PRs (30d)
146

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloudflare/cf

All issues in cloudflare/cf

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.