# How do I install dependencies from the \`\[extras\]\` block of Project.toml to the project-wide manifest?

**URL:** <https://discourse.julialang.org/t/how-do-i-install-dependencies-from-the-extras-block-of-project-toml-to-the-project-wide-manifest/102238>\
**Category:** General Usage\
**Tags:** package\
**Created:** [July 29, 2023, 12:51pm UTC](https://discourse.julialang.org/t/how-do-i-install-dependencies-from-the-extras-block-of-project-toml-to-the-project-wide-manifest/102238 "2023-07-29T12:51:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxkapur](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maxkapur/32/21208_2.png) [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Post date:** [July 29, 2023, 12:51pm UTC](https://discourse.julialang.org/t/how-do-i-install-dependencies-from-the-extras-block-of-project-toml-to-the-project-wide-manifest/102238/1 "2023-07-29T12:51:43Z")

</div>

Many projects have a Project.toml that lists test dependencies in the `[extras]` block, following by a

```julia
[targets]
test = [...]

```

block. This way, you can run `julia --project` in the base project directory and then `]test` will automatically pull in all those dependencies.

However, for development purposes, I want to install the extra packages into the base project directory, without actually modifying `Project.toml` to change them into hard dependencies. Is there a way to do `]instantiate` that also includes the extras? E.g. `]instantiate extras`?

---

<div class="post-metadata">

**Author:** ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Post date:** [July 29, 2023, 6:20pm UTC](https://discourse.julialang.org/t/how-do-i-install-dependencies-from-the-extras-block-of-project-toml-to-the-project-wide-manifest/102238/2 "2023-07-29T18:20:44Z")

</div>

I think what you’re looking for is [GitHub - JuliaTesting/TestEnv.jl: Activate your test enviroment, so you can use your test dependencies in the REPL](https://github.com/JuliaTesting/TestEnv.jl)

---

<div class="post-metadata">

**Author:** ![maxkapur](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maxkapur/32/21208_2.png) [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Post date:** [July 29, 2023, 8:03pm UTC](https://discourse.julialang.org/t/how-do-i-install-dependencies-from-the-extras-block-of-project-toml-to-the-project-wide-manifest/102238/3 "2023-07-29T20:03:17Z")

</div>

But then I need to add TestEnv to the dependencies… or do you just install this to your global Julia env?

---

<div class="post-metadata">

**Author:** ![jishnub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jishnub/32/33620_2.png) [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Post date:** [July 30, 2023, 4:05am UTC](https://discourse.julialang.org/t/how-do-i-install-dependencies-from-the-extras-block-of-project-toml-to-the-project-wide-manifest/102238/4 "2023-07-30T04:05:36Z")

</div>

Install it in the global env, and use it with each of your packages
