ember
Build and serve Ember.js applications
TLDR
Create a new Ember application
Create a new Ember addon
Build the project
Build the project in production mode
Run the development server
Run the test suite
Run a blueprint to generate something like a route or component
Install an ember-cli addon
SYNOPSIS
ember <command> [<options...>]
PARAMETERS
new <app-name> [<options>]
Creates a new Ember.js application in the specified directory.
serve [<options>]
Serves the application in development mode, typically with live reloading enabled.
generate <blueprint> <name> [<options>]
Generates files based on blueprints (e.g., components, routes, services, models).
build [<options>]
Builds the application for production or development, compiling assets into a distributable format.
test [<options>]
Runs the application's test suite.
install <addon-name> [<options>]
Installs an Ember CLI add-on, integrating its functionality into the project.
destroy <blueprint> <name> [<options>]
Removes files generated by a blueprint.
help [<command>]
Displays help information for the ember command or a specific sub-command.
--version
Displays the Ember CLI version.
--verbose
Provides more detailed output during command execution.
DESCRIPTION
ember is the command-line interface (CLI) for the Ember.js JavaScript framework. It provides a structured and efficient way to create, develop, and manage Ember.js applications. The CLI automates common development tasks such as project generation, scaffolding components, running tests, serving the application in development mode, and building optimized versions for production deployment. It also facilitates the integration of Ember CLI add-ons, which extend its functionality and streamline workflows. ember is a pivotal tool for developers working with Ember.js, enforcing conventions, managing dependencies, and abstracting away complex build processes, thus enabling focus on application logic.
CAVEATS
The ember command is not a native Linux utility. It is a JavaScript-based tool that requires Node.js and a package manager like npm or yarn to be installed on the system. Its primary use is within the context of web application development using the Ember.js framework.
INSTALLATION
The ember command is typically installed globally via npm or yarn after Node.js is set up:npm install -g ember-cli
oryarn global add ember-cli
This makes the ember executable available in your system's PATH.
ADD-ONS
Ember CLI boasts a rich add-on ecosystem. Add-ons are Ember.js libraries that extend the functionality of the CLI and the framework itself, providing blueprints, build transforms, or even entire libraries. They are easily installed using ember install <addon-name> and seamlessly integrate into the application's build process.
HISTORY
Ember CLI was developed to standardize the development workflow for Ember.js applications. Prior to its introduction, Ember.js developers often relied on custom build scripts and less integrated tooling. The CLI, launched around 2013-2014, brought convention-over-configuration, a consistent project structure, and robust tooling based on Broccoli.js for asset compilation. Its continuous evolution has been crucial in maintaining Ember.js's productivity and keeping pace with the rapidly changing JavaScript ecosystem.