DEV Community

Cover image for Ember-cli config
Michal Bryxí
Michal Bryxí

Posted on • Updated on

Ember-cli config

Ember pioneered the standardised usage of global cli tool. This is a perfect way to give new users a good onboarding experience as well as existing users power tools for daily usage.

Config for ember-cli lives in ~/.ember-cli and is merged with my-project/.ember-cli file, if applicable.

The format of .ember-cli file is as follows:

Command line options are passed in a dasherized form on the command line but they must be in camel cased in .ember-cli.

So you can run ember help in your terminal and then use the formula above to convert the cli options to config file options.

Example

This is the global ~/.ember-cli I'm using in my setup:

{
  "welcome": false,
  "packageManager": "pnpm",
  "embroider": true,
  "typescript": true
}
Enter fullscreen mode Exit fullscreen mode

Title image generated by Midjourney via prompt: Command line ninja; The ninja is actually a hamster; --ar 16:9

Top comments (0)