Linux command
ember 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Create new Ember
ember new [app-name]
Generate component
ember generate component [component-name]
Start development
ember serve
Build for production
ember build --environment production
Run tests
ember test
Install addon
ember install [addon-name]
说明
ember is the command-line interface for Ember.js, a JavaScript framework for building ambitious web applications. It handles project scaffolding, development, building, and testing. The CLI provides generators for creating components, routes, services, and other Ember constructs following conventions. The development server includes live reload. Ember CLI manages dependencies, build configuration, and addon installation, providing a complete development workflow.
参数
- new _NAME_
- Create new application.
- generate _TYPE_ _NAME_
- Generate blueprint (component, route, etc.).
- serve, s
- Start development server.
- build, b
- Build application.
- test, t
- Run test suite.
- install _ADDON_
- Install Ember addon.
- --help
- Display help information.
FAQ
What is the ember command used for?
ember is the command-line interface for Ember.js, a JavaScript framework for building ambitious web applications. It handles project scaffolding, development, building, and testing. The CLI provides generators for creating components, routes, services, and other Ember constructs following conventions. The development server includes live reload. Ember CLI manages dependencies, build configuration, and addon installation, providing a complete development workflow.
How do I run a basic ember example?
Run `ember new [app-name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does new _NAME_ do in ember?
Create new application.