# Update Project.toml manually

**URL:** <https://discourse.julialang.org/t/update-project-toml-manually/32477>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [December 19, 2019, 11:18am UTC](https://discourse.julialang.org/t/update-project-toml-manually/32477 "2019-12-19T11:18:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johncowk](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johncowk/32/8032_2.png) [@Johncowk](https://discourse.julialang.org/u/Johncowk)\
**Post date:** [December 19, 2019, 11:18am UTC](https://discourse.julialang.org/t/update-project-toml-manually/32477/1 "2019-12-19T11:18:01Z")

</div>

Hello,

I was trying to update an old package that I wrote in order to be able to register it and run `gen_package.jl` as described in the `Pkg` doc and suppressed my `REQUIRE` file. The problem is now that I have made further modification to the package but the `project.toml` won’t update itself and so the new dependencies are not taken in acount.

Do you know how I can manually update the `project.toml` file so that I’ll be able to register my package ?

---

<div class="post-metadata">

**Author:** ![heliosdrm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heliosdrm/32/3851_2.png) [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Post date:** [December 19, 2019, 1:01pm UTC](https://discourse.julialang.org/t/update-project-toml-manually/32477/2 "2019-12-19T13:01:43Z")

</div>

If the code of `MyPackage` is in the path `~/.julia/dev/MyPackage`, type:

```julia
] activate ~/.julia/dev/MyPackage

```

(Use the path that is suitable to your case).

This should activate the enviornment of that package — you’ll see `(MyPackage) pkg>` in the prompt. And then, if the dependencies of the package are `Foo` and `Bar`, just add them (still in the package management mode):

```julia
add Foo
add Bar

```

This will populate the `Project.toml` with the suitable lines. Enter `activate` (with no argument) to go back to the default environment, when you are done.
