Zid Docs
AppsThemes
Payments
AppsThemes
Payments
Help Center
Slack
  1. Vitrin CLI
  • Getting Started
    • Introduction
    • Theme Development
    • Vitrin Changelog
    • Creating and Managing Theme Presets
    • Legacy Theme Migration
      • Store Settings Mapping
      • Moving to Vitrin Using LLMs
      • Twig to Jinja
      • Breaking Changes
  • Key Concepts
    • Architecture
    • Templates
      • Overview
      • Overridable Templates
      • Legacy Templates
      • Template Replacements
      • Templates Library
        • home.jinja
        • product.jinja
        • cart.jinja
        • category.jinja
        • products.jinja
        • categories.jinja
        • page.jinja
        • blogs.jinja
        • blog.jinja
        • faqs.jinja
        • reviews.jinja
        • questions.jinja
        • shipping_payment.jinja
        • 404_not_found.jinja
    • Settings
      • Schema files
      • Input Settings
      • Media Settings
      • Form Controls Settings
      • Products Settings
      • Additional Settings
      • Conditional Visibility
      • Migrating twig settings schema
    • Localization
      • localization (jinja v. twig)
    • Theme Editor
      • Overview
  • Building with Vitrin
    • Jinja Basics
    • Vitrin's Jinja Extensions
  • Vitrin CLI
    • Introduction
    • CLI Commands
  • Tips & Tricks
    • Performance
  • JS Integration
    • Supporting both Vitrin and Legacy themes
    • Responses & Errors
    • Cart
    • Products
    • Categories
    • Store
    • Account
    • Blogs
    • Options
    • Events
  • Features
    • SDK Popups – Integration Guidelines
    • Custom Styles Guide
    • Gift Card as a Popup
    • Addresses as a Popup
    • Login as a Popup
    • Checkout as a Popup
    • Apple Pay Quick Checkout
    • Region & Language Popup
    • Dynamic Bundle Products
    • Progressive Discounts
    • Customer Wallet & Cashback
    • Add Preorder Support to Your Theme
  • Mobile Apps
    • Scripts
  • API's
    • Authentication
      • Logout
      • Login Status
      • SMS Login
      • Verify SMS Login
      • WhatsApp Login
      • Verify WhatsApp Login
      • Email Login
      • Verify Email Login
      • Register
      • Register Guest
    • Products
      • List Products
      • Search Products
      • Calculate Product Options Price
      • Notify Product Stock Availability
      • Fetch Bundle Offers
      • Fetch Bundle Offers for a Product
      • List My Product Reviews
      • List Product Reviews
      • Create Product Review
      • Update Product Review
      • Delete Product Review
      • List Product Questions
      • Create Product Question
      • Get Product by Slug
      • Get Selection Groups
    • Categories
      • List Categories
    • Checkout
      • Get Cart
      • Remove Cart
      • Duplicate Cart
      • Add Cart Item
      • Empty Cart
      • Update Cart Item
      • Remove Cart Item
      • Upload Cart Input Field
      • Add Gift Card
      • Remove Gift Card
      • Apply Coupon
      • Remove Coupon From Cart
      • Check Coupon Validity
      • Apply Loyalty Points
      • Remove Loyalty Points
      • Preview Rewarded Points
      • List Redemption Methods for Cart
      • Customer’s Loyalty Wallet
      • Customer’s Current Points Balance
    • Account
      • Get Profile
      • Delete Account
      • Update Customer Profile
      • Get Addresses
      • Create an Address
      • Get an Address by ID
      • Update an Existing Address
      • Delete Address
      • Get Orders
      • Get Shareable Wishlist Link
      • Get Wishlist
      • Add Products to Wishlist
      • Remove Product from Wishlist
      • Get Address Form Schema
      • Check Product Purchase Status
    • Storefront
      • Store Scripts
      • Pages
      • Blogs
    • Countries
      • Get Countries
      • Get Cities By Country
  1. Vitrin CLI

CLI Commands

The Vitrin CLI helps you authenticate, create, build, preview, and manage themes for Zid stores.
Each command is straightforward, with copy-ready examples below.

πŸ”‘ Authentication#

Authenticate your CLI with Zid Partner Dashboard.
Opens your browser for the OAuth flow and saves credentials locally.
Example:

🎨 Theme Creation#

Create a new theme from a template.
Options:
-t, --template <template> β†’ Template to use (basic, minimal, advanced)
--no-git β†’ Skip Git initialization
Example:

Theme Push#

Builds and pushes your theme to Zid servers, creating or updating the theme.
Options:
-s, --store <email> β†’ Dev store email to install on
-a, --activate β†’ Activate theme after installation
-v, --version <version> β†’ Version number (default: from theme.json)
-c, --changelog <text> β†’ Version changelog
Example:

πŸ› οΈ Building Themes#

Build your theme into a distributable .zip package.
Example:

πŸ‘€ Preview on Dev Store#

Preview your theme on a development store for testing.
Options:
-s, --store <store-id> β†’ Dev store email
--build β†’ Build theme before previewing
Example:

πŸ“‹ List Resources#

List available themes or dev stores.
Example:

πŸ“¦ Theme Installation#

Install a specific theme version on a store.
Example:

πŸš€ Theme Activation#

Activate an installed theme on a store.
Example:

Temporary themes settings editing#

Since we got a little too excited to share the new themes with you when the new theme editor is still cooking, here's a quick way to upload drafted settings while building the theme through the cli:
with your theme files, add the following:
in a .json file with the template name, you can add settings for the template that will be uploaded to the store during preview.
in home.json you can add the sections settings that you want reflected in the home page like so:
{
     "components": {
         "ar": [
             {
                 "template": "sections/....jinja",
                 "settings": ...,
             }
         ],
         "en": [
             ...
         ]
     }
}
checkout https://github.com/zidsa/soft-theme-vitrin/ for reference...
p.s. you can give you schema an LLM and ask it to give placeholder values
Sorry for the inconvenince, we promise to make it worthwhile ;)
Modified atΒ 2026-02-17 07:02:10
Previous
Introduction
Next
Performance
Built with