{
  "slug": "shopify-app-and-store-graphiql-commands-open-authenticated-local-sessions-02f99870aa01",
  "title": "shopify app and store graphiql commands open authenticated local sessions",
  "tools": [
    "shopify"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-06T16:56:33.000Z",
  "announced_at": "2026-07-06T16:56:33.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When inspecting Admin API queries for an app, run `shopify app graphiql` with the selected store; the app must be installed there. For store authentication, first run `shopify store auth`, then run `shopify store graphiql`; pass `--allow-mutations` if mutations should be allowed.",
    "examples": [
      "shopify app graphiql --store <store>.myshopify.com",
      "shopify store auth --store <store>.myshopify.com --scopes <comma-separated-scopes>\nshopify store graphiql --store <store>.myshopify.com",
      "shopify store graphiql --store <store>.myshopify.com --allow-mutations"
    ],
    "gotchas": [
      "Version: 4.4.0",
      "app graphiql --store <value>: The myshopify.com domain; if omitted, CLI prompts for a store. The app must be installed on it.",
      "app graphiql --port <value>: Local GraphiQL server port; must be between 1 and 65535.",
      "app graphiql --path <value>: Path to the app directory.",
      "app graphiql --version <value>: GraphiQL API version; defaults to latest stable.",
      "app graphiql --variables <value>: GraphQL variable values in JSON format.",
      "store graphiql --store <value> (required): The myshopify.com domain of the store.",
      "store graphiql --allow-mutations: Allow GraphQL mutations against the target store; mutations are blocked by default.",
      "store graphiql --port <value>: Local GraphiQL server port; must be between 1 and 65535.",
      "store graphiql --version <value>: GraphiQL API version; defaults to latest stable.",
      "store graphiql --variables <value>: GraphQL variable values in JSON format.",
      "store auth --store <value> (required): The myshopify.com domain of the store.",
      "store auth --scopes <value> (required): Comma-separated Admin API scopes to request for the app.",
      "Prerequisite: For app GraphiQL, the app must be installed on the selected store.",
      "Prerequisite: For store GraphiQL, run `shopify store auth` first to create stored authentication.",
      "The app must be installed on the store for app-backed GraphiQL.",
      "Store GraphiQL uses authentication created by `shopify store auth`; mutations are blocked unless `--allow-mutations` is passed.",
      "The local port must be between 1 and 65535."
    ]
  },
  "why_it_matters": "Inspect or test Admin API queries for an app or store from a local GraphiQL session.",
  "sources": [
    "https://github.com/Shopify/cli/releases/tag/4.4.0",
    "https://github.com/Shopify/cli/pull/7382",
    "https://shopify.dev/docs/api/shopify-cli/app/app-graphiql",
    "https://shopify.dev/docs/api/shopify-cli/store/store-auth",
    "https://shopify.dev/docs/api/shopify-cli/store/store-graphiql"
  ],
  "rank": 0.98051,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-6148374bb900d529-9:gate",
    "evidence_hash": "b3174bbe0c432619f4aeafa67227b20250a2f7c4280a3bc8d63d72da602167cd"
  },
  "review": {
    "draft_hash": "9b573778da3fbe3172211c615a285365b34451590d313ec8e3352d48c34f6a5b",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.81 (>= 0.6 needed)."
  }
}
