LinuxCommandLibrary

ember

Build and serve Ember.js applications

TLDR

Create a new Ember application

$ ember new [my_new_app]
copy

Create a new Ember addon
$ ember addon [my_new_addon]
copy

Build the project
$ ember build
copy

Build the project in production mode
$ ember build -prod
copy

Run the development server
$ ember serve
copy

Run the test suite
$ ember test
copy

Run a blueprint to generate something like a route or component
$ ember generate [type] [name]
copy

Install an ember-cli addon
$ ember install [name_of_addon]
copy

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
or
yarn 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.

SEE ALSO

node(1), npm(1), yarn(1), git(1)

Copied to clipboard