Fez CLI

Command-line tool for building and deploying themes & apps

Installation

npm install -g @fez/cli

# Verify installation
fez --help

Authentication

# Login with your API key (from partners.fez.sa)
fez login

# Check current session
fez whoami

Commands

CommandDescription
fez loginAuthenticate with API key
fez whoamiShow current session
fez theme initScaffold a new theme (manifest + schema + sections)
fez theme pushUpload theme to Partners Portal
fez theme listList your published themes
fez app initScaffold a new app (server + webhook handler)
fez app previewStart local dev server
fez app listList your published apps
fez sandbox createCreate a dev store with sample data
fez sandbox resetReset sandbox data to defaults

Theme Workflow

# 1. Create a new theme
fez theme init
? Theme name: Dawn Revival

# 2. Edit your theme
cd dawn-revival
# Edit manifest.json, schema.json, sections/

# 3. Push to Partners Portal
fez theme push
✓ Theme "Dawn Revival" v1.0.0 pushed!
→ View at: partners.fez.sa/themes

App Workflow

# 1. Create a new app
fez app init
? App name: Smart Inventory

# 2. Configure & develop
cd smart-inventory
cp .env.example .env  # Add your credentials

# 3. Start dev server
npm run dev
⚡ Smart Inventory running on http://localhost:4000
📡 Webhook endpoint: http://localhost:4000/webhooks/fez
🔑 OAuth callback:   http://localhost:4000/auth/callback

# 4. Create a sandbox for testing
fez sandbox create
? Store name: Test Store
✓ Sandbox "Test Store" created!
    → 15 products, 10 customers

Config Files

~/.fez/config.json

Stores API key and session data

fez.config.json

App config (scopes, webhooks, redirect URL)