# Extract Julia version from the manifest

**URL:** https://discourse.julialang.org/t/extract-julia-version-from-the-manifest/130030
**Category:** General Usage
**Tags:** question
**Created:** [June 19, 2025, 3:37pm UTC](https://discourse.julialang.org/t/extract-julia-version-from-the-manifest/130030 "2025-06-19T15:37:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [June 19, 2025, 3:37pm UTC](https://discourse.julialang.org/t/extract-julia-version-from-the-manifest/130030/1 "2025-06-19T15:37:26Z")

</div>

I want to start a computation using the exact same Julia version that is in the manifest on a server, where I am using `juliaup`. It that exact same version is not available, I prefer to throw an error.

I am unsure about the best way of extracting the version from the manifest. I can use standard Unix tools, eg as in the script

```bash
#!/bin/bash
JULIA_VERSION=`sed -n 's/julia_version\s*=\s*"\(.*\)"/\1/p' Manifest.toml`
julia +$JULIA_VERSION -t auto --project=@. run_computation.jl

```

or I could do it in Julia, as in

```bash
 JULIA_VERSION=`julia -e 'import TOML; print(TOML.parsefile("./Manifest.toml")["julia_version"])'`

```

but I am wondering if it would make sense to have a simple command line tool for this, that could perhaps look for a `Manifest.toml` in the parent directories too if one is not found in the current directory.

I wonder how people script this.

---

<div class="post-metadata">

### Author: ![danielwe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/danielwe/32/35657_2.png) [@danielwe](https://discourse.julialang.org/u/danielwe)
#### Post date: [June 19, 2025, 6:33pm UTC](https://discourse.julialang.org/t/extract-julia-version-from-the-manifest/130030/2 "2025-06-19T18:33:34Z")

</div>

> [@Tamas\_Papp](#):
>
> I am wondering if it would make sense to have a simple command line tool for this, that could perhaps look for a `Manifest.toml` in the parent directories too if one is not found in the current directory.

juliaup is working on making this automatic, such that on a juliaup-managed installation, `julia` would translate to `julia +{what-the-manifest-says}`. See [Launch the manifest-specified Julia version v3 by davidanthoff · Pull Request #1095 · JuliaLang/juliaup · GitHub](https://github.com/JuliaLang/juliaup/pull/1095)

---

<div class="post-metadata">

### Author: ![goerz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goerz/32/3269_2.png) [@goerz](https://discourse.julialang.org/u/goerz)
#### Post date: [June 19, 2025, 7:14pm UTC](https://discourse.julialang.org/t/extract-julia-version-from-the-manifest/130030/3 "2025-06-19T19:14:38Z")

</div>

I would love, love, LOVE this feature, but are we actually going to see this released soon? Oct 2024 was a while ago… @davidanthoff 🤞
