# Handy tip for cli upgrade, other advice anyone?

**URL:** <https://discuss.emberjs.com/t/handy-tip-for-cli-upgrade-other-advice-anyone/7623>\
**Category:** Uncategorized\
**Created:** [March 25, 2015, 8:58pm UTC](https://discuss.emberjs.com/t/handy-tip-for-cli-upgrade-other-advice-anyone/7623 "2015-03-25T20:58:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JustinHackin](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@JustinHackin](https://discuss.emberjs.com/u/JustinHackin)\
**Post date:** [March 25, 2015, 8:58pm UTC](https://discuss.emberjs.com/t/handy-tip-for-cli-upgrade-other-advice-anyone/7623/1 "2015-03-25T20:58:37Z")

</div>

I found it helpful to open up the files that get replaced using ember init in SublimeText and just let everything get replaced, then you have the changes in the document history and you can (undo if necessary, then) copy paste the names of the packages you installed into your ember install: commands. Preventing overwrite wouldn’t update all the cli-dependent libs’ versions, right ? Plus I wasn’t sure if the Broccfile.js or others would have a different configuration for this version. But what about addons ? How would I get a record of all the addons I installed ?

---

<div class="post-metadata">

**Author:** ![varblob](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/varblob/32/10304_2.png) [@varblob](https://discuss.emberjs.com/u/varblob)\
**Post date:** [March 25, 2015, 10:51pm UTC](https://discuss.emberjs.com/t/handy-tip-for-cli-upgrade-other-advice-anyone/7623/2 "2015-03-25T22:51:53Z")

</div>

I use the d option during init and manually merge.

---

<div class="post-metadata">

**Author:** ![JustinHackin](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@JustinHackin](https://discuss.emberjs.com/u/JustinHackin)\
**Post date:** [March 26, 2015, 5:13pm UTC](https://discuss.emberjs.com/t/handy-tip-for-cli-upgrade-other-advice-anyone/7623/3 "2015-03-26T17:13:24Z")

</div>

someone said after pressing d you could scroll through, press e to allow you to add/remove changed lines but that didn’t seem to work

---

<div class="post-metadata">

**Author:** ![mfeckie](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/mfeckie/32/15198_2.png) [@mfeckie](https://discuss.emberjs.com/u/mfeckie)\
**Post date:** [March 28, 2015, 12:31pm UTC](https://discuss.emberjs.com/t/handy-tip-for-cli-upgrade-other-advice-anyone/7623/4 "2015-03-28T12:31:23Z")

</div>

`e` to edit isn’t an option I’m aware of.

I use `d`, then open the file to make the changes manually, then save and hit `d` again until I’m happy that all the changes have been made and the remaining ones are unnecessary. Once I’m happy I hit `n` so the file is left untouched by `ember init`. An example being things like the router.js file, which invariable gets trashed each time back to a base state.

From doing this process a few times, the main ones to watch are `package.json` and `bower.json` as they are where the biggest dependency issues occur. The test helpers and such like have changed a few times, but have recently gotten fairly stable.

---

<div class="post-metadata">

**Author:** ![nruth](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/nruth/32/9990_2.png) [@nruth](https://discuss.emberjs.com/u/nruth)\
**Post date:** [March 28, 2015, 8:25pm UTC](https://discuss.emberjs.com/t/handy-tip-for-cli-upgrade-other-advice-anyone/7623/5 "2015-03-28T20:25:32Z")

</div>

I found git useful for seeing what it was updating, and undeleting the addons I’d installed and configuration changes I’d made.
