@shopify/cli-kit
    Preparing search index...

    Function readStdinString

    • Reads all data from stdin and returns it as a string. This is useful for commands that accept input via piping.

      Returns Promise<string | undefined>

      A promise that resolves with the stdin content, or undefined if stdin is a TTY.

      // Usage: echo "your query" | shopify app execute
      const query = await readStdin()