# Config information in Project.toml

**URL:** <https://discourse.julialang.org/t/config-information-in-project-toml/46016>\
**Category:** General Usage\
**Created:** [September 3, 2020, 4:40pm UTC](https://discourse.julialang.org/t/config-information-in-project-toml/46016 "2020-09-03T16:40:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cstjean](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cstjean/32/1444_2.png) [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Post date:** [September 3, 2020, 4:40pm UTC](https://discourse.julialang.org/t/config-information-in-project-toml/46016/1 "2020-09-03T16:40:30Z")

</div>

Is it reasonable / possible to put config information in Project.toml? For instance, `my_app_port = 8889`. Are there facilities for parsing them? Or am I simply better off using environment variables somehow?

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [September 3, 2020, 6:19pm UTC](https://discourse.julialang.org/t/config-information-in-project-toml/46016/2 "2020-09-03T18:19:55Z")

</div>

Sure, but why not have a `Config.toml` file instead?

> Are there facilities for parsing them?

In Julia 1.6 you can use the TOML stdlib and in Julia \< 1.6 Pkg.TOML.

---

<div class="post-metadata">

**Author:** ![cstjean](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cstjean/32/1444_2.png) [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Post date:** [September 3, 2020, 7:58pm UTC](https://discourse.julialang.org/t/config-information-in-project-toml/46016/3 "2020-09-03T19:58:35Z")

</div>

I was hoping for a `Pkg.current_environment_parsed_project_toml()`. Then I would be sure that the config variables are those associated with the active `Project.toml`.

---

<div class="post-metadata">

**Author:** ![tkf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkf/32/17635_2.png) [@tkf](https://discourse.julialang.org/u/tkf)\
**Post date:** [September 4, 2020, 12:14am UTC](https://discourse.julialang.org/t/config-information-in-project-toml/46016/4 "2020-09-04T00:14:53Z")

</div>

Ref:

[https://github.com/JuliaLang/Pkg.jl/pull/1835](https://github.com/JuliaLang/Pkg.jl/pull/1835)
