# Pkg: how to setup the "dev" version of a package (i.e. \`\] dev MyPkg\`) from a script?

**URL:** <https://discourse.julialang.org/t/pkg-how-to-setup-the-dev-version-of-a-package-i-e-dev-mypkg-from-a-script/59584>\
**Category:** General Usage\
**Tags:** pkg\
**Created:** [April 19, 2021, 8:20am UTC](https://discourse.julialang.org/t/pkg-how-to-setup-the-dev-version-of-a-package-i-e-dev-mypkg-from-a-script/59584 "2021-04-19T08:20:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [April 19, 2021, 8:20am UTC](https://discourse.julialang.org/t/pkg-how-to-setup-the-dev-version-of-a-package-i-e-dev-mypkg-from-a-script/59584/1 "2021-04-19T08:20:15Z")

</div>

How to setup the “dev” version of a package (i.e. `] dev MyPkg`) from a script ?

`Pkg.dev("MyPkg)` doesn’t exists, and `pkg"dev MyPkg"` returns a warning “use with caution” (!)

In general, I would love so much that the two interfaces of Pkg would be consistent, at the cost to loose some flexibility… :-/

---

<div class="post-metadata">

**Author:** ![gustaphe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustaphe/32/18174_2.png) [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Post date:** [April 19, 2021, 8:50am UTC](https://discourse.julialang.org/t/pkg-how-to-setup-the-dev-version-of-a-package-i-e-dev-mypkg-from-a-script/59584/2 "2021-04-19T08:50:29Z")

</div>

It’s `Pkg.develop` (`dev` is just a shorthand in `]` mode).
