Create Command
The create command scaffolds a new Qelos plugin project with all necessary files and configurations.
Usage
bash
qplay create <project-name>or
bash
qelos create <project-name>Arguments
| Argument | Description | Required |
|---|---|---|
project-name | Name of the plugin project to create | Yes |
What It Does
The create command will:
- Create a new directory with your project name
- Generate the plugin project structure
- Set up configuration files
- Install necessary dependencies
- Provide a ready-to-use plugin template
Example
bash
# Create a new plugin called "my-awesome-plugin"
qplay create my-awesome-pluginThis will create a directory structure like:
my-awesome-plugin/
├── package.json
├── README.md
├── src/
│ ├── index.js
│ └── components/
├── public/
└── config/Next Steps
After creating your plugin:
Navigate to the project directory:
bashcd my-awesome-pluginInstall dependencies (if not already installed):
bashnpm installStart development:
bashnpm run devLearn about plugin development:
Project Structure
The generated plugin includes:
Configuration Files
- package.json - Node.js package configuration with dependencies
- README.md - Project documentation template
- config/ - Plugin configuration files
Source Files
- src/index.js - Main entry point for your plugin
- src/components/ - Vue components directory
- public/ - Static assets
Development Files
- Development server configuration
- Build scripts
- Testing setup (if applicable)
Options
View all available options:
bash
qplay create --helpCommon Issues
Permission Denied
If you get a permission error:
bash
# Run with appropriate permissions or change directory ownership
sudo qplay create my-pluginDirectory Already Exists
If the directory already exists, the command will fail. Either:
- Choose a different name
- Remove the existing directory
- Use a different path
Network Issues
If dependency installation fails:
- Check your internet connection
- Try using a different npm registry
- Install dependencies manually after creation
Examples
Basic Plugin
bash
qplay create my-plugin
cd my-plugin
npm run devPlugin with Custom Name
bash
qplay create customer-dashboard
cd customer-dashboard
npm installRelated Commands
- Pull Command - Pull resources from Qelos
- Push Command - Push resources to Qelos