9

Doing ember -v only shows ember cli version.

How can you view ember.js version and ember data versions?

ahnbizcad
  • 10,491
  • 9
  • 59
  • 85

2 Answers2

7

The version of ember.js and ember-data is determined by your app's dependencies.

Bower dependencies are listed in bower.json file.

npm dependencies are listed in your package.json file.

In the command line, you can just use cat and grep to show you relevant lines.

For example, in the app's directory (same place you use ember -v):

cat bower.json | grep ember-data

That will return any line that matches the text ember-data. It would output something like this:

"ember-data": "1.0.0-beta.16.1",
rog
  • 5,351
  • 5
  • 33
  • 40
  • It's just in the bower file. nice. Thank you for the CL commands too! – ahnbizcad Apr 28 '15 at 07:49
  • note: if you do `cat bower.json | grep ember` you'll get a list of all packages with "ember" in its name. – ahnbizcad Apr 28 '15 at 07:49
  • 1
    Glad that helped. If you want to learn more about them, you can review their "manual" by using `man ` (i.e. `man cat` or `man grep`) – rog Apr 28 '15 at 07:52
  • 3
    I also suggest that you use the EmberJs plugin for your browser. It's so usefull to debug Ember app in general and it will let you know the versions – Pascal Boutin Apr 28 '15 at 12:56
  • 2
    @PascalBoutin agreed - the [Ember Inspector](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi?hl=en) is very useful! – rog Apr 28 '15 at 16:18
  • Be aware your `bower.json` file may contain _softer_ [version restrictions](http://stackoverflow.com/a/22345808/496321). In that case you might want to get the actual installed version with something like `bower list` ([docs](http://bower.io/docs/api/#list)) – hectorh30 Jun 05 '16 at 15:03
4

If you're using npm:

npm list --depth=0

Results in:

    <project name> <project location>
    ├── body-parser@1.12.4
    ├── broccoli-asset-rev@0.3.1
    ├── broccoli-ember-hbs-template-compiler@1.7.0
    ├── broccoli-merge-trees@0.2.1
    ├── ember-breadcrumbs@0.1.6
    ...
Felix
  • 3,783
  • 5
  • 34
  • 53