Overview
salesive-dev-tools is a powerful CLI tool and Vite plugin for building and managing Salesive templates.
- CLI commands for project initialization, authentication, validation, and deployment to Salesive Themes API.
- Vite plugin that injects configuration from
salesive.config.jsonas CSS variables and a global object. - React hooks for accessing and dynamically updating configuration at runtime.
- Template deployment with the
salesive cookcommand for one-command packaging and upload.
salesive-api-axios for complete Store API integration.
Install the tooling
Add the package inside your project workspace:Configure Vite
Register the plugin alongside your existing React configuration:Define your Salesive config
Create asalesive.config.json file in the project root to describe brand assets, CSS tokens, and metadata the plugin should inject.
Configuration format: Variables use a flat structure with kebab-case keys. You need to manually inject CSS variables in your stylesheets as needed.
Declare supported store types
The optionalshopTypes array tells Salesive which store types your theme is built for. A merchant can only install a theme on a store whose type is listed here.
The catalog endpoints (
/products, /products/{id}, /cart, /orders) return a catalogType and per-item itemType that match the active store type, so a multi-type theme can branch on those fields. If shopTypes is omitted it defaults to ["ecommerce"]. List every type your theme supports, e.g. ["ecommerce", "restaurant", "business"].Override an automatic route
By default, automatic routes such as/cart, /checkout, and /blog render with Salesive’s built-in theme. The optional routeOverrides array lets your theme take over specific automatic routes and render them itself:
/blog also covers /blog/my-post), and you become responsible for implementing that route in your app with React Router. Leave the array empty (or omit it) to keep every automatic route on the platform default. See Overriding an automatic route for the full behavior.
Consume configuration in React
UseuseSalesiveConfig() to read values anywhere in your component tree:
Apply updates at runtime
The toolkit ships with stateful helpers for mutating configuration without reloading the page.Router-aware branding
Pair the helpers with React Router to switch themes per route.Helper access outside React
When you need configuration data in non-component code, usegetSalesiveConfig().
Injected assets
The plugin automatically handles:- Document title – sourced from
variables.app-name. - Meta description – written from
variables.app-description. - Favicon – linked using
variables.app-favicon. - Global runtime object – exposed as
window.SALESIVE_CONFIGfor direct inspection.
Using CSS variables
To use configuration values as CSS custom properties, manually inject them in your stylesheets:Command-line workflows
Install globally to unlock thesalesive CLI for daily workflows.
Authenticate with Themes API
Create projects
Develop locally
Validate configuration
Validation checks: required fields (name, version, description), name format (lowercase, hyphens only), semantic versioning, and variables structure.
Deploy templates
Thecook command packages and deploys your template to the Salesive Themes API.
cook uploads through the Themes API, so the authenticated API key must have
the Read & Write Themes (WRITE_THEMES) permission. See
Authenticate with Themes API.- All template files (HTML, CSS, JS, images, etc.)
salesive.config.json(required)salesive.form.json(optional)
node_modules/,.git/,.salesive-temp/,*.log,.DS_Store
CLI reference tables
Cook (Deploy) options
Auth options
Init options
Validate options
Integrate with Store API
Combinesalesive-dev-tools with salesive-api-axios for complete Store API integration:

