@hemia/cli
v0.0.1
Published
Hemia CLI
Readme
@hemia/cli
Hemia CLI is a command-line tool to quickly and consistently generate, structure, and manage projects and packages in the Hemia ecosystem.
🚀 Installation
Global (recommended)
npm install -g @hemia/cliUsing NPX
npx @hemia/cli <command>📦 Available Commands
Create a New Project
hemia new <name> [--vue|--node|--laravel]Generates a new base project depending on the specified type. If not provided, the default type is vue.
Examples:
hemia new my-app --vue
hemia new api-service --nodeGenerate a Resource
Alias: g
hemia g <type> <name> [options]Available Types:
project: base project structure
hemia g project my-apppackage: standalone module (
js,ts,py)hemia g package utilsapi: backend scaffolding with support for MySQL or MongoDB
hemia g api auth --mysql hemia g api users --mongodbcomponent: (coming soon) generates a UI component
service: (coming soon) business logic module
model: (coming soon) data model
doc: (coming soon) base documentation
🛠 Project Structure
All resources use base templates you can find and modify in the directory:
templates/
├── vue/
├── node/
├── laravel/
├── package-ts/
├── package-js/
└── package-py/🔧 Optional Configuration
You can create a .hemia.json file in the project root or in your $HOME directory to set default values:
{
"defaultProjectType": "vue",
"defaultPackageLang": "ts",
"author": "Hemia Technologies"
}📖 Help
Display help from the CLI:
hemia --help📜 License
MIT — © Hemia Technologies
