-
-
Notifications
You must be signed in to change notification settings - Fork 2
shopify
GitHub Actions edited this page Jan 24, 2026
·
1 revision
Sync Shopify store data including products, orders, customers, and inventory.
nself plugin install shopifySHOPIFY_STORE=your-store # Store name (without .myshopify.com)
SHOPIFY_ACCESS_TOKEN=shpat_xxxxxxxxxxxx # Admin API access tokenSHOPIFY_API_VERSION=2024-01 # API version (default: 2024-01)
SHOPIFY_WEBHOOK_SECRET=xxxxxxxxxxxx # Webhook HMAC verification
SHOPIFY_SYNC_INTERVAL=3600 # Sync interval in seconds- Go to Shopify Admin > Settings > Apps and sales channels
- Click "Develop apps" > "Create an app"
- Configure Admin API scopes:
-
read_products,write_products read_customersread_ordersread_inventory
-
- Install app and copy the access token
# Full sync
nself plugin shopify sync
# Products only
nself plugin shopify sync --products-only
# Initial sync (runs on install)
nself plugin shopify sync --initial# List products
nself plugin shopify products list
# Filter by vendor
nself plugin shopify products list --vendor "My Brand"
# Filter by status
nself plugin shopify products list --status active
# Low stock items
nself plugin shopify products low-stock
# Statistics
nself plugin shopify products stats# List orders
nself plugin shopify orders list
# Pending orders
nself plugin shopify orders pending
# Unfulfilled orders
nself plugin shopify orders unfulfilled
# Order details
nself plugin shopify orders show 123456
# Statistics
nself plugin shopify orders stats# List customers
nself plugin shopify customers list
# Top customers by spending
nself plugin shopify customers top
# Customer details
nself plugin shopify customers show 123456
# Statistics
nself plugin shopify customers stats# List events
nself plugin shopify webhook list
# Filter by topic
nself plugin shopify webhook list --topic orders/create
# Pending events
nself plugin shopify webhook pending
# Retry event
nself plugin shopify webhook retry <event-id>- Go to Settings > Notifications > Webhooks
- Create webhooks for each topic:
- URL:
https://your-domain.com/webhooks/shopify - Format: JSON
- URL:
- Topics to subscribe:
-
orders/create,orders/updated,orders/paid,orders/fulfilled -
products/create,products/update,products/delete -
customers/create,customers/update inventory_levels/update
-
shopify app webhook forward --topic orders/create \
--path /webhooks/shopify --port 443| Table | Description |
|---|---|
shopify_shops |
Store metadata |
shopify_products |
Product catalog |
shopify_variants |
Product variants |
shopify_collections |
Product collections |
shopify_customers |
Customer data |
shopify_orders |
Order history |
shopify_order_items |
Line items |
shopify_inventory |
Inventory levels |
shopify_webhook_events |
Webhook log |
| View | Description |
|---|---|
shopify_sales_overview |
Daily sales summary |
shopify_top_products |
Best sellers |
shopify_low_inventory |
Low stock alerts |
shopify_customer_value |
Customer lifetime value |
-- Daily sales (last 7 days)
SELECT * FROM shopify_sales_overview
WHERE order_date > CURRENT_DATE - 7;
-- Top products by revenue
SELECT * FROM shopify_top_products
LIMIT 20;
-- Low inventory alerts
SELECT * FROM shopify_low_inventory;
-- Customer segments
SELECT
CASE
WHEN total_spent >= 1000 THEN 'VIP'
WHEN total_spent >= 500 THEN 'High Value'
WHEN total_spent >= 100 THEN 'Regular'
ELSE 'New'
END AS segment,
COUNT(*) AS customers,
SUM(total_spent) AS total_revenue
FROM shopify_customers
WHERE orders_count > 0
GROUP BY segment
ORDER BY total_revenue DESC;ENV=dev
SHOPIFY_STORE=your-store-dev # Use development store
SHOPIFY_ACCESS_TOKEN=shpat_devUse a Shopify development store for dev/staging.
ENV=prod
SHOPIFY_STORE=your-store # Production store
SHOPIFY_ACCESS_TOKEN=shpat_live# Remove plugin and data
nself plugin remove shopify
# Keep database tables
nself plugin remove shopify --keep-data# Test API access
curl -H "X-Shopify-Access-Token: shpat_xxx" \
"https://your-store.myshopify.com/admin/api/2024-01/shop.json"Shopify has a 2 requests/second limit. The plugin:
- Uses 0.5s delay between requests
- Handles pagination automatically
# Verify HMAC signature
# Check SHOPIFY_WEBHOOK_SECRET matches Shopify settings
# Check nginx logs
docker logs <project>_nginx | grep webhook# Force full resync
nself plugin shopify sync --full
# Check sync timestamp
nself plugin shopify statusɳSelf CLI v1.0.9. MIT licensed. Docs CC BY 4.0.
GitHub · Issues · Discussions · nself.org · docs.nself.org
Getting Started
Commands
- Commands, Overview
- Lifecycle: cmd-init · cmd-build · cmd-start · cmd-stop · cmd-restart · cmd-dev
- Monitoring: cmd-status · cmd-logs · cmd-health · cmd-urls · cmd-doctor · cmd-monitor · cmd-alerts · cmd-sentry · cmd-watchdog · cmd-dogfood
- Data: cmd-db · cmd-backup · cmd-dr · cmd-queue · cmd-webhooks
- Config: cmd-config · cmd-service · cmd-env · cmd-promote
- Networking: cmd-ssl · cmd-trust · cmd-dns-setup
- Security: cmd-security · cmd-secrets · cmd-waf
- Tenancy: cmd-tenant · cmd-billing
- Plugins: cmd-plugin · cmd-license
- AI: cmd-ai · cmd-claw · cmd-model
- Templates: cmd-template
- Utilities: cmd-exec · cmd-clean · cmd-reset · cmd-update · cmd-upgrade · cmd-version · cmd-admin · cmd-migrate · cmd-migrate-firebase · cmd-migrate-supabase · cmd-completion
Features
- Features, Overview
- Feature-Auth
- Feature-Storage
- Feature-Search
- Feature-Functions
- Feature-Email
- Feature-Monitoring
- Feature-Plugins
- Feature-ɳClaw, AI Assistant
- Feature-ɳChat, Messaging
- Feature-ɳTV, Media Player
- Feature-ɳFamily, Family Social
- Feature-ɳCloud, Managed Hosting
- Feature-Memory-Rooms, Knowledge Organization
- Feature-Agent-Dashboard, Agent Metrics
- Feature-Image-Generation, AI Image Generation
Configuration
- Configuration, Overview
- Config-Env-Vars
- Config-Postgres
- Config-Hasura
- Config-Auth
- Config-Nginx
- Config-Optional-Services
- Config-Custom-Services
- Config-System
Plugins (87 + 10 monitoring)
Free (25)
- plugin-backup
- plugin-content-acquisition
- plugin-content-progress
- plugin-cron
- plugin-donorbox
- plugin-feature-flags
- plugin-github
- plugin-github-runner
- plugin-invitations
- plugin-jobs
- plugin-link-preview
- plugin-mdns
- plugin-mlflow
- plugin-monitoring
- plugin-notifications
- plugin-notify
- plugin-paypal
- plugin-search
- plugin-shopify
- plugin-stripe
- plugin-subtitle-manager
- plugin-tokens
- plugin-torrent-manager
- plugin-vpn
- plugin-webhooks
Pro (62)
- plugin-access-controls
- plugin-activity-feed
- plugin-admin-api
- nself-ai-gateway
- nself-ai-cc
- nself-ai-mcp
- plugin-analytics
- plugin-auth
- plugin-backup-pro
- plugin-bots
- plugin-browser
- plugin-calendar
- plugin-cdn
- plugin-chat
- plugin-claw
- plugin-claw-budget
- plugin-claw-news
- plugin-claw-web
- plugin-cloudflare
- plugin-cms
- plugin-compliance
- plugin-cron-pro
- plugin-ddns
- plugin-devices
- plugin-documents
- plugin-donorbox-pro
- plugin-entitlements
- plugin-epg
- plugin-file-processing
- plugin-game-metadata
- plugin-geocoding
- plugin-geolocation
- plugin-google
- plugin-home
- plugin-idme
- plugin-knowledge-base
- plugin-linkedin
- plugin-livekit
- plugin-media-processing
- plugin-meetings
- plugin-moderation
- plugin-mux
- plugin-notify-pro
- plugin-object-storage
- plugin-observability
- plugin-paypal-pro
- plugin-photos
- plugin-podcast
- plugin-post
- plugin-realtime
- plugin-recording
- plugin-retro-gaming
- plugin-rom-discovery
- plugin-shopify-pro
- plugin-social
- plugin-sports
- plugin-stream-gateway
- plugin-streaming
- plugin-stripe-pro
- plugin-support
- plugin-tmdb
- plugin-voice
- plugin-web3
- plugin-workflows
Planned (26)
plugin-auditplugin-blogplugin-checkoutplugin-commerceplugin-drmplugin-exportplugin-flowplugin-importplugin-ldapplugin-mailgunplugin-mediaplugin-oauth-providersplugin-pagesplugin-postmarkplugin-rate-limitplugin-reportsplugin-samlplugin-schedulerplugin-sendgridplugin-ssoplugin-subscriptionplugin-thumbplugin-transcoderplugin-twilioplugin-wafplugin-watermark
Guides
- Guide-Production-Deployment
- Guide-SSL-Setup
- Guide-Multi-Tenancy
- Guide-Security-Hardening
- Guide-Monitoring-Setup
- Guide-Backup-Restore
- Guide-Custom-Services
- Guide-Migration-from-v1
Architecture
Reference
- API-Reference
- reference-error-codes, Error Codes
Licensing
Security
Brand
Operations
- operations/release-cascade, Release Cascade
- operations/self-healing, Self-Healing Schema
- operations/redis-tuning, Redis Pool Tuning
- operations/meilisearch-warmup, MeiliSearch Warm-Up
- operations/jwt-rotation, JWT Key Rotation
- operations/windows-wsl2-setup, Windows / WSL2 Setup
- operations/gemini-oauth-reauth, Gemini OAuth Reauth
Contributing
Admin
- USER-ACTION-QUEUE, Pending Admin Actions