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

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, 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?