Running from command line Windows 10

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?

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

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.)

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.