han-prev-cli
v1.0.37
Published
A powerful CLI for Han Framework development
Maintainers
Readme
Han CLI
A powerful command-line interface for the Han Framework, inspired by NestJS CLI.
Installation
npm install -g @han/cliCommands
Create New Project
han new my-projectGenerate Code
# Generate a controller
han generate controller user
han g c user
# Generate a service
han generate service user
han g s user
# Generate a module
han generate module user
han g m user
# Generate middleware
han generate middleware auth
han g mi auth
# Generate other components
han g interceptor logging
han g guard auth
han g decorator roles
han g interface user
han g class userBuild Project
han build
han build --watch
han build --webpackStart Project
han start
han start --watch
han start --debug
han start --port 4000Project Info
han infoOptions
Most commands support additional options:
--dry-run: Preview changes without creating files--spec: Generate test files alongside source files--skip-import: Skip automatic imports
Examples
# Create a new project
han new my-han-app
# Generate a complete CRUD controller
han g controller user --spec
# Build and watch for changes
han build --watch
# Start in development mode
han start --watch --debug