Shopify CLI Integration Error

Topic summary

A developer encounters a build error when attempting to run shopify theme pull -e development in VS Code.

The error message indicates:

  • Primary issue: Failed to build native gem extension
  • Root cause: bundle install command failed with exit code 5
  • Context: Working with a Shopify theme in a development environment

The error appears to be related to Ruby gem dependencies required by Shopify CLI. This typically occurs when:

  • Native extensions cannot compile due to missing build tools
  • Ruby/bundler configuration issues
  • Missing system dependencies (like Ruby DevKit on Windows)

The user is seeking help to resolve this installation/configuration problem. No solutions have been provided yet in the thread.

Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

When I try to installShopify Cli in my vscode i get this error I am really stuck here please help me sort out this.

C:\Users\Abbir Ali\Desktop\My Test theme>shopify theme pull -e development
╭─ info ─────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Using applicable flags from development environment: │
│ │
│ • store: abbir-test-store.myshopify.com
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────╯

── external error ────────────────────────────────────────────────────────────────────────────

Error coming from bundle install

Command failed with exit code 5: bundle install
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.