---
title: build
description: Build the Mini for production
source_url:
  html: 'https://shopify.dev/docs/api/shop-minis/commands/build'
  md: 'https://shopify.dev/docs/api/shop-minis/commands/build.md'
api_name: shop-minis
---

# build

Build the Mini for production.

**Note:**

Creates an optimized production bundle using Vite. Shopify also creates a production build during review, but you can use this command to test the production build locally. The build enforces file type restrictions and validates imports for security.

Run [`verify-build`](https://shopify.dev/docs/api/shop-minis/commands/verify-build) after this command to verify the production build output before submitting your Mini.

Examples

### Examples

* ####

  ##### zsh

  ```sh
  npx shop-minis build
  ```

***
