What is the Shopify programming language?

Illustration for a guide to the coding languages Shopify uses

The main Shopify coding language is Liquid, a template language Shopify created, which themes mix with HTML, CSS, JavaScript and JSON. Behind the scenes, the Shopify platform itself runs on Ruby on Rails, and newer parts of the stack (apps, Shopify Functions, Hydrogen storefronts) use JavaScript, TypeScript, React and Rust.

So when people ask "what language does Shopify use?", the honest answer depends on which part of Shopify they mean. If you only run a store, Liquid is the one worth knowing. It's what you see when you open Online Store > Themes > Edit code, and it's what a developer changes when your theme needs something the settings can't do.

Which language does what on Shopify

Shopify isn't one language. Each layer has its own:

Part of Shopify Language Who touches it
Themes (your storefront)
Liquid, HTML, CSS, JavaScript, JSON
Merchants, theme developers
Shopify's core platform
Ruby on Rails
Shopify's own engineers
Email and SMS notifications
Liquid
Merchants, in Settings > Notifications
Apps
Any language; Shopify's main template is JavaScript/TypeScript with React Router
App developers
Admin and checkout UI extensions
JavaScript or TypeScript with Preact and Polaris web components
App developers
Shopify Functions (discounts, shipping, payment rules)
Any language that compiles to WebAssembly; Rust recommended, JavaScript supported
App developers
Headless storefronts (Hydrogen)
JavaScript/TypeScript, with React or Vue
Headless developers

The rest of this guide goes through each one, starting with the one most merchants run into.

Liquid: the language of Shopify themes

Liquid is an open-source template language Shopify created and still maintains. Its job is simple: take data from your store (products, collections, prices, the cart, the customer) and drop it into HTML so the browser can show it. Our full guide to Shopify's Liquid goes deeper; here's the short version.

Liquid has three building blocks:

  • Objects output data. They sit inside double curly braces, for example {{ product.title }} prints the product's name and {{ product.price | money }} prints its price.
  • Filters change an output. In {{ product.price | money }}, the money filter formats a raw number as a price in your store's currency.
  • Tags add logic and sit inside {% %}. For example, {% if product.available %}Add to cart{% else %}Sold out{% endif %} shows "Sold out" when every variant is out of stock.

Liquid code open in the Shopify theme code editor

Liquid is used on every Shopify store and in every theme on the Shopify Theme Store. Since Online Store 2.0, a theme is a mix of:

  • .liquid files for layouts, sections, blocks and snippets
  • .json template files that list which sections appear on each page (this is what the theme editor saves when you drag sections around)
  • CSS and JavaScript files in the assets folder
  • A {% schema %} block in each section, written in JSON, that defines the settings you see in the theme editor

Liquid also powers your order confirmation, shipping and other notification templates, so the same syntax works when you edit those under Settings > Notifications.

Ruby on Rails: what Shopify itself runs on

Shopify's core platform is a Ruby on Rails application, and Shopify's engineering team describes it as one of the oldest and largest Rails codebases in use. Liquid itself is written in Ruby.

You never write Ruby to run a Shopify store. You can't access or change the platform code, and you don't need to. It matters only if you're curious why Ruby comes up when people talk about Shopify, or if you're hiring a developer to build an app (Shopify has an official Ruby on Rails app template).

Languages for Shopify apps and extensions

Apps talk to your store through Shopify's APIs, mainly the GraphQL Admin API. Because they run on the developer's own servers, apps can be written in any language that can make those API calls. In practice:

  • JavaScript or TypeScript with React Router is what Shopify recommends for most new apps. It's the default template in Shopify CLI.
  • Ruby on Rails has an official Shopify template.
  • PHP and Python don't have templates, but Shopify publishes libraries for them, so developers add Shopify to a Laravel, Symfony or Django project.

Apps that add blocks to the admin, the checkout or the Thank you page use UI extensions. These are written in JavaScript or TypeScript, render with Preact and use Shopify's Polaris web components. This is also what replaced checkout.liquid and "additional scripts" for checkout customization.

If you're trying to connect a tool to your store rather than build one, you'll need credentials, not code. Our guide to the Shopify API key covers where to find them now that custom apps are created in the Dev Dashboard.

Shopify Functions: Rust and WebAssembly

Shopify Functions let apps change how Shopify's backend behaves: custom discount rules, hiding or renaming shipping and payment methods, cart validation and similar logic. Functions run inside Shopify, not on the app's server, so they have to be compiled to WebAssembly (Wasm).

Shopify's documentation says a Function can be written in any language that compiles to a WebAssembly module meeting its requirements. Shopify strongly recommends Rust for performance, especially with large carts, and also provides JavaScript templates and libraries.

As a merchant, you usually meet Functions through an app (for example, a discount app) rather than writing one yourself.

Hydrogen: JavaScript for headless stores

Hydrogen is Shopify's toolkit for headless storefronts, where the shopping site is a separate JavaScript app and Shopify handles products, cart and checkout through the Storefront API.

Hydrogen changed shape in 2026. Versions up to 2026-04 were a full-stack React framework built on Remix and then React Router. Hydrogen 2026-10 is a framework-agnostic JavaScript library you add to your existing stack, with React and Vue bindings and two starters: React Router 7 (deployed to Shopify's Oxygen hosting) and Next.js (deployed to Vercel).

Headless is a bigger commitment than a theme. You need a developer to build and maintain it, and theme-only apps won't work on it. For most stores, a well-built Liquid theme is the cheaper and faster choice.

Shopify CLI: the command-line tool developers use

Shopify CLI is Shopify's official command-line tool for building themes, apps and Hydrogen storefronts. It isn't a programming language; it's the tool that moves your Liquid, JavaScript and app code between your computer and Shopify.

Install it. Per shopify.dev, you need Node.js 22.12 or higher, a package manager (npm, Yarn 1.x or pnpm) and Git 2.28.0 or higher. Then run one of:

  • npm install -g @shopify/cli@latest
  • On macOS with Homebrew: brew tap shopify/shopify followed by brew install shopify-cli

Run shopify version to confirm it's installed and shopify upgrade to update it.

Key theme commands:

Command What it does
shopify theme init
Creates a new theme folder from Shopify's starter theme
shopify theme pull
Downloads a theme from your store to your computer
shopify theme dev
Uploads your local files as a private development theme and gives you a preview that hot-reloads CSS and section changes as you edit
shopify theme push
Uploads your local files to a theme in your store (add --unpublished to create a new unpublished theme)
shopify theme check
Runs Theme Check to catch Liquid errors and bad practices
shopify theme publish
Publishes a theme from the command line

Key app commands:

Command What it does
shopify app init
Scaffolds a new app (React Router template by default) and can create the app record in the Dev Dashboard
shopify app dev
Runs the app locally against a development store
shopify app deploy
Releases a new app version, which appears on the app's Versions page in the Dev Dashboard

Run shopify help for the full list. If you're a merchant, you don't need the CLI to edit your theme; the code editor in your admin does the same job for small changes. The CLI earns its place once a developer works on your theme regularly or you want your theme code in Git.

Why it's worth learning a little Liquid

You don't need to code to run a Shopify store. But some Liquid, HTML and CSS knowledge pays off quickly:

  • You can make small fixes yourself. Changing a hard-coded label, hiding an element on one template or adding a line of text under the price often takes a few lines of Liquid.
  • You can brief developers better. If you can point to the section file and the setting involved, quotes are tighter and the work is faster.
  • You understand related settings. Things like Shopify's sitemap and URL redirects make more sense once you know how templates and URLs fit together.

How to practice Liquid safely

Never learn on your live theme. Work on a copy:

  1. In your Shopify admin, go to Online Store > Themes.
  2. Next to your current theme, click the ... button and choose Duplicate. The copy appears in your theme library, unpublished.
  3. On the copy, click ... > Edit code to open the code editor. Use Preview to see your changes without customers seeing them.
  4. If you break something, open the file and use its version history to go back, or delete the copy and duplicate again.

A few more tools help:

  • Theme Check is Shopify's linter for themes. It flags Liquid errors and bad practices. It runs through Shopify CLI (shopify theme check) and is built into the Shopify Liquid extension for Visual Studio Code.
  • Shopify CLI lets you pull a theme to your computer, preview it with shopify theme dev and push changes back (see the Shopify CLI section above).
  • Version control with Git keeps a full history of every change. See our Shopify GitHub integration guide for setting it up.
  • Backups matter before any bigger edit: see how to back up your Shopify store and how to export your Shopify theme.

If a change goes beyond a few lines, or touches the cart and checkout, it's usually cheaper to have a developer do it than to debug it yourself. That's the point where you hire a vetted Shopify expert.

Frequently asked questions

What coding language does Shopify use?
Shopify themes use Liquid, a template language Shopify created, together with HTML, CSS, JavaScript and JSON. The Shopify platform itself is built with Ruby on Rails.
Is Shopify written in Ruby or Liquid?
Both, at different layers. Shopify's core platform is a Ruby on Rails application, and Liquid (itself written in Ruby) is the language your theme uses to pull store data into pages.
Do I need to know how to code to use Shopify?
No. You can build and run a store with the theme editor and admin settings. Basic Liquid, HTML and CSS help when you want small changes the theme settings don't offer.
What language are Shopify apps written in?
Apps can be written in any language that can call Shopify's APIs. Shopify recommends its React Router template (JavaScript or TypeScript) for most new apps and also has a Ruby on Rails template.
What is Shopify CLI used for?
Shopify CLI is Shopify's command-line tool for working on themes, apps and Hydrogen storefronts from your computer. Developers use commands like shopify theme dev, shopify theme push and shopify app init to preview, upload and scaffold code.