# Running from command line Windows 10

**URL:** https://discourse.julialang.org/t/running-from-command-line-windows-10/137247
**Category:** New to Julia
**Tags:** question
**Created:** [May 22, 2026, 9:29pm UTC](https://discourse.julialang.org/t/running-from-command-line-windows-10/137247 "2026-05-22T21:29:39Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![jsampson45](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jsampson45](https://discourse.julialang.org/u/jsampson45)
#### Post date: [May 22, 2026, 9:29pm UTC](https://discourse.julialang.org/t/running-from-command-line-windows-10/137247/1 "2026-05-22T21:29:40Z")

</div>

Can Julia be set up to run from Windows 10 command line? Docs say it runs from command line but the system does not find the file. AFAICS there are juliaup.exe, julialauncher.exe, and two copies of julia.exe on my system after I run Julia.appinstaller - I expect a path needs to be added to environment variables, but which one?

---

<div class="post-metadata">

### Author: ![WalterMadelim](https://avatars.discourse-cdn.com/v4/letter/w/3e96dc/32.png) [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)
#### Post date: [May 22, 2026, 11:09pm UTC](https://discourse.julialang.org/t/running-from-command-line-windows-10/137247/2 "2026-05-22T23:09:39Z")

</div>

I think it can, albeit the recommended way is to use PowerShell.

I installed julia via juliaup and when I run this command I can launch julia

```julia-auto
C:\Users\34682\.julia\juliaup\julia-1.12.5+0.x64.w64.mingw32\bin\julia.exe --project=.

```

e.g. you can put it inside a `myj.ps1` file in the working directory.

And then you run `./myj` in the PS terminal, this will open julia. (In this way you don’t need to set up the environment variables.)

---

<div class="post-metadata">

### Author: ![digital\_carver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/digital_carver/32/33818_2.png) [@digital\_carver](https://discourse.julialang.org/u/digital_carver)
#### Post date: [May 23, 2026, 12:59am UTC](https://discourse.julialang.org/t/running-from-command-line-windows-10/137247/3 "2026-05-23T00:59:33Z")

</div>

I installed Julia from the Microsoft Store on Win11, and for me `julia` automatically runs `C:\Users\myusername\AppData\Local\Microsoft\WindowsApps\julia` (which in turn is a link to the julialauncher, but that’s an implementation detail). If you find a `julia.exe` at that path (with your username substituted in), then that’s probably the best path to add in. Afaict it’s already supposed to be in your PATH, so maybe also check if you’ve turned off the App Execution Alias for julia accidentally in your Windows settings.

---

<div class="post-metadata">

### Author: ![jsampson45](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jsampson45](https://discourse.julialang.org/u/jsampson45)
#### Post date: [May 23, 2026, 4:47pm UTC](https://discourse.julialang.org/t/running-from-command-line-windows-10/137247/4 "2026-05-23T16:47:56Z")

</div>

I have added the very long path to a copy of julia.exe to my PATH environment variable.  
I installed Julia by downloading julia.appinstaller - I have open a command line window which opens with a representation of the Julia icon in ASCII code, and to the right of this “Documentation:” etc. I assume that this is what is called the shell. Below this there is a command prompt “julia\>” - from this I can enter a command directly, e.g. ‘println(“Hello”)’ and it replies “Hello”. But I have found no way of running a script in Julia as a “.jl” file in the sense that a Perl script might be contained in a file ending “.pl” or a Python script might be in a file ending “.py”. Is the shell not suitable for this?

---

<div class="post-metadata">

### Author: ![eldee](https://avatars.discourse-cdn.com/v4/letter/e/b5a626/32.png) [@eldee](https://discourse.julialang.org/u/eldee)
#### Post date: [May 23, 2026, 5:20pm UTC](https://discourse.julialang.org/t/running-from-command-line-windows-10/137247/5 "2026-05-23T17:20:02Z")

</div>

Instead of just opening Julia via

```julia-auto
(...)> julia

```

you can use

```julia-auto
(...)> julia script.jl

```

(assuming that `script.jl` is in the current working directory, which is the `(...)` in front of the `>`). The first `julia` command opens the interactive REPL. The second only executes the script. See also [Getting Started · The Julia Language](https://docs.julialang.org/en/v1/manual/getting-started/).

(If `script.jl` is not in the current working directory, you can `cd` to its folder, or provide the full (or relative) path to `script.jl`.)

This is all completely analogous to Python’s `(...)> python script.py`.

* * *

Alternatively, from within the Julia REPL you can use

```julia-repl
julia> include("script.jl")

```

which runs the file in the current session. The script can then use whatever variables you have currently defined, and after it has run, all variables it created are available.

---

<div class="post-metadata">

### Author: ![digital\_carver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/digital_carver/32/33818_2.png) [@digital\_carver](https://discourse.julialang.org/u/digital_carver)
#### Post date: [May 23, 2026, 8:37pm UTC](https://discourse.julialang.org/t/running-from-command-line-windows-10/137247/6 "2026-05-23T20:37:46Z")

</div>

Consider getting the VS Code extension for Julia too: [Getting Started · Julia in VS Code](https://www.julia-vscode.org/docs/stable/gettingstarted/)  
It too has a bit of learning curve (especially if you’re not familiar with VS Code already), but it gives you file editing, running, debugging, the REPL shell, plotting, etc., in the same UI, so you can explore and discover things easily in one tool.

---

<div class="post-metadata">

### Author: ![jsampson45](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jsampson45](https://discourse.julialang.org/u/jsampson45)
#### Post date: [May 23, 2026, 8:44pm UTC](https://discourse.julialang.org/t/running-from-command-line-windows-10/137247/7 "2026-05-23T20:44:39Z")

</div>

One learning curve (guessing curve) is enough, thanks.

---

<div class="post-metadata">

### Author: ![jsampson45](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jsampson45](https://discourse.julialang.org/u/jsampson45)
#### Post date: [May 25, 2026, 7:37am UTC](https://discourse.julialang.org/t/running-from-command-line-windows-10/137247/8 "2026-05-25T07:37:47Z")

</div>

Are juliaup or julialauncher explained anywhere?

---

<div class="post-metadata">

### Author: ![WalterMadelim](https://avatars.discourse-cdn.com/v4/letter/w/3e96dc/32.png) [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)
#### Post date: [May 25, 2026, 9:56am UTC](https://discourse.julialang.org/t/running-from-command-line-windows-10/137247/9 "2026-05-25T09:56:17Z")

</div>

You can check the github page of juliaup.

If you are new to julia and want to do some scientific computation, I think this is not the main focus. Juliaup seems to be a relatively new construct. When I studied julia 3 years ago I just used the portable installer on Windows.

I think the workflow explained by eldee above is sufficient. And this link is relevant [The Julia REPL · The Julia Language](https://docs.julialang.org/en/v1/stdlib/REPL/#The-Julia-REPL).

---

<div class="post-metadata">

### Author: ![BambOoxX](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bambooxx/32/22179_2.png) [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)
#### Post date: [May 26, 2026, 12:55pm UTC](https://discourse.julialang.org/t/running-from-command-line-windows-10/137247/10 "2026-05-26T12:55:18Z")

</div>

I use julia on windows machines on a daily basis. Until recently I could not use juliaup directly but now it works.  
In terms of environment variables, I only have `<path_to_user_folder>\AppData\Local\Programs\Julia` in my user `PATH` environment variable.  
For a manual julia install it would be `<path_to_user_folder>\AppData\Local\Programs\julia-x.y.z\bin`.

This way I can use `julia` directly which maps to whatever the `default` channel is set to.

FYI I generally use [Windows Terminal - Free download and install on Windows | Microsoft Store](https://apps.microsoft.com/detail/9n0dx20hk701) to call julia, I prefer it over the standard terminal for my use.

---

<div class="post-metadata">

### Author: ![Eben60](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eben60/32/13475_2.png) [@Eben60](https://discourse.julialang.org/u/Eben60)
#### Post date: [May 26, 2026, 6:06pm UTC](https://discourse.julialang.org/t/running-from-command-line-windows-10/137247/11 "2026-05-26T18:06:39Z")

</div>

After juliaup has been installed, just call in Terminal

```julia-auto
juliaup -h

```

---

<div class="post-metadata">

### Author: ![Eben60](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eben60/32/13475_2.png) [@Eben60](https://discourse.julialang.org/u/Eben60)
#### Post date: [May 26, 2026, 6:18pm UTC](https://discourse.julialang.org/t/running-from-command-line-windows-10/137247/12 "2026-05-26T18:18:16Z")

</div>

> [@jsampson45](#):
>
> But I have found no way of running a script in Julia as a “.jl” file in the sense that a Perl script might be contained in a file ending “.pl” or a Python script might be in a file ending “.py”. Is the shell not suitable for this?

While it is probably possible to configure your system to behave like that, it is not how the most people use Julia. **Julia is not a scripting language** in the sense Perl is, and trying to apply the Perl workflow to it is going to result in a lot of frustrations.

You may find [Modern Julia Workflows](https://modernjuliaworkflows.org) helpful.
