Introduction
The EverShop CLI provides a set of commands to manage your e-commerce store from the command line. It handles development workflows, production builds, deployment, user management, and theme customization.Installation
The CLI is included with the EverShop package. When you install EverShop, theevershop command becomes available:
evershop binary:
Available Commands
Development
evershop dev- Start the development server with hot reloadevershop build- Build the application for productionevershop start- Start the production server
Setup & Installation
evershop install- Run the interactive setup wizard
User Management
evershop user:create- Create a new admin userevershop user:changePassword- Change an admin user’s password
Theme Management
evershop theme:create- Create a new themeevershop theme:active- Activate an existing themeevershop theme:twizz- Create theme overrides for components
Development Tools
evershop seed- Seed demo data (products, categories, pages, etc.)
Basic Usage
Quick Start Development
Production Deployment
Environment Variables
The CLI respects environment variables set in your.env file or system environment:
DB_HOST- Database hostDB_PORT- Database portDB_NAME- Database nameDB_USER- Database userDB_PASSWORD- Database passwordDB_SSLMODE- SSL mode (require/disable)
Global Behavior
Error Handling
All CLI commands include comprehensive error handling:- Uncaught exceptions are logged
- Unhandled promise rejections are captured
- Detailed error messages are provided
Configuration
The CLI uses the Node.jsconfig package to manage configuration:
- Configuration files are located in
config/ - Default configuration is in
config/default.json - Environment-specific configs override defaults
Getting Help
Most commands support the--help flag:
Next Steps
Development Server
Learn about the development workflow
Production Build
Build your store for production
User Management
Manage admin users
Theme Commands
Customize your store’s appearance