# How to add all dependencies of a package to global environment?

**URL:** <https://discourse.julialang.org/t/how-to-add-all-dependencies-of-a-package-to-global-environment/19725>\
**Category:** General Usage\
**Created:** [January 16, 2019, 10:05pm UTC](https://discourse.julialang.org/t/how-to-add-all-dependencies-of-a-package-to-global-environment/19725 "2019-01-16T22:05:22Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![marius311](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marius311/32/3953_2.png) [@marius311](https://discourse.julialang.org/u/marius311)\
**Post date:** [January 22, 2019, 6:39am UTC](https://discourse.julialang.org/t/how-to-add-all-dependencies-of-a-package-to-global-environment/19725/17 "2019-01-22T06:39:04Z")

</div>

I realize that my request is basically the same as [https://discourse.julialang.org/t/add-all-packages-from-1-0-3-to-1-1](https://discourse.julialang.org/t/add-all-packages-from-1-0-3-to-1-1), which is probably an even more common case. In their case, they want to add all dependencies from the global environment of 1.0 to that of 1.1. In my case its adding all dependencies from a package environment to a global one, but its basically the same thing. Both can accomplished by copying Project.toml entries by hand, but doing so is probably limited to fairly advanced Julia users. Would it not be possible to have a package command that makes this easy for everyone?

Something like ` add-from: add a given package's dependencies to project` ? Then `add-from 1.0` solves the issue in the link above and `add-from A` or `add-from /path/to/A` (if `A` is not already added) solves mine here?

---

_[View the full topic](https://discourse.julialang.org/t/how-to-add-all-dependencies-of-a-package-to-global-environment/19725)._
